From f6b4af3d04763b1e0130f5b5fce19c4bc6f83f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Tue, 23 Sep 2025 10:25:20 +0200 Subject: [PATCH] ggml : fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl (#15928) * fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl * change initialization to true --- ggml/src/ggml-quants.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml/src/ggml-quants.c b/ggml/src/ggml-quants.c index 727932123e..de5cbd75e8 100644 --- a/ggml/src/ggml-quants.c +++ b/ggml/src/ggml-quants.c @@ -3721,6 +3721,7 @@ static void quantize_row_iq3_xxs_impl(int grid_size, const float * GGML_RESTRICT } float best = 0; float scale = max/(2*kMaxQ-1); + for (int k = 0; k < 8; ++k) is_on_grid[k] = true; for (int is = -15; is <= 15; ++is) { float id = (2*kMaxQ-1+is*0.2f)/max; float this_scale = 1/id;