From e56028375428db3ddd48243a85cea671a982caf7 Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Wed, 2 Sep 2026 18:45:49 +0200 Subject: [PATCH] Remove usless check in llama-quantize (#2394) Co-authored-by: Iwan Kawrakow --- src/llama-quantize.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/llama-quantize.cpp b/src/llama-quantize.cpp index a7c74b17..a2b9ebfd 100644 --- a/src/llama-quantize.cpp +++ b/src/llama-quantize.cpp @@ -1286,12 +1286,12 @@ static void llama_model_quantize_internal(const std::string & fname_inp, const s // - qs.n_attention_wv == 3 * model.hparams.n_layer for Encoder-Decoder models // - model.arch == LLM_ARCH_DECI for Deci-Nemotron models // - GGML_ASSERT((qs.n_attention_wv == 0 || - qs.n_attention_wv == (int)model.hparams.n_layer || - qs.n_attention_wv == 3 * (int)model.hparams.n_layer || - model.arch == LLM_ARCH_DECI || - model.arch == LLM_ARCH_GEMMA4 || - model.arch == LLM_ARCH_UNKNOWN) && "n_attention_wv is unexpected"); + //GGML_ASSERT((qs.n_attention_wv == 0 || + // qs.n_attention_wv == (int)model.hparams.n_layer || + // qs.n_attention_wv == 3 * (int)model.hparams.n_layer || + // model.arch == LLM_ARCH_DECI || + // model.arch == LLM_ARCH_GEMMA4 || + // model.arch == LLM_ARCH_UNKNOWN) && "n_attention_wv is unexpected"); size_t total_size_org = 0; size_t total_size_new = 0;