lmdeploy
lmdeploy copied to clipboard
[Feature] Reduce the CPU usage of the api_server with args "--tp 2" when the API is idle.
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:
pytorch backend:
When I used the args --tp 1, the CPU usage returned to normal, so it might be an issue related to tensor parallelism.
Which inference engine are you using?
Which inference engine are you using?
Both engines perform the same.