Windows Docker GPU issue WLS2
Anyone got this to work with GPU support in windows docker?
I've been trying for 3 days and also tried my luck with AI support. Redid GPU drivers with clean install, new toolkit, new linux for WSL2.
tried different pytorch, cuda versions.
Once built it thenwill only use CPU, tried changing the docker-compose troubleshoot mentioned also.
Also check gpu pass through as well, tried other settings too but no luck.
Or if someone has a working docker file, maybe that would help ?
========== == CUDA ==
CUDA Version 12.8.1
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License. By pulling and using the container, you accept the terms and conditions of this license: https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
2025-06-06 15:54:49 [INFO] main: Starting TTS Server directly on http://0.0.0.0:8004 2025-06-06 15:54:49 [INFO] main: API documentation will be available at http://0.0.0.0:8004/docs 2025-06-06 15:54:49 [INFO] main: Web UI will be available at http://0.0.0.0:8004/ INFO: Started server process [1] INFO: Waiting for application startup. 2025-06-06 15:54:49 [INFO] server: TTS Server: Initializing application... 2025-06-06 15:54:49 [INFO] server: Configuration loaded. Log file at: /app/logs/tts_server.log 2025-06-06 15:54:49 [WARNING] engine: CUDA was requested in config but functionality test failed. PyTorch may not be compiled with CUDA support. Automatically falling back to CPU. 2025-06-06 15:54:49 [INFO] engine: Final device selection: cpu 2025-06-06 15:54:49 [INFO] engine: Attempting to load model directly using from_pretrained (expected from Hugging Face repository: ResembleAI/chatterbox or library default).
look at: https://github.com/devnen/Chatterbox-TTS-Server/pull/14/ i had the same problem but not in wsl but native ubuntu 24.04 the nvidia dependencies are not in the Dockerfile. if you make the adjustments from my PR and run docker-compose up -d --build it should work
Closing as the underlying Windows Docker GPU / WSL2 path (missing nvidia runtime config in the Dockerfile) has been addressed in main. Thank you @meganoob1337 for the PR pointer at the time. Please reopen if you still hit it on a clean build of current main.