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
kv_cache
Registers KV-cache graph ops backed by the kv_cache and nn.kv_cache kernels.
comptime valuesβ
loggerβ
comptime logger = Logger(stdout, prefix=String(""), source_location=False)
Structsβ
- β
KVCacheCopyPagesD2H: Registers themo.kv_cache.copy_pages_d2hgraph op with the graph compiler. - β
Struct_fused_qk_rms_norm_ragged_paged: Registers themo.fused_qk_rms_norm.ragged.pagedgraph op with the graph compiler. - β
Struct_fused_qk_rms_norm_rope_ragged_paged: Registers themo.fused_qk_rms_norm_rope.ragged.pagedgraph op with the graph compiler. - β
Struct_fused_qk_rms_norm_rope_ragged_paged_dual: Registersmo.fused_qk_rms_norm_rope.ragged.paged.dualwith the graph compiler. - β
Struct_k_matmul_ragged_paged: Registers themo.k_matmul.ragged.pagedgraph op with the graph compiler. - β
Struct_k_matmul_ragged_paged_scale: Registers themo.k_matmul.ragged.paged.scalegraph op with the graph compiler. - β
Struct_kv_cache_ragged_paged_2m_iadd: Registers themo.kv_cache.ragged.paged.2m_iaddgraph op with the graph compiler. - β
Struct_kv_cache_ragged_paged_radd: Registers themo.kv_cache.ragged.paged.raddgraph op with the graph compiler. - β
Struct_kv_cache_row_offsets_ragged_paged: Registers themo.kv_cache.row_offsets.ragged.pagedgraph op with the graph compiler. - β
Struct_kv_cache_store_k_scales_paged: Registers themo.kv_cache.store_k_scales.paged.raggedgraph op with the graph compiler. - β
Struct_kv_cache_store_padded: Registers themo.kv_cache.store.paged.paddedgraph op with the graph compiler. - β
Struct_kv_cache_store_paged: Registers themo.kv_cache.store.paged.raggedgraph op with the graph compiler. - β
Struct_kv_matmul_ragged_paged: Registers themo.kv_matmul.ragged.pagedgraph op with the graph compiler. - β
Struct_print_kv_cache_paged: Registers themo.print_kv_cache.pagedgraph op with the graph compiler. - β
Struct_rms_norm_kv_cache_ragged_paged: Registers themo.rms_norm_kv_cache.ragged.pagedgraph op with the graph compiler. - β
Struct_rms_norm_value_cache_ragged_paged: Registers themo.rms_norm_value_cache.ragged.pagedgraph op with the graph compiler.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!