-
Notifications
You must be signed in to change notification settings - Fork 40
added docker for blackwell arch support #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rowellz
wants to merge
1
commit into
daswer123:main
Choose a base branch
from
rowellz:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| FROM python:3.10-slim | ||
|
|
||
| RUN apt-get update -y && \ | ||
| apt-get install -y default-libmysqlclient-dev pkg-config gcc g++ libgl1 libglib2.0-0 | ||
|
|
||
| COPY . /code | ||
|
|
||
| WORKDIR /code | ||
|
|
||
| RUN pip install -r requirements.txt | ||
|
|
||
| RUN pip install --pre torch torchaudio --index-url https://download.pytorch.org/whl/nightly/cu126 | ||
|
|
||
| ENV TORCH_CUDA_ARCH_LIST="5.0;6.0;7.0;7.5;8.0;8.6;9.0;12.0" | ||
|
|
||
| ENV PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| services: | ||
| rvc: | ||
| restart: always | ||
| build: | ||
| context: . | ||
| dockerfile: Dockerfile | ||
| volumes: | ||
| - ./:/code | ||
| - ./models/:/models/ | ||
| extra_hosts: | ||
| - "host.docker.internal:host-gateway" | ||
| stdin_open: true | ||
| tty: true | ||
| ports: | ||
| - 5050:5050 | ||
| environment: | ||
| - PYTHONUNBUFFERED=1 | ||
| - TORCH_CUDA_ARCH_LIST="5.0;6.0;7.0;7.5;8.0;8.6;9.0;12.0" | ||
| - PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | ||
| deploy: | ||
| resources: | ||
| reservations: | ||
| devices: | ||
| - driver: 'nvidia' | ||
| count: all | ||
| capabilities: [gpu] | ||
|
|
||
| # python -m rvc_python cli -i input.wav -o output.wav -mp path/to/model.pth -de cuda:0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify if PyTorch nightly is required for Blackwell support.
Using
--preto install nightly PyTorch builds introduces stability risks, as nightly versions can contain bugs and breaking changes.Please verify whether CUDA 12.6 and Blackwell (compute capability 12.0) support is available in stable PyTorch releases. If stable releases now support Blackwell, consider using a pinned stable version instead.
If nightly is truly required, consider:
torch==2.6.0.dev20251022+cu126🏁 Script executed:
Length of output: 57
Blackwell support requires CUDA 12.8, not 12.6—update the Dockerfile.
PyTorch 2.7 introduces support for NVIDIA's new Blackwell GPU architecture and ships pre-built wheels for CUDA 12.8. Blackwell GPUs require 12.7 or newer, specifically 12.8 since that is the current version.
Using
--pre torch torchaudio --index-url https://download.pytorch.org/whl/nightly/cu126will not provide proper Blackwell support. CUDA 12.x-compiled binaries will only run on the new GPU if they were compiled with explicit support for this new architecture, and the PyTorch binaries that are publicly available might not have this support yet—including cu126 wheels.Since PyTorch 2.7 has been released complete with support for the NVIDIA Blackwell GPU architecture and pre-built wheels for CUDA 12.8, update the Dockerfile to use
cu128:Alternatively, if stable releases are acceptable, use the official stable wheels without
--pre.🤖 Prompt for AI Agents