Fix scale factor overwrite bug
This commit is contained in:
parent
53cff1ed33
commit
d6a718e55a
|
|
@ -1425,13 +1425,10 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
|
||||||
type_choice ch;
|
type_choice ch;
|
||||||
ch.w = tw;
|
ch.w = tw;
|
||||||
ch.n_elements = ggml_nelements(tensor);
|
ch.n_elements = ggml_nelements(tensor);
|
||||||
bool bias_needed = false;
|
|
||||||
|
|
||||||
for (const auto & ev : evaluations) {
|
for (const auto & ev : evaluations) {
|
||||||
if (ev.bytes == 0) { continue; }
|
if (ev.bytes == 0) { continue; }
|
||||||
type_scores ts = ev;
|
ch.candidates.push_back(ev);
|
||||||
if (!valid_wce && !bias_needed) { ts.error = ts.mse; }
|
|
||||||
ch.candidates.push_back(ts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch.candidates.empty()) {
|
if (ch.candidates.empty()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue