For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
block_Q4_K
struct block_Q4_K
Represents a single Q4_K quantization block with grouped 4-bit values.
Fieldsβ
- βbase_scale (
Float16): The super-block scale factor. - βbase_min (
Float16): The super-block minimum value. - βq_scales_and_mins (
Array[UInt8, Int(12)]): The 6-bit quantized per-group scales and mins, packed into bytes. - βq_bits (
Array[UInt8, Int(128)]): The 4-bit quantized values, two per byte.
Implemented traitsβ
comptime membersβ
group_countβ
comptime group_count = 8
The number of groups within a block.
group_sizeβ
comptime group_size = 32
The number of elements per quantization group.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!