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
KVCvt2MmaProducer
struct KVCvt2MmaProducer[dtype: DType, config: MLA_SM100_Decode_Config]
Produces converted BF16 KV tiles for the MMA consumer 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 (
KVCvt2MmaProducer[dtype, config].PipeT): - βsmem (
Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED, _safe=False]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
kv_stage_elemsβ
comptime kv_stage_elems = (config * config)
PipeTβ
comptime PipeT = 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, _safe=False]) -> Self
acquireβ
def acquire(self)
stage_indexβ
stage_base_ptrβ
def stage_base_ptr(self) -> Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED, _safe=False]
Returns:
Pointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED, _safe=False]
commit_allβ
def commit_all(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!