diff options
Diffstat (limited to 'ggml-common.h')
-rw-r--r-- | ggml-common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ggml-common.h b/ggml-common.h index c7f865e8..f5a35960 100644 --- a/ggml-common.h +++ b/ggml-common.h @@ -381,13 +381,14 @@ typedef struct { } block_iq1_bn; static_assert(sizeof(block_iq1_bn) == sizeof(uint16_t) + QK_IQ1BN/8 + QK_IQ1BN/16, "wrong iq1_bn block size/padding"); // -// Bitnet - implemented as 2.0 bpw +// Bitnet - implemented as 2.25 bpw // #define QK_IQ2BN 64 typedef struct { + ggml_half d; uint8_t qs[QK_IQ2BN/4]; } block_iq2_bn; -static_assert(sizeof(block_iq2_bn) == QK_IQ2BN/4, "wrong iq2_bn block size/padding"); +static_assert(sizeof(block_iq2_bn) == sizeof(ggml_half) + QK_IQ2BN/4, "wrong iq2_bn block size/padding"); // Used by IQ1_M quants typedef union { |