Fix scale factor overwrite bug

This commit is contained in:
Ed Addario 2026-03-02 18:40:39 +00:00
parent 53cff1ed33
commit d6a718e55a
No known key found for this signature in database
GPG Key ID: E7875815A3230993
1 changed files with 1 additions and 4 deletions

View File

@ -1425,13 +1425,10 @@ static std::unordered_map<std::string, ggml_type> 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()) {