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
MLA_SM100_Decode_Config
struct MLA_SM100_Decode_Config
Holds the tile sizes, swizzle modes, and SMEM/TMEM layout for an SM100 MLA decode kernel.
Fieldsβ
- βMMA_M (
Int): - βMMA_PV_N (
Int): - βMMA_QK_N (
Int): - βBM (
Int): - βBN_PV (
Int): - βBN_QK (
Int): - βBK_QK (
Int): - βq_depth (
Int): - βdepth (
Int): - βpadded_depth (
Int): - βpadded_q_depth (
Int): - βrope_depth (
Int): - βgroup (
Int): - βnum_q_heads (
Int): - βnum_kv_heads (
Int): - βtmem_used (
Int): - βnum_kv_stages (
Int): - βsmem_used (
Int): - βdtype_size (
Int): - βnum_threads (
Int): - βswizzle_mode (
TensorMapSwizzle): - βkv_mma_swizzle_mode (
TensorMapSwizzle): - βkv_tma_swizzle_mode (
TensorMapSwizzle): - βcontent_swizzle_mode (
TensorMapSwizzle): - βrope_swizzle_mode (
TensorMapSwizzle): - βdecoding_warp_split_k (
Bool): - βout_rows (
Int): - βpage_size (
Int): - βsplit_page_size (
Int): - βscale_block_size (
Int): - βscales_per_token (
Int): - βscale_smem_per_stage (
Int): - βper_token_scale_rope_aware (
Bool): - βper_token_scales_per_stage (
Int): - βdecode_layout_g (
Bool): - βBK_PV (
Int): - βskip_correction_threshold (
Float32):
Implemented traitsβ
comptime membersβ
cta_groupβ
comptime cta_group = 1
MAX_TMEM_S_SLOTSβ
comptime MAX_TMEM_S_SLOTS = Int(6)
mbar_sizeβ
comptime mbar_size = size_of[DType.int64]()
MMA_Kβ
comptime MMA_K = 16
sm100_smem_carveoutβ
comptime sm100_smem_carveout = (GPUInfo.from_family(AcceleratorArchitectureFamily(Int(32), Int(2048), Int(233472), Int(65536), Int(1024)), StringSlice("B200"), Vendor(Int8(2)), StringSlice("cuda"), StringSlice("blackwell"), SIMD(10), StringSlice("sm_100a"), Int(148)) - Int(1024))
sm100_tmem_colsβ
comptime sm100_tmem_cols = 512
TMEM_CORR_LIβ
comptime TMEM_CORR_LI = Int(449)
TMEM_CORR_SCALEβ
comptime TMEM_CORR_SCALE = Int(448)
TMEM_Oβ
comptime TMEM_O = Int(0)
TMEM_S0β
comptime TMEM_S0 = Int(256)
TMEM_S1β
comptime TMEM_S1 = Int(288)
Methodsβ
__init__β
def __init__(out self, *, num_q_heads: Int, group: Int, depth: Int, q_depth: Int, dtype_size: Int, kv_type_size: Int, swizzle_mode: TensorMapSwizzle, kv_mma_swizzle_mode: TensorMapSwizzle, page_size: Int, decoding_warp_split_k: Bool, split_page_size: Int = Int(128), scale_block_size: Int = Int(0), native_fp8: Bool = False, per_token_scale_rope_aware: Bool = False, decode_layout_g: Bool = False, bn_qk: Int = Int(0), bk_pv: Int = Int(0), skip_correction_threshold: Float32 = -6)
supportedβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!