From: Sigbjørn Skjæret Date: Tue, 23 Sep 2025 08:25:20 +0000 (+0200) Subject: ggml : fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl (#15928) X-Git-Tag: upstream/0.0.6641~84 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f6b4af3d04763b1e0130f5b5fce19c4bc6f83f1c;p=pkg%2Fggml%2Fsources%2Fllama.cpp 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 --- diff --git a/ggml/src/ggml-quants.c b/ggml/src/ggml-quants.c index 72793212..de5cbd75 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;