From: Georgi Gerganov Date: Wed, 6 Sep 2023 09:40:57 +0000 (+0300) Subject: k-quants : fix zero-weight guard in Q6_K (ref #3040) X-Git-Tag: gguf-v0.4.0~119 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=178b1850ebd21b349cebbee887950e435c5aa2d3;p=pkg%2Fggml%2Fsources%2Fllama.cpp k-quants : fix zero-weight guard in Q6_K (ref #3040) --- 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; }