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 function

scale_min_k4

def scale_min_k4(src_ptr: Pointer[block_Q4_K, _safe=False], g: Int) -> Tuple[Float32, Float32]

Extracts the 6-bit quantized scale and min for group g from a Q4_K block.

Args:

  • src_ptr (Pointer[block_Q4_K, _safe=False]): Pointer to the source Q4_K block.
  • g (Int): The group index to extract the scale and min for.

Returns:

Tuple[Float32, Float32]: The quantized scale and min as float32 values.

Was this page helpful?