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 module
mha_tile_scheduler
Provides tile schedulers for multi-head attention kernels on NVIDIA GPUs.
Defines the MHATileScheduler trait and concrete schedulers (TileScheduler,
TransientScheduler, QueuedTileScheduler) that map work tiles to thread
blocks, along with supporting state and summary types used by the persistent
attention kernel.
Structsβ
- β
MHASchedule: Enumerates the scheduling strategy for mapping work tiles to thread blocks. - β
MHASchedulerSynchronization: Enumerates synchronization modes for advancing the MHA scheduler. - β
MHATileState: Tracks the mutable per-CTA state of the tile scheduler during kernel execution. - β
MHATileSummary: Summarizes the dimensions and valid-length metadata of the MHA work grid. - β
QueuedTileScheduler: Ifdecoding == False, thennum_headsisq_num_heads. Ifdecoding == True, thennum_headsiskv_num_heads. - β
SeqInfo: Describes a sequence's length and starting offset for a work tile. - β
TileScheduler: Implements a persistent tile scheduler that cycles CTAs through work tiles. - β
TransientScheduler: Implements a non-persistent (transient) tile scheduler for the MHA kernel. - β
WorkInfo: Holds the coordinates and validity of a single work tile.
Traitsβ
- β
MHATileScheduler: Describes a schedule for the persistent MHA kernel.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!