IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 module

per_channel_grouped_4bit

Provides per-channel grouped 4-bit quantization and K-quant dequantization kernels.

Structs​

  • ​block_Q4_K: Represents a single Q4_K quantization block with grouped 4-bit values.
  • ​block_Q6_K: Represents a single Q6_K quantization block with grouped 6-bit values.
  • ​block_QK_K: Defines the element count per block shared by K-quant formats.
  • ​Q4sym: Q4sym: compresses values of type float_dtype to 4bit unsigned integers which have been dynamically symmetrically quantized with the given scale factor.

Functions​