vllm.models.kimi_k3.nvidia.specialized_decode.runtime
¶
Kimi K3 specialized decode: a CuTe decode executor over the stock backbone, enabled
by additional_config={"decode_backend": "latency_specialized"}.
Modules:
-
decode–The specialized decode executor over the stock Kimi K3 backbone: one routing
-
dep–The specialized decode at DEP (data-parallel attention at TP1 + expert-parallel
-
hybrid–The specialized decode of the hybrid decomposition: attention (KDA, DSA) and
-
prefetch–L2 weight prefetch for the specialized decode.
-
providers–Per-layer attention providers (input projection, KDA/MLA core, o-projection) and
Functions:
-
dsa_fi_kernels–The FlashInfer sparse MLA kernels of the DSA layers on a per-tensor FP8 or
-
dsa_unsupported–Why the K3.1 DSA layers' specialized kernels cannot run: the query and index
-
kda_dtypes–(conv, recurrent) KDA state dtypes the deployment's cache config selects.
-
prims_ts_rows–The prims_ts plans' row capacities: the deployment's CUDA graph sizes and the
-
specialized_decode_config–The deployment's specialized decode settings, None for the stock decode.
dsa_fi_kernels(vllm_config)
¶
The FlashInfer sparse MLA kernels of the DSA layers on a per-tensor FP8 or nvfp4_ds_mla cache (none for other models and caches).
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/runtime/__init__.py
dsa_unsupported(vllm_config)
¶
Why the K3.1 DSA layers' specialized kernels cannot run: the query and index fronts implement the K3.1 indexer (no indexer RoPE, LayerNorm keys; an FP8 wq_index is refused when the layer is built), and on a FlashInfer sparse cache the per-batch kernel policy needs FlashInfer's prims_ts kernel.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/runtime/__init__.py
kda_dtypes(vllm_config)
¶
(conv, recurrent) KDA state dtypes the deployment's cache config selects.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/runtime/__init__.py
prims_ts_rows(vllm_config)
¶
The prims_ts plans' row capacities: the deployment's CUDA graph sizes and the powers of two up to its widest call (FLASHINFER_MLA_SPARSE's buckets).
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/runtime/__init__.py
specialized_decode_config(vllm_config)
¶
The deployment's specialized decode settings, None for the stock decode. Raises when the specialized decode is requested for an unsupported deployment.