vllm.models.nemotron_shortcut.nvidia.sdsa.kv_cache_grouping
¶
SDSA's KV cache grouping requirement.
An SDSA layer has two caches: its core's K/V cache (<layer>.core) and its
indexer's key cache (<layer>.indexer.cache). The indexer selects keys by
position and maps them to core cache slots through its own block table, so the
two must share one KV cache group (one block table, one block size). A model
with SDSA layers inherits SdsaKVCacheGrouping, which adds each indexer cache to
its core's group.
Classes:
-
SdsaKVCacheGrouping–vLLM's default KV cache grouping, with each SDSA indexer cache in its
SdsaKVCacheGrouping
¶
Bases: SupportsKVCacheGrouping
vLLM's default KV cache grouping, with each SDSA indexer cache in its core's group.