diff options
author | Iwan Kawrakow <iwan.kawrakow@gmail.com> | 2024-06-16 17:27:18 +0300 |
---|---|---|
committer | Iwan Kawrakow <iwan.kawrakow@gmail.com> | 2024-06-22 12:02:51 +0300 |
commit | 4fcfcd05d1b2b01b2f2224406d96a6ea9831ddcb (patch) | |
tree | c2203ebbb4ba6ef3f301537aa1b61f8dbb84531c /ggml-quants.c | |
parent | 7f8901dca1296651ea3b20ac71f793c77495e294 (diff) |
bitnet: scale is per row, not per tensor
Diffstat (limited to 'ggml-quants.c')
-rw-r--r-- | ggml-quants.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml-quants.c b/ggml-quants.c index 552d6198..fc3155ef 100644 --- a/ggml-quants.c +++ b/ggml-quants.c @@ -3731,7 +3731,7 @@ void quantize_row_q8_K64_reference(const float * restrict x, block_q8_K64 * rest for (int j = 0; j < 64; ++j) { float ax = fabsf(x[j]); if (ax > amax) { - amax = ax; max = x[j]; + amax = ax; max = x[j]; } } if (!amax) { |