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_qkv_matmul_padded_ragged_scale_float4
struct Struct_fused_qkv_matmul_padded_ragged_scale_float4
Registers the mo.fused_qkv_matmul.ragged.paged.scale.float4 graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[dtype: DType, scale_type: DType, output_type: DType, kv_type: DType, //, SF_VECTOR_SIZE: Int, target: StringSlice[ImmStaticOrigin]](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], hidden_state: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=hidden_state.static_spec], input_row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input_row_offsets.static_spec], weight: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=weight.static_spec], input_scale: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input_scale.static_spec], weight_scale: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=weight_scale.static_spec], tensor_sf: Float32, 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, ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!