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
KBufferConfig
struct KBufferConfig[BN: Int, BK: Int, WN: Int]
K-role decode buffer config that iterates DRAM along the column axis.
The warp tile is [WN, BK] (key-block width by strip width), the block
tile is [BN, BK], and iterator_axis = 1 advances tile_idx across
column strips of the DRAM tile.
Parametersβ
- βBN (
Int): Number of keys per block tile (extent along the key axis). - βBK (
Int): Strip width along the MMA K dimension. - βWN (
Int): Number of keys per warp tile.
Implemented traitsβ
AnyType,
ImplicitlyDeletable,
KVBufferConfig
comptime membersβ
btile_dim0β
comptime btile_dim0 = BN
btile_dim1β
comptime btile_dim1 = BK
iterator_axisβ
comptime iterator_axis = 1
wsizeβ
comptime wsize = KBufferConfig[BN, BK, WN].wtile_dim0
wtile_dim0β
comptime wtile_dim0 = WN
wtile_dim1β
comptime wtile_dim1 = BK
Methodsβ
get_wtile_coordβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!