Feature request
Would the maintainers be open to adding official kvcached support for DeepSeek-V4 KV cache pooling in both vLLM and SGLang?
DeepSeek-V4 uses model/runtime-specific KV cache paths rather than only the common MHA/GQA/MLA pool classes. For SGLang, the relevant path appears to use dedicated DeepSeek-V4 pool classes such as DeepSeekV4TokenToKVPool / DeepSeekV4SingleKVPool, so support may need a dedicated adapter instead of relying only on the existing MHATokenToKVPool / MLATokenToKVPool replacement path.
The vLLM side may also need a separate compatibility check because DeepSeek-V4 support has been moving quickly across vLLM versions and may not share the exact same KV cache interfaces as older DeepSeek-V2/V3 MLA models.
Before sending a PR, I wanted to ask whether this model family is something the project would like to support upstream, and whether there is a preferred design direction for model-specific KV pool families like DeepSeek-V4.
One specific design question: should kvcached aim to fully replace the DeepSeek-V4 KV/cache pool stack, including compressed/cache side pools, or should the first upstream step only manage the full-attention KV portion and leave DeepSeek-V4-specific compressed/indexer/state pools owned by the serving runtime?
Thanks.
Feature request
Would the maintainers be open to adding official kvcached support for DeepSeek-V4 KV cache pooling in both vLLM and SGLang?
DeepSeek-V4 uses model/runtime-specific KV cache paths rather than only the common MHA/GQA/MLA pool classes. For SGLang, the relevant path appears to use dedicated DeepSeek-V4 pool classes such as
DeepSeekV4TokenToKVPool/DeepSeekV4SingleKVPool, so support may need a dedicated adapter instead of relying only on the existingMHATokenToKVPool/MLATokenToKVPoolreplacement path.The vLLM side may also need a separate compatibility check because DeepSeek-V4 support has been moving quickly across vLLM versions and may not share the exact same KV cache interfaces as older DeepSeek-V2/V3 MLA models.
Before sending a PR, I wanted to ask whether this model family is something the project would like to support upstream, and whether there is a preferred design direction for model-specific KV pool families like DeepSeek-V4.
One specific design question: should kvcached aim to fully replace the DeepSeek-V4 KV/cache pool stack, including compressed/cache side pools, or should the first upstream step only manage the full-attention KV portion and leave DeepSeek-V4-specific compressed/indexer/state pools owned by the serving runtime?
Thanks.