Skip to content

Commit 8fbf777

Browse files
committed
ggml : fix Q5_0 quantization
1 parent 60f62bb commit 8fbf777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ static void quantize_row_q5_0_reference(const float * restrict x, block_q5_0 * r
845845
const float d = max / -16;
846846
const float id = d ? 1.0f/d : 0.0f;
847847

848-
y[i].d = d;
848+
y[i].d = GGML_FP32_TO_FP16(d);
849849

850850
uint32_t qh = 0;
851851

0 commit comments

Comments
 (0)