For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo module
quantization
Registers quantization and dequantization graph ops backed by the quantization and linalg kernels.
comptime values
logger
comptime logger = Logger(stdout, prefix=String(""), source_location=False)
Structs
-
GGMLQ40Dequantize: Registers theggml_q4_0_dequantizegraph op with the graph compiler. -
GGMLQ4KDequantize: Registers theggml_q4_k_dequantizegraph op with the graph compiler. -
GGMLQ6KDequantize: Registers theggml_q6_k_dequantizegraph op with the graph compiler. -
QMatmulGPU_b4_g128: Registers theqmatmul_b4_g128graph op with the graph compiler. -
QMatmulGPU_b4_g32: Registers theqmatmul_b4_g32graph op with the graph compiler. -
QMatmulGPURepackGGUF: Registers theGGUF_gpu_repack_q4_0graph op with the graph compiler. -
QMatmulGPURepackGPTQ_b4_g128: Registers theGPTQ_gpu_repack_b4_g128graph op with the graph compiler. -
QMatmulGPURepackGPTQ_b4_g128_desc_act: Registers theGPTQ_gpu_repack_b4_g128_desc_actgraph op with the graph compiler. -
QuantizeDynamicScaledFloat8: Registers themo.quantize_dynamic_scaled_float8graph op with the graph compiler. -
QuantizeStaticScaledFloat8: Registers themo.quantize_static_scaled_float8graph op with the graph compiler. -
QuantizeTensorDynamicScaledFloat8: Registers themo.quantize_tensor_dynamic_scaled_float8graph op with the graph compiler. -
ResizeBicubic: Registers themo.resize.bicubicgraph op with the graph compiler. -
ResizeLinear: Registers themo.resize.lineargraph op with the graph compiler. -
ResizeNearest: Registers themo.resize.nearestgraph op with the graph compiler. -
RMSNormFusedQuantizeDynamicScaledFP8: Registers themo.composite.rms_norm_fused_quantize_dynamic_scaled_fp8graph op with the graph compiler. -
Struct_block_scaled_preshuffle_b_5d: Run the AMD CDNA4 MXFP4 B 5D preshuffle as a custom op. -
Struct_block_scaled_preshuffle_scale_4d_per_expert: Per-step A-scale preshuffle for the AMD CDNA4 preb grouped matmul. -
Struct_dequant_mxfp4: Registers themo.dequant.mxfp4graph op with the graph compiler. -
Struct_dequant_mxfp6: Registers themo.dequant.mxfp6graph op with the graph compiler. -
Struct_grouped_quantize_dynamic_block_scaled: Registers themo.grouped.quantize.dynamic.block.scaledgraph op with the graph compiler. -
Struct_interleave_block_scales: Registers themo.interleave.block.scalesgraph op with the graph compiler. -
Struct_quantize_dynamic_block_scaled: Registers themo.quantize.dynamic.block.scaledgraph op with the graph compiler. -
Struct_quantize_dynamic_block_scaled_mxfp4: Registers themo.quantize.dynamic.block.scaled.mxfp4graph op with the graph compiler. -
Struct_quantize_dynamic_block_scaled_mxfp6: Registers themo.quantize.dynamic.block.scaled.mxfp6graph op. -
Struct_unfused_qkv_matmul_ragged_paged_gguf_quantized: Registers themo.unfused_qkv_matmul.ragged.paged.gguf_quantizedgraph op with the graph compiler. -
VroomQ40Matmul: Registers thevroom_q4_0_matmulgraph op with the graph compiler. -
VroomQ40RepackWeights: Registers thevroom_q4_0_repack_weightsgraph op with the graph compiler. -
VroomQ4KMatmul: Registers thevroom_q4_k_matmulgraph op with the graph compiler. -
VroomQ4KRepackWeights: Registers thevroom_q4_k_repack_weightsgraph op with the graph compiler. -
VroomQ6KMatmul: Registers thevroom_q6_k_matmulgraph op with the graph compiler. -
VroomQ6KRepackWeights: Registers thevroom_q6_k_repack_weightsgraph op with the graph compiler.
Functions
-
composite_rms_norm_fused_quantize_dynamic_scaled_fp8_shape: Computes the output shapes for the fused RMS norm and dynamic scaled FP8 quantization op. -
ggml_q4_0_dequantize_shape: Computes the output shape for theggml_q4_0_dequantizegraph op. -
ggml_q4_k_dequantize_shape: Computes the output shape for theggml_q4_k_dequantizegraph op. -
ggml_q6_k_dequantize_shape: Computes the output shape for theggml_q6_k_dequantizegraph op. -
GGUF_gpu_repack_q4_0_shape: Computes the output shape for theGGUF_gpu_repack_q4_0graph op. -
GPTQ_gpu_repack_b4_g128_desc_act_shape: Computes the output shape for theGPTQ_gpu_repack_b4_g128_desc_actgraph op. -
GPTQ_gpu_repack_b4_g128_shape: Computes the output shape for theGPTQ_gpu_repack_b4_g128graph op. -
qmatmul_b4_g128_shape: Computes the output shape for theqmatmul_b4_g128graph op. -
qmatmul_b4_g32_shape: Computes the output shape for theqmatmul_b4_g32graph op. -
resize_bicubic_shape: Computes the output shape for themo.resize.bicubicgraph op. -
resize_linear_shape: Computes the output shape for themo.resize.lineargraph op. -
resize_nearest_shape: Computes the output shape for themo.resize.nearestgraph op. -
vroom_q4_0_matmul_shape: Computes the output shape for thevroom_q4_0_matmulgraph op. -
vroom_q4_0_repack_weights_shape: Computes the output shape for thevroom_q4_0_repack_weightsgraph op. -
vroom_q4_k_matmul_shape: Computes the output shape for thevroom_q4_k_matmulgraph op. -
vroom_q4_k_repack_weights_shape: Computes the output shape for thevroom_q4_k_repack_weightsgraph op. -
vroom_q6_k_matmul_shape: Computes the output shape for thevroom_q6_k_matmulgraph op. -
vroom_q6_k_repack_weights_shape: Computes the output shape for thevroom_q6_k_repack_weightsgraph op.