summaryrefslogtreecommitdiff
path: root/ggml-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'ggml-common.h')
-rw-r--r--ggml-common.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/ggml-common.h b/ggml-common.h
index f5a35960..d3945975 100644
--- a/ggml-common.h
+++ b/ggml-common.h
@@ -375,20 +375,19 @@ static_assert(sizeof(block_iq1_m) == QK_K/8 + QK_K/16 + QK_K/32, "wrong iq1_m bl
//
#define QK_IQ1BN 64
typedef struct {
- uint16_t extra;
+ uint8_t extra;
uint8_t ql[QK_IQ1BN/8];
uint8_t qh[QK_IQ1BN/16];
} block_iq1_bn;
-static_assert(sizeof(block_iq1_bn) == sizeof(uint16_t) + QK_IQ1BN/8 + QK_IQ1BN/16, "wrong iq1_bn block size/padding");
+static_assert(sizeof(block_iq1_bn) == sizeof(uint8_t) + QK_IQ1BN/8 + QK_IQ1BN/16, "wrong iq1_bn block size/padding");
//
// 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) == sizeof(ggml_half) + QK_IQ2BN/4, "wrong iq2_bn block size/padding");
+static_assert(sizeof(block_iq2_bn) == QK_IQ2BN/4, "wrong iq2_bn block size/padding");
// Used by IQ1_M quants
typedef union {