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
1import defaultSource from "./defaultSource.js";2import binomial from "./binomial.js";3import gamma from "./gamma.js";4 5export default (function sourceRandomPoisson(source) {6 var G = gamma.source(source),7 B = binomial.source(source);8 9 function randomPoisson(lambda) {10 return function() {11 var acc = 0, l = lambda;12 while (l > 16) {13 var n = Math.floor(0.875 * l),14 t = G(n)();15 if (t > l) return acc + B(n - 1, l / t)();16 acc += n;17 l -= t;18 }19 for (var s = -Math.log1p(-source()), k = 0; s <= l; ++k) s -= Math.log1p(-source());20 return acc + k;21 };22 }23 24 randomPoisson.source = sourceRandomPoisson;25 26 return randomPoisson;27})(defaultSource);28 