Skip to content

Commit

Permalink
ggml : silence UB sanitizer error during iq2_xxs quantization (#0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed May 23, 2024
1 parent 007489e commit 1debe72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml-quants.c
Original file line number Diff line number Diff line change
Expand Up @@ -12144,7 +12144,7 @@ static void quantize_row_iq2_xxs_impl(const float * restrict x, void * restrict
printf("\n");
GGML_ASSERT(false);
}
q2[2*ib+0] |= (grid_index << 8*k);
q2[2*ib+0] |= ((uint32_t) grid_index << 8*k);
q2[2*ib+1] |= (block_signs[k] << 7*k);
}
GGML_ASSERT(scale >= 0);
Expand Down

0 comments on commit 1debe72

Please sign in to comment.