Skip to content

Commit 4fd3e29

Browse files
committed
ggml : fix scalar implementation of Q4_1 dot
1 parent 2d5db48 commit 4fd3e29

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
@@ -2481,7 +2481,7 @@ static void ggml_vec_dot_q4_1_q8_1(const int n, float * restrict s, const void *
24812481
sumi += (v0 * y[i].qs[j]) + (v1 * y[i].qs[j + qk/2]);
24822482
}
24832483

2484-
sumf += (GGML_FP16_TO_FP32(x[i]).d*y[i].d)*sumi + GGML_FP16_TO_FP32(x[i].m)*y[i].s;
2484+
sumf += (GGML_FP16_TO_FP32(x[i].d)*y[i].d)*sumi + GGML_FP16_TO_FP32(x[i].m)*y[i].s;
24852485
}
24862486

24872487
*s = sumf;

0 commit comments

Comments
 (0)