Skip to content

[Usage]: How to get "num_gpu_blocks" in V1? #15538

@yansh97

Description

@yansh97

Your current environment

The output of `python collect_env.py`

How would you like to use vllm

In V0, I can get "num_gpu_blocks" through "llm.llm_engine.cache_config.num_gpu_blocks".

But in V1, LLM and EngineCore are in different processes. How can I get "num_gpu_blocks"?

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

    good first issueGood for newcomershelp wantedExtra attention is neededstaleOver 90 days of inactivityusageHow to use vllm

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions