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
NoPartition
struct NoPartition[dtype: DType]
A single-partition (non-split-K) scheme for MHA decoding.
Uses the standard single-pass flash-attention decode without any
inter-CTA reduction. do_partition is False, so the split-K
reduction kernel is compiled away entirely.
Parametersβ
- βdtype (
DType): The accumulator element type (same as the output type).
Implemented traitsβ
AnyType,
Copyable,
Defaultable,
ImplicitlyCopyable,
ImplicitlyDeletable,
MHAPartitionScheme,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
accum_dtypeβ
comptime accum_dtype = dtype
do_partitionβ
comptime do_partition = False
Methodsβ
__init__β
def __init__() -> Self
num_partitionsβ
max_num_partitionsβ
get_exp_sum_qk_max_pointerβ
def get_exp_sum_qk_max_pointer(self) -> Pointer[Scalar[Self.accum_dtype], MutAnyOrigin, _safe=False]
Returns:
Pointer[Scalar[Self.accum_dtype], MutAnyOrigin, _safe=False]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!