diff options
Diffstat (limited to 'ggml/src/ggml-common.h')
-rw-r--r-- | ggml/src/ggml-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ggml/src/ggml-common.h b/ggml/src/ggml-common.h index 6dc439b8..1dc1ff6e 100644 --- a/ggml/src/ggml-common.h +++ b/ggml/src/ggml-common.h @@ -630,6 +630,13 @@ typedef struct { static_assert(sizeof(block_iq2_ks) == sizeof(uint16_t) + QK_K/64 + QK_K/4, "wrong iq2_ks block size/padding"); typedef struct { + uint8_t sh[QK_K/32]; // 4-bit scales + 13th bits for groups of 8 + uint8_t ql[QK_K/8]; // low 8 bits for groups of 8 + uint8_t qh[QK_K/16]; // high 4 bits for groups of 8 +} block_iq1_kt; +static_assert(sizeof(block_iq1_kt) == QK_K/8 + QK_K/16 + QK_K/32, "wrong iq1_kt block size/padding"); + +typedef struct { uint8_t scales[QK_K/64]; uint8_t ql[QK_K/4]; } block_iq2_kt; |