Skip to content

Commit f184450

Browse files
committed
Fix minor logic flaw
1 parent 1fbc59f commit f184450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-quant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
957957
if (out_mse) { *out_mse = total_mse; }
958958
if (out_proj) { *out_proj = total_proj; }
959959

960-
const double total_err = slice_bias_lambda ? total_mse + total_bias : total_mse + tensor_bias_lambda * total_proj;
960+
const double total_err = total_mse + total_bias;
961961
return std::isfinite(total_err) ? total_err : infinity;
962962
};
963963

0 commit comments

Comments
 (0)