From 7bb5d4b8907a0092cecbd4799395a664a95695b5 Mon Sep 17 00:00:00 2001 From: Jan Boon Date: Mon, 9 Feb 2026 04:30:31 +0000 Subject: [PATCH] sampling : disable testing code --- src/llama-sampler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/llama-sampler.cpp b/src/llama-sampler.cpp index 9f5cba09c2..34f8a62ab4 100644 --- a/src/llama-sampler.cpp +++ b/src/llama-sampler.cpp @@ -339,7 +339,7 @@ struct llama_dist_rng { virtual ~llama_dist_rng() = default; // whether the RNG requires sorted input for proper properties - // this also indicates whether the RNG output itself must be consumed in a coherent order + // this also indicates whether the RNG output itself must be consumed in a sequential order virtual bool requires_sorted() = 0; // for compatibility with std::discrete_distribution @@ -426,7 +426,11 @@ struct blue_noise_rng { states[i] = {tbl[h][0], tbl[h][1]}; // random initial state } +#if 0 + // test against initial implementation outputs + // note: white noise padding in next64 is slightly different, but minimally consequential for testing rng->reset(); // reset position so generation starts from 0 +#endif } uint16_t advance(uint32_t h) {