For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python class
PagedKVLeafRegion
PagedKVLeafRegionโ
class max.nn.kv_cache.PagedKVLeafRegion(leaf_id, group_id, bytes_per_page, page_size)
Bases: KVLeafRegion
A leaf the graph reaches through a per-forward page table.
blocks_to_reserve()โ
blocks_to_reserve(num_blocks)
Returns num_blocks, capped by the window when the leaf has one.
page_sizeโ
page_size: int
Number of tokens per page.