From f184450806163bd1af0eecaff5c31639cf3eaf8f Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Mon, 22 Sep 2025 20:10:42 +0100 Subject: [PATCH] Fix minor logic flaw --- src/llama-quant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 0b2f15f0a6..4c0ec3063a 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -957,7 +957,7 @@ static std::unordered_map target_bpw_type( if (out_mse) { *out_mse = total_mse; } if (out_proj) { *out_proj = total_proj; } - const double total_err = slice_bias_lambda ? total_mse + total_bias : total_mse + tensor_bias_lambda * total_proj; + const double total_err = total_mse + total_bias; return std::isfinite(total_err) ? total_err : infinity; };