Skip to content

Commit ee19c8b

Browse files
committed
ggml : fix Q5_0 quantization
1 parent dc933fc commit ee19c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ static void quantize_row_q5_0_reference(const float * restrict x, block_q5_0 * r
838838
const float d = max / -16;
839839
const float id = d ? 1.0f/d : 0.0f;
840840

841-
y[i].d = d;
841+
y[i].d = GGML_FP32_TO_FP16(d);
842842

843843
uint32_t qh = 0;
844844

0 commit comments

Comments
 (0)