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
This commit is contained in:
Sigbjørn Skjæret
2025-09-23 10:25:20 +02:00
committed by GitHub
parent 264f1b5187
commit f6b4af3d04

View 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;