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
VBufferConfig
struct VBufferConfig[BN: Int, BK: Int, WN: Int, depth: Int]
V-role decode buffer config that iterates DRAM along the row axis.
The warp tile is [BK, depth // num_warps_n] (strip width by per-warp
depth slice), the block tile is [BK, depth], and iterator_axis = 0
advances tile_idx across row 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. - βdepth (
Int): Per-head depth of the KV cache (head dimension).
Implemented traitsβ
AnyType,
ImplicitlyDeletable,
KVBufferConfig
comptime membersβ
btile_dim0β
comptime btile_dim0 = BK
btile_dim1β
comptime btile_dim1 = depth
iterator_axisβ
comptime iterator_axis = 0
wsizeβ
comptime wsize = VBufferConfig[BN, BK, WN, depth].wtile_dim1
wtile_dim0β
comptime wtile_dim0 = BK
wtile_dim1β
comptime wtile_dim1 = (depth // (BN // WN))
Methodsβ
get_wtile_coordβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!