Skip to content

Commit 178b185

Browse files
committed
k-quants : fix zero-weight guard in Q6_K (ref #3040)
1 parent ea2c85d commit 178b185

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

k_quants.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,7 @@ void quantize_row_q6_K_reference(const float * restrict x, block_q6_K * restrict
10891089
if (!max_abs_scale) {
10901090
memset(&y[i], 0, sizeof(block_q6_K));
10911091
y[i].d = ggml_fp32_to_fp16(0.f);
1092+
x += QK_K;
10921093
continue;
10931094
}
10941095

0 commit comments

Comments
 (0)