For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
KVCvt2MmaConsumer
struct KVCvt2MmaConsumer[dtype: DType, config: MLA_SM100_Decode_Config]
Consumes BF16 KV tiles from the convert producer for the MMA pipeline.
Parameters
- dtype (
DType): Element type of the converted KV tiles stored in SMEM. - config (
MLA_SM100_Decode_Config): Decode config supplyingnum_kv_stages,BN_QK, andq_depthfor pipeline stage sizing.
Fields
- pipe (
KVCvt2MmaConsumer[dtype, config].KVPipeType): - smem (
Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]):
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime members
kv_stage_elems
comptime kv_stage_elems = (config * config)
KVPipeType
comptime KVPipeType = KVPipelineGeneric[config.num_kv_stages, Int(1), _resolve_warpgroup_size(), Int(2)]
Methods
__init__
def __init__(pipe: KVPipelineGeneric[config.num_kv_stages, Int(1), _resolve_warpgroup_size(), Int(2)], smem: Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
stage_base_ptr
def stage_base_ptr[*, qk_stage: Int = Int(0)](self) -> Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
Returns:
Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
stage_index
wait
def wait[*, qk_stage: Int = Int(0)](self)
release
def release[*, qk_stage: Int = Int(0)](mut self, e: Int32)