lmdeploy icon indicating copy to clipboard operation
lmdeploy copied to clipboard

[Feature] Reduce the CPU usage of the api_server with args "--tp 2" when the API is idle.

Open mizuikki opened this issue 1 year ago • 2 comments

Motivation

When lmdeploy is serving the api_server with args "--tp 2", it leads to 100% CPU usage by a single thread even without user access to the API interface.

CMD:

lmdeploy serve api_server --backend turbomind --tp 2 Qwen/Qwen3-32B-AWQ
lmdeploy serve api_server --backend pytorch --tp 2 Qwen/Qwen3-32B-AWQ

Related resources

No response

Additional context

turbomind backend: Image pytorch backend: Image

When I used the args --tp 1, the CPU usage returned to normal, so it might be an issue related to tensor parallelism.

mizuikki avatar Jul 26 '25 05:07 mizuikki

Which inference engine are you using?

lvhan028 avatar Jul 26 '25 06:07 lvhan028

Which inference engine are you using?

Both engines perform the same.

mizuikki avatar Jul 26 '25 08:07 mizuikki