This commit is contained in:
S 2024-04-05 12:48:43 +01:00
parent f3532ff80c
commit ec613b856c

2
ggml.c
View file

@ -20335,7 +20335,7 @@ size_t ggml_quantize_chunk(
int nrows, int nrows,
int n_per_row, int n_per_row,
const float * imatrix) { const float * imatrix) {
const int n = nrows * n_per_row; const size_t n = (size_t) nrows * n_per_row;
if (ggml_quantize_requires_imatrix(type)) { if (ggml_quantize_requires_imatrix(type)) {
GGML_ASSERT(imatrix != NULL); GGML_ASSERT(imatrix != NULL);