From d6a718e55a64af2c4b6be622f6b73eebabb4185e Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Mon, 2 Mar 2026 18:40:39 +0000 Subject: [PATCH] Fix scale factor overwrite bug --- src/llama-quant.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 7f6fc0b628..c9998ab196 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -1425,13 +1425,10 @@ static std::unordered_map target_bpw_type( type_choice ch; ch.w = tw; ch.n_elements = ggml_nelements(tensor); - bool bias_needed = false; for (const auto & ev : evaluations) { if (ev.bytes == 0) { continue; } - type_scores ts = ev; - if (!valid_wce && !bias_needed) { ts.error = ts.mse; } - ch.candidates.push_back(ts); + ch.candidates.push_back(ev); } if (ch.candidates.empty()) {