vllm icon indicating copy to clipboard operation
vllm copied to clipboard

[Usage]: 为什么CPU KV cache usage一直为0.0%

Open WangJianQ-0118 opened this issue 11 months ago • 3 comments

Your current environment

The output of `python collect_env.py`

How would you like to use vllm

I want to run inference of a [specific model](put link here). I don't know how to integrate it with vllm.

我用的是L40,发现GPU KV cache在使用中,但是CPU KV cache一直为0,想利用起这部分资源,请问大佬们该如何配置呀?

INFO 01-09 09:53:39 metrics.py:351] Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 18.5 tokens/s, Running: 1 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 20.0%, CPU KV cache usage: 0.0%. INFO: 10.38.115.100:51522 - "GET /metrics HTTP/1.1" 200 OK INFO 01-09 09:53:44 metrics.py:351] Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 18.5 tokens/s, Running: 1 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 20.0%, CPU KV cache usage: 0.0%. INFO: 10.38.115.100:51522 - "GET /metrics HTTP/1.1" 200 OK INFO 01-09 09:53:49 metrics.py:351] Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 18.4 tokens/s, Running: 1 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 20.0%, CPU KV cache usage: 0.0%. INFO: 10.38.115.100:51522 - "GET /metrics HTTP/1.1" 200 OK INFO 01-09 09:53:54 metrics.py:351] Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 18.4 tokens/s, Running: 1 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 20.0%, CPU KV cache usage: 0.0%.

Before submitting a new issue...

  • [X] 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.

WangJianQ-0118 avatar Jan 09 '25 02:01 WangJianQ-0118

the same to me

YuanCao1996 avatar Feb 12 '25 10:02 YuanCao1996

请问这个问题你解决了嘛

LluckyYH avatar Feb 17 '25 03:02 LluckyYH

You can check this issue #2853

ydcool avatar Mar 06 '25 10:03 ydcool

This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!

github-actions[bot] avatar Jun 05 '25 02:06 github-actions[bot]

This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!

github-actions[bot] avatar Jul 06 '25 02:07 github-actions[bot]