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_fused_qk_rope_ragged_paged_with_position_id
struct Struct_fused_qk_rope_ragged_paged_with_position_id[interleaved: Bool]
Registers the mo.fused_qk_rope.ragged.paged.with_position_id graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[dtype: DType, freq_dtype: DType, //, mrope_section: StringSlice[ImmStaticOrigin], target: StringSlice[ImmStaticOrigin], cache_dtype: DType = dtype](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], q_proj: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=q_proj.static_spec], input_row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input_row_offsets.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], freqs_cis: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=freqs_cis.static_spec], position_ids: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=position_ids.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!