ggml : fix Q5_0 quantization

This commit is contained in:
Georgi Gerganov 2023-05-07 20:26:02 +03:00
parent 60f62bbc85
commit 8fbf7777ce
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

2
ggml.c
View File

@ -845,7 +845,7 @@ static void quantize_row_q5_0_reference(const float * restrict x, block_q5_0 * r
const float d = max / -16;
const float id = d ? 1.0f/d : 0.0f;
y[i].d = d;
y[i].d = GGML_FP32_TO_FP16(d);
uint32_t qh = 0;