Skip to content

[Feature]: co-exist of multiply kv connector #16397

@maobaolong

Description

@maobaolong

🚀 The feature, motivation and pitch

Image

Now, there are two kind of kv connector.

  1. Offload kv cache to kv connector for reuse purpose
  2. Transfer KVCache from P to D

But we could only specific one kv connector, this make the two above kv connectors cannot co-exist, i propose to do an abstract or use a type, maybe {p2p, offload} to support to find the needed kv connector.

In my view, the ideal way is

  1. P check for partial cache hit and do prefill for the uncache hit part.
  2. P transfer the minimal necessary kv cache(which mean Decode instance cannot obtain it from offload kv connector)
  3. D receive KV cache from offload connector and P and update the kvcache
  4. D execute the decode step by step until finish.
  5. D save the kv cache into offload kv connector for reuse purpose
  6. Goto 1.

Any idea about this?

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requeststaleOver 90 days of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions