Skip to content

vllm: Cannot select GPU device #1863

Description

@scetu

Platform

Linux/Ubuntu

Lemonade Version

10.4.0

GPU / APU Model

AMD Ryzen™ AI 9 HX PRO 370 w/ Radeon™ 890M × 24

Component

Other / Not sure

Bug Description

Cannot run vLLM backend, due to hardware configuration of laptop with AMD Ryzen AI 9 + Nvidia dGPU.

2026-05-10 21:13:12.716 [Info] (Server) Ensuring model loaded: Qwen3.5-4B-vLLM 
2026-05-10 21:13:12.716 [Info] (vLLM) Loading model: Qwen3.5-4B-vLLM
2026-05-10 21:13:12.955 [Info] (vLLM) Starting vllm-server on port 8001...
2026-05-10 21:13:12.957 [Info] (ProcessManager) Process started successfully, PID: 54798
2026-05-10 21:13:16.356 [Info] (Process) Traceback (most recent call last):
2026-05-10 21:13:16.356 [Info] (Process)   File "<frozen runpy>", line 198, in _run_module_as_main
2026-05-10 21:13:16.356 [Info] (Process)   File "<frozen runpy>", line 88, in _run_code
2026-05-10 21:13:16.356 [Info] (Process)   File "/var/lib/lemonade/.cache/lemonade/bin/vllm/rocm/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 25, in <module>
2026-05-10 21:13:16.356 [Info] (Process)     from vllm.config import ModelConfig, VllmConfig
2026-05-10 21:13:16.356 [Info] (Process)   File "/var/lib/lemonade/.cache/lemonade/bin/vllm/rocm/lib/python3.12/site-packages/vllm/config/__init__.py", line 6, in <module>
2026-05-10 21:13:16.356 [Info] (Process)     from vllm.config.compilation import (
2026-05-10 21:13:16.356 [Info] (Process)   File "/var/lib/lemonade/.cache/lemonade/bin/vllm/rocm/lib/python3.12/site-packages/vllm/config/compilation.py", line 22, in <module>
2026-05-10 21:13:16.356 [Info] (Process)     from vllm.platforms import current_platform
2026-05-10 21:13:16.356 [Info] (Process)   File "<frozen importlib._bootstrap>", line 1412, in _handle_fromlist
2026-05-10 21:13:16.356 [Info] (Process)   File "/var/lib/lemonade/.cache/lemonade/bin/vllm/rocm/lib/python3.12/site-packages/vllm/platforms/__init__.py", line 277, in __getattr__
2026-05-10 21:13:16.356 [Info] (Process)     platform_cls_qualname = resolve_current_platform_cls_qualname()
2026-05-10 21:13:16.356 [Info] (Process)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-05-10 21:13:16.356 [Info] (Process)   File "/var/lib/lemonade/.cache/lemonade/bin/vllm/rocm/lib/python3.12/site-packages/vllm/platforms/__init__.py", line 240, in resolve_current_platform_cls_qualname
2026-05-10 21:13:16.356 [Error] (Process)     raise RuntimeError(
2026-05-10 21:13:16.356 [Error] (Process) RuntimeError: Only one platform plugin can be activated, but got: ['cuda', 'rocm']
2026-05-10 21:13:17.173 [Error] (WrappedServer) vllm-server process has terminated with exit code: 1
2026-05-10 21:13:17.173 [Error] (WrappedServer) This usually means:
2026-05-10 21:13:17.173 [Error] (WrappedServer)   - Missing required drivers or dependencies
2026-05-10 21:13:17.173 [Error] (WrappedServer)   - Incompatible model file
2026-05-10 21:13:17.173 [Error] (WrappedServer)   - Try running the server manually to see the actual error
2026-05-10 21:13:22.178 [Warn] (ProcessManager) Process did not respond to SIGTERM, using SIGKILL
2026-05-10 21:13:22.178 [Info] (ProcessManager) Process terminated, waiting for GPU driver cleanup...
2026-05-10 21:13:24.178 [Error] (Router) Backend load failed: vllm-server failed to start within timeout
2026-05-10 21:13:24.178 [Warn] (Router) Load failed with non-file-not-found error, evicting all models and retrying...
2026-05-10 21:13:24.178 [Info] (Router) Evicting all models (0 total)
2026-05-10 21:13:24.178 [Info] (Router) All models evicted

System Details Report

Hardware Information:

  • Processor: AMD Ryzen™ AI 9 HX PRO 370 w/ Radeon™ 890M × 24
  • Graphics 1: AMD Radeon™ 890M Graphics
  • Graphics 2: NVIDIA RTX PRO 1000 Blackwell Generation Laptop GPU

Steps to Reproduce

  1. Download vLLM model + backend
  2. Try to run the model on laptop with AMD Ryzen AI + dGPU

Expected vs Actual Behavior

Expected: Have ability to select GPU for interference with vLLM. There is not such setting now.

Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions