ggml : fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl (llama/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 Georgi Gerganov
parent c706a50746
commit 73e8f3acb8
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
1 changed files with 1 additions and 0 deletions

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;