GGML lookup tables
Values copied verbatim (MIT licence, (c) The ggml authors). For uint32/uint64 grid tables, dequantization reads the entry as a little-endian byte array: grid[j] = byte j of the entry (int8 for iq1s_grid, uint8 otherwise).
ggml-org/ggml src/ggml-common.h
ggml src/ggml-common.h (block_* structs, QK_* constants, lookup tables)
- QK_K 256
- K_SCALE_SIZE 12
- IQ1S_DELTA 0.125
- IQ1M_DELTA 0.125
- NGRID_IQ1S 2048
- 0
1 - 1
2 - 2
4 - 3
8 - 4
16 - 5
32 - 6
64 - 7
128
Nick Reynolds · @goldnode · rev 2.5