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_cross_attention_ragged_paged
struct Struct_cross_attention_ragged_paged
Registers the mo.cross_attention.ragged.paged graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[out_dtype: DType, q_dtype: DType, cache_dtype: DType, //, mask_str: StringSlice[ImmStaticOrigin], target: StringSlice[ImmStaticOrigin], local_window_size: Int = Int(-1)](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], q: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=q.static_spec], q_input_row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=q_input_row_offsets.static_spec], q_max_seq_len: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=q_max_seq_len.static_spec], kv_input_row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=kv_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], layer_idx: UInt32, scale: Float32, context: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!