Skip to content

[Misc]: Question: Where can I find getting computed kv cache code on v0. #13327

Open
@hiroki-nishimoto-fixstars

Description

Hi, I'm trying understanding the work flow of vLLM and I'm intersting in Prefix Caching.

So, I want to know the conditions of prefix caching and who (Scheduler, Executor, Worker, Runner etc. ) get kv cache.

In v1 code, I found it.

# Get already-cached tokens.
computed_blocks, num_computed_tokens = \
self.kv_cache_manager.get_computed_blocks(request)

But, v0, I failed to find it.

Does any one help me?

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions