Skip to content

Commit d43c493

Browse files
committed
Fixed required good experts checks
1 parent 861361a commit d43c493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/imatrix/imatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void IMatrixCollector::save_imatrix(int ncall) const {
286286
size_t required_good_experts = round((kv.second.n_as * required_good_expert_percentage) / 100.0);
287287
size_t good_experts = kv.second.n_as - bad_experts.size();
288288
LOG_WRN("%s: %d out of %d experts are missing data - %ld out of %ld required\n", __func__, int(bad_experts.size()), kv.second.n_as, good_experts, required_good_experts);
289-
if (bad_experts.size() < required_good_experts) {
289+
if (good_experts >= required_good_experts) {
290290
LOG_WRN("%s: %d out of %d experts are missing data - storing but be aware\n", __func__, int(bad_experts.size()), kv.second.n_as);
291291
store_it = true;
292292
for (auto i : bad_experts) {

0 commit comments

Comments
 (0)