]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl (llama/15928)
authorSigbjørn Skjæret <redacted>
Tue, 23 Sep 2025 08:25:20 +0000 (10:25 +0200)
committerGeorgi Gerganov <redacted>
Thu, 25 Sep 2025 08:56:34 +0000 (11:56 +0300)
* fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl

* change initialization to true

src/ggml-quants.c

index 727932123e41b7433bd16e6172f95c3d00036e07..de5cbd75e868e6040e2659e8827bcc9daad3de03 100644 (file)
@@ -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;