diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 90931f25e7..601b9ada42 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -1204,7 +1204,7 @@ static std::unordered_map target_bpw_type( }; while (hull.size() >= 2) { - if (cross_product(hull[hull.size() - 2], hull[hull.size() - 1], c) <= epsilon) { + if (cross_product(hull[hull.size() - 2], hull[hull.size() - 1], c) <= -1 * epsilon) { // very small negative tolerance hull.pop_back(); } else { break;