From 785da428f74a9ab6fc7c5d12b8908ede0ce2e3bf Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Wed, 25 Feb 2026 16:48:43 +0000 Subject: [PATCH] Also this one --- ggml/src/ggml-quants.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-quants.c b/ggml/src/ggml-quants.c index f7c83bed..b8d0d8de 100644 --- a/ggml/src/ggml-quants.c +++ b/ggml/src/ggml-quants.c @@ -1916,7 +1916,7 @@ static float make_qkx1_quants(int n, int nmax, const float * restrict x, uint8_t if (x[i] < min) min = x[i]; if (x[i] > max) max = x[i]; } - if (max == min) { + if (max - min < 1e-10f) { for (int i = 0; i < n; ++i) L[i] = 0; *the_min = 0; return 0.f;