mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-04-30 19:31:48 +00:00
Minor
This commit is contained in:
@@ -7609,7 +7609,7 @@ size_t quantize_iq1_s_r4(const float * src, void * dst, int64_t nrows, int64_t n
|
|||||||
weight[j] = imatrix[kBlockSize*ibl + j]*sqrt(sigma2 + xb[j]*xb[j]);
|
weight[j] = imatrix[kBlockSize*ibl + j]*sqrt(sigma2 + xb[j]*xb[j]);
|
||||||
sumwx += weight[j]*std::abs(xb[j]);
|
sumwx += weight[j]*std::abs(xb[j]);
|
||||||
}
|
}
|
||||||
if (!sumwx) {
|
if (sumwx < 1e-14f) {
|
||||||
printf("Found block with mismatching importance/model weights\n");
|
printf("Found block with mismatching importance/model weights\n");
|
||||||
// Either all weights are zero, or xb is zero where weight is not zero.
|
// Either all weights are zero, or xb is zero where weight is not zero.
|
||||||
// In both of these cases it is better to simply ignore the imatrix
|
// In both of these cases it is better to simply ignore the imatrix
|
||||||
|
|||||||
Reference in New Issue
Block a user