Fix: Add Windows (AMD64) GPU support for PyTorch installation#1305
Open
andi1479 wants to merge 1 commit intom-bain:mainfrom
Open
Fix: Add Windows (AMD64) GPU support for PyTorch installation#1305andi1479 wants to merge 1 commit intom-bain:mainfrom
andi1479 wants to merge 1 commit intom-bain:mainfrom
Conversation
- Updated platform markers to recognize Windows AMD64 architecture - Windows x64 systems now correctly install CUDA-enabled PyTorch - Fixes issue where Windows defaulted to CPU-only PyTorch Resolves installation issues on Windows with NVIDIA GPUs where platform_machine returns 'AMD64' .
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem:
Windows systems with NVIDIA GPUs are currently installing CPU-only PyTorch instead of CUDA-enabled PyTorch, making GPU acceleration unavailable on Windows.
Root cause: Windows reports platform_machine == 'AMD64' instead of 'x86_64', causing the existing marker conditions to fail.
Changes:
More explicit Linux condition: platform_machine == 'x86_64' and sys_platform == 'linux' (instead of sys_platform != 'darwin')
New Windows condition: platform_machine == 'AMD64' and sys_platform == 'win32' → routes Windows to CUDA
Fixed fallback condition: platform_machine != 'x86_64' and platform_machine != 'AMD64' → excludes both x86_64 variants
Key improvements:
The same changes apply to torchaudio sources.
Testing:
Tested on Windows 11
uv run python -c "import sys, platform; print(f'Platform: {sys.platform}'); print(f'Machine: {platform.machine()}')"Platform: win32
Machine: AMD64
Before:
uv run python -c "import torch; print(f'Torch version: {torch.__version__}'); print(f'CUDA available: {torch.cuda.is_available()}')"Torch version: 2.8.0+cpu
CUDA available: False
After:
uv run python -c "import torch; print(f'Torch version: {torch.__version__}'); print(f'CUDA available: {torch.cuda.is_available()}')"Torch version: 2.8.0+cu128
CUDA available: True
Validation: Successfully transcribed a 40-minute demo video using GPU acceleration.
Info: I didn't know if you want me to update the uv.lock file as well or just recompile it urself I can do that any time!
Thank you very much for your great work!