]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml-quants, llama : removed excess checks (llama/7274)
authorHerman Semenov <redacted>
Fri, 17 May 2024 07:08:49 +0000 (07:08 +0000)
committerGeorgi Gerganov <redacted>
Tue, 28 May 2024 11:41:08 +0000 (14:41 +0300)
src/ggml-quants.c

index f13599f6b41bc6df246127ea0fe4d5b88c4da941..9b291d522eba0909bd1a5516f8dcd6378ce8fc4a 100644 (file)
@@ -1986,7 +1986,7 @@ static void quantize_row_q3_K_impl(const float * restrict x, block_q3_K * restri
 
         for (int j = 0; j < QK_K/16; ++j) {
             if (quant_weights) {
-                const float * qw = quant_weights ? quant_weights + QK_K * i + 16*j : NULL;
+                const float * qw = quant_weights + QK_K * i + 16*j;
                 for (int l = 0; l < 16; ++l) weight[l] = qw[l] * sqrtf(sigma2 + x[16*j+l]*x[16*j+l]);
             } else {
                 for (int l = 0; l < 16; ++l) weight[l] = x[16*j+l]*x[16*j+l];