Mojo function
mla_decode_sm100_kv_fp8
mla_decode_sm100_kv_fp8[q_type: DType, q_layout: Layout, k_t: MHAOperand, output_type: DType, mask_t: MHAMask, score_mod_t: ScoreModTrait, valid_layout: Layout, config: MHAConfig[dtype], depth: Int, num_heads: Int, group: Int = 1, *, use_score_mod: Bool = False, ragged: Bool = False, _is_cache_length_accurate: Bool = False, decoding_warp_split_k: Bool = False](q: LayoutTensor[q_type, q_layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], k: k_t, output: LayoutTensor[dtype, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], scale: Float32, batch_size: Int, num_partitions: Int, max_cache_valid_length: Int, q_max_seq_len: Int, valid_length: LayoutTensor[DType.uint32, layout, origin, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], mask: mask_t, score_mod: score_mod_t, ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!