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
DecodeKVProducer
struct DecodeKVProducer[dtype: DType, config: MLA_SM100_Decode_Config, num_producer: Int = Int(1)]
Fieldsβ
- βpipe (
DecodeKVProducer[dtype, config, num_producer].KVPipeType): - βsmem (
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
kv_stage_bytesβ
comptime kv_stage_bytes = (Int((mul config.BN_QK, config.q_depth)) * size_of[dtype]())
kv_stage_elemsβ
comptime kv_stage_elems = (config * config)
KVPipeTypeβ
comptime KVPipeType = KVPipelineGeneric[config.num_kv_stages, Int(1), num_producer, Int(2)]
Methodsβ
__init__β
def __init__(pipe: KVPipelineGeneric[config.num_kv_stages, Int(1), num_producer, Int(2)], smem: UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
initβ
def init(self)
stage_base_ptrβ
def stage_base_ptr[*, qk_stage: Int = Int(0)](self) -> UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
Returns:
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
stage_indexβ
producer_mbarβ
def producer_mbar[*, qk_stage: Int = Int(0)](self) -> MBarType
Returns:
MBarType
acquireβ
def acquire[*, qk_stage: Int = Int(0)](self)
commit_stepβ
def commit_step(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!