Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1 2let { urlAlphabet } = require('./url-alphabet/index.cjs')3 4let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))5 6let customRandom = (alphabet, defaultSize, getRandom) => {7 let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 18 9 10 11 let step = -~((1.6 * mask * defaultSize) / alphabet.length)12 13 return (size = defaultSize) => {14 if (size <= 0) return ''15 let id = ''16 while (true) {17 let bytes = getRandom(step)18 let j = step | 019 while (j--) {20 id += alphabet[bytes[j] & mask] || ''21 if (id.length === size) return id22 }23 }24 }25}26 27let customAlphabet = (alphabet, size = 21) =>28 customRandom(alphabet, size, random)29 30let nanoid = (size = 21) =>31 crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {32 byte &= 6333 if (byte < 36) {34 id += byte.toString(36)35 } else if (byte < 62) {36 id += (byte - 26).toString(36).toUpperCase()37 } else if (byte > 62) {38 id += '-'39 } else {40 id += '_'41 }42 return id43 }, '')44 45module.exports = { nanoid, customAlphabet, customRandom, urlAlphabet, random }46 