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?
Thank you! We'll create more content like this.
Thank you for helping us improve!