[Platform] Fix RISC-V platform detection (lscpu parsing + non-NUMA meminfo) (#40427)

Signed-off-by: liuyudong <liuyudong@iscas.ac.cn>
This commit is contained in:
lyd1992
2026-04-24 12:33:05 +08:00
committed by GitHub
parent 56bdf85e10
commit 100c7b65e7
3 changed files with 37 additions and 8 deletions
+3 -1
View File
@@ -927,7 +927,9 @@ def get_vllm_version() -> str:
elif _is_tpu():
version += f"{sep}tpu"
elif _is_cpu():
if envs.VLLM_TARGET_DEVICE == "cpu":
# Check the local VLLM_TARGET_DEVICE (may be set by auto-detect above),
# not envs.VLLM_TARGET_DEVICE, so CPU-only hosts still get `+cpu`.
if VLLM_TARGET_DEVICE == "cpu":
version += f"{sep}cpu"
elif _is_xpu():
version += f"{sep}xpu"