Skip to content

Feature request: support DeepSeek-V4 KV cache pooling in vLLM and SGLang #369

Description

@shipiyouniao

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions