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
CacheLeafKind
CacheLeafKindโ
class max.nn.kv_cache.CacheLeafKind(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases: Enum
What a child of a cache tree holds.
ATTENTIONโ
ATTENTION = 'attention'
Keys and values a span of tokens wrote, read through an attention op.
RECURRENTโ
RECURRENT = 'recurrent'
One fixed-size state carrying every token before it.