summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-09-06 12:40:57 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-09-06 12:40:57 +0300
commit178b1850ebd21b349cebbee887950e435c5aa2d3 (patch)
tree4c12d17875f53a8a157c418971c6dc8e82fc9f70
parentea2c85d5d2a93d39d0172222917f3195f0e456ff (diff)
k-quants : fix zero-weight guard in Q6_K (ref #3040)
-rw-r--r--k_quants.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/k_quants.c b/k_quants.c
index 8742d4ae..eb702ce8 100644
--- a/k_quants.c
+++ b/k_quants.c
@@ -1089,6 +1089,7 @@ void quantize_row_q6_K_reference(const float * restrict x, block_q6_K * restrict
if (!max_abs_scale) {
memset(&y[i], 0, sizeof(block_q6_K));
y[i].d = ggml_fp32_to_fp16(0.f);
+ x += QK_K;
continue;
}