vLLM support broken on Windows with WSL2
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- docker, python
- Domaine
- ai, documentation, infrastructure
Piste de recherche
Commencez par les commandes signalées docker model install-runner --backend vllm --gpu cuda et docker model run, en comparant vLLM avec le chemin fonctionnel de llama.cpp et l’image runner latest-vllm-cuda. Vérifiez l’échec du démarrage de vLLM et la page de documentation de inference-engines ; le travail est considéré comme terminé lorsque les modèles vLLM s’exécutent sous Windows avec WSL2 et que la commande documentée ne préconise plus l’indicateur non valide --backend.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hi,
I tried to follow the tutorial from https://www.docker.com/blog/docker-model-runner-vllm-windows/ for vLLM. Unfortunately it did not work, even after trying different models etc. It seems like vLLM support is completely broken on Windows, while models with the llama.cpp backend work fine.
Every vLLM model fails with this error:
ImportError: libtorch_cuda.so: cannot open shared object file: No such file or directory
Below are more verbose logs from two different models I tried. Since it's exactly the same error and it's occuring before the model loads, I assume it's a docker model runner-runtime issue.
gemma3-vllm
>docker model run ai/gemma3-vllm "Say hello in one short sentence."
Unable to find model 'ai/gemma3-vllm' locally. Pulling from the server.
~snip~
Model pulled successfully
Failed to generate a response: error response: status=500 body=unable to load runner: error waiting for runner to be ready: vLLM terminated unexpectedly: vLLM failed: module = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/vllm-env/lib/python3.12/site-packages/vllm/platforms/cuda.py", line 22, in <module>
import vllm._C_stable_libtorch # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: libtorch_cuda.so: cannot open shared object file: No such file or directory
y", line 44, in is_pin_memory_available
from vllm.platforms import current_platform
File "/opt/vllm-env/lib/python3.12/site-packages/vllm/platforms/__init__.py", line 277, in __getattr__
_current_platform = resolve_obj_by_qualname(platform_cls_qualname)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/vllm-env/lib/python3.12/site-packages/vllm/utils/import_utils.py", line 109, in resolve_obj_by_qualname
smollm2-vllm
> docker model run ai/smollm2-vllm "Tell me about Docker."
Failed to generate a response: error response: status=500 body=unable to load runner: error waiting for runner to be ready: vLLM terminated unexpectedly: vLLM failed: module = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/vllm-env/lib/python3.12/site-packages/vllm/platforms/cuda.py", line 22, in <module>
import vllm._C_stable_libtorch # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: libtorch_cuda.so: cannot open shared object file: No such file or directory
y", line 44, in is_pin_memory_available
from vllm.platforms import current_platform
File "/opt/vllm-env/lib/python3.12/site-packages/vllm/platforms/__init__.py", line 277, in __getattr__
_current_platform = resolve_obj_by_qualname(platform_cls_qualname)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/vllm-env/lib/python3.12/site-packages/vllm/utils/import_utils.py", line 109, in resolve_obj_by_qualname
Meanwhile, models with llama work fine:
>docker model run ai/smollm2 "whatsupp?"
Hi, I'm here to help with your programming tasks, such as debugging, troubleshooting, and providing guidance on various programming languages and concepts. What's your question or issue?
Environment
- Host OS: Windows 10 Pro, build
19045.7417 - Docker context:
desktop-linux - Docker Desktop:
4.82.0 (233772) - Docker Engine:
29.6.1, Linuxamd64 - Docker Model Runner client:
v1.2.5 - Docker Model Runner server:
v1.2.6 - Docker Desktop CLI plugin:
v0.4.1 - WSL:
2.7.10.0 - WSL kernel:
6.18.33.2-2 - Default WSL distribution: Ubuntu, version 2
- GPU: NVIDIA GeForce RTX 4070 series, 12 GB VRAM
- NVIDIA driver:
610.47 - CUDA UMD version:
13.3 - Model Runner vLLM version:
0.24.0 - Runner image:
docker/model-runner:latest-vllm-cuda - Runner image digest:
sha256:105c9bc23f9546de54bb898298bce94aeb75b4ee9e558212ae6260de03c8957b
docker model status
> docker model status
Docker Model Runner is running
BACKEND STATUS DETAILS
llama.cpp Running llama.cpp 72874f559
vllm Running vllm 0.24.0
diffusers Not Installed
mlx Not Installed only supported on Apple Silicon
sglang Not Installed package not installed
PS C:\Users\w>
GPU access works from Docker/WSL2:
docker run --rm --gpus all nvidia/cuda:12.0.0-base-ubuntu22.04 nvidia-smi
This successfully reports the RTX 4070 GPU inside the Linux container.
Reproduction
docker model install-runner --backend vllm --gpu cuda
docker model status
docker model run ai/smollm2-vllm "Say hello in one short sentence."
Also reproduced with:
docker model run ai/gemma3-vllm "Say hello in one short sentence."
Btw, the documentation on this page has a hallucinated/invalid parameter: https://docs.docker.com/ai/model-runner/inference-engines/#running-models-with-vllm
--backend does not exist on docker model run.
> docker model run ai/gemma3-vllm --backend vllm
unknown flag: --backend
Usage: docker model run MODEL [PROMPT]
Run 'docker model run --help' for more information
Output of help command does not list --backend either. I think it only exists for installing the runner backend, but not for explicitly choosing the backend when running a model.
> docker model run --help
Usage: docker model run MODEL [PROMPT]
Run a model and interact with it using a submitted prompt or chat mode
Options:
--color string Use colored output (auto|yes|no) (default "no")
--debug Enable debug logging
-d, --detach Load the model in the background without
interaction
--openaiurl string OpenAI-compatible API endpoint URL to chat with
--websearch Enable web search tool during chat
- Langage dominant
- Go
- Étoiles
- 665
- Forks
- 161
- Merge moyen
- 4 h 25 min
- PR mergées (30 j)
- 18
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de docker/model-runner
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
docker/model-runner#1118 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 20/100
docker/model-runner#1107 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
NixOS package manager supportOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 43/100
docker/model-runner#1103 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 Une demi-journée Accessibilité débutants 45/100
docker/model-runner#1100 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
docker/model-runner#1077 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de docker/model-runner
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
limitlessprojects/Go-Hybrid#4764 ·
Les mainteneurs répondent en général sous 1 jour
-
[bug]: lint fails on main, generated CLI docs out of datePeut-être pris @bupd l’a pris aujourd’hui. Ouvertebug documentation
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
goharbor/harbor-cli#1180 ·
Les mainteneurs répondent en général sous 1 jour
-
crane: mutate --env adds duplicate PATH on Windows images when key case differsPeut-être pris @aad1tyaaaaa l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
google/go-containerregistry#2523 ·
Les mainteneurs répondent en général sous 4 jours
-
bosh_io_stemcell_type: regular does not work for noble and resolute as it adds -go_agent as suffixOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
cloudfoundry/bosh-deployment-resource#138 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100