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
1let random = async bytes => crypto.getRandomValues(new Uint8Array(bytes))2 3let customAlphabet = (alphabet, defaultSize = 21) => {4 let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 15 6 7 8 let step = -~((1.6 * mask * defaultSize) / alphabet.length)9 10 return async (size = defaultSize) => {11 if (size <= 0) return ''12 let id = ''13 while (true) {14 let bytes = crypto.getRandomValues(new Uint8Array(step))15 let i = step | 016 while (i--) {17 id += alphabet[bytes[i] & mask] || ''18 if (id.length === size) return id19 }20 }21 }22}23 24let nanoid = async (size = 21) => {25 let id = ''26 let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)))27 28 while (size--) {29 let byte = bytes[size] & 6330 if (byte < 36) {31 id += byte.toString(36)32 } else if (byte < 62) {33 id += (byte - 26).toString(36).toUpperCase()34 } else if (byte < 63) {35 id += '_'36 } else {37 id += '-'38 }39 }40 return id41}42 43export { nanoid, customAlphabet, random }44 