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 struct
Struct_mla_decompress_k_cache_ragged_paged
struct Struct_mla_decompress_k_cache_ragged_paged
Registers the mo.mla.decompress.k.cache.ragged.paged graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[dtype: DType, //, target: StringSlice[ImmStaticOrigin]](k_latent_buffer: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=k_latent_buffer.static_spec], k_buffer: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=k_buffer.static_spec], buffer_row_offsets_1d: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=buffer_row_offsets_1d.static_spec], cache_offsets_1d: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=cache_offsets_1d.static_spec], buffer_length: Int32, weight: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=weight.static_spec], kv_blocks: ManagedTensorSlice[IOSpec[_, _].MutableInput, static_spec=kv_blocks.static_spec], cache_lengths: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=cache_lengths.static_spec], kv_lookup_table: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=kv_lookup_table.static_spec], max_prompt_length: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=max_prompt_length.static_spec], max_cache_length: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=max_cache_length.static_spec], layer_idx: UInt32, context: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!