-
Notifications
You must be signed in to change notification settings - Fork 745
[NVIDIA] Fix build xformers >= cu129 (torch 2.9.0) #1344
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
Merged
Merged
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c0c3c34
BUILD CUDA 13
johnnynunez 3bd4670
Update action.yml
johnnynunez f0e2384
Update action.yml
johnnynunez 37eed3a
Update flash-attention hash
johnnynunez db622e4
fix error cccl
johnnynunez 920ade3
Update requirements.txt
johnnynunez 5beaf3f
Merge branch 'facebookresearch:main' into main
johnnynunez c2407a6
fix error pytorch 2.9.0 in CI
johnnynunez 3e2e11e
Update linters_reusable.yml
johnnynunez bfb2271
Update CUDA toolkit and Python versions in workflow
johnnynunez d434cb3
Update Python version from 3.9 to 3.10
johnnynunez ea44071
upstream
johnnynunez dbe25a2
lint
johnnynunez b819a23
Add use-github-cache option to CUDA setup action
johnnynunez a62a9a9
Update cuda-toolkit action to use N-Storm fork
johnnynunez f732af6
Fix CUDA architecture list format in setup.py
johnnynunez 40872c0
Update TORCH_CUDA_ARCH_LIST for toolkit versioning
johnnynunez 6be38b9
try fix windows
johnnynunez 6ba993e
Merge remote-tracking branch 'origin/main'
johnnynunez 6f6e99e
avoid compile fa3 windows with cu130
johnnynunez d5acb15
Update CUDA version from 13.0.1 to 13.0.2
johnnynunez 3b8fcb2
Modify CUDA version check for Windows platform
johnnynunez 7281508
Update CUDA version from 13.0.2 to 13.0.1
johnnynunez fc6b421
Update setup.py
johnnynunez 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 |
|---|---|---|
|
|
@@ -24,9 +24,10 @@ runs: | |
| print(sys.version) | ||
| cushort = "${{ inputs.toolkit_short_version }}" | ||
| # Version uploaded to pypi (rather than PyTorch s3) | ||
| TORCH_CUDA_DEFAULT = "128" # since pytorch 2.8.0 | ||
| TORCH_CUDA_DEFAULT = "130" # since pytorch 2.9.0 | ||
| # https://github.com/Jimver/cuda-toolkit/blob/master/src/links/linux-links.ts | ||
| full_version, install_script = { | ||
| "130": ("13.0.1", "https://developer.download.nvidia.com/compute/cuda/13.0.1/local_installers/cuda_13.0.1_580.82.07_linux.run"), | ||
| "129": ("12.9.0", "https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda_12.9.1_575.57.08_linux.run"), | ||
| "128": ("12.8.1", "https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda_12.8.1_570.124.06_linux.run"), | ||
| # (Build with nvcc 12.8 on linux even when building for 12.6 to avoid seg fault in Flash3 build) | ||
|
|
@@ -52,7 +53,8 @@ runs: | |
| - name: Install cuda | ||
| if: runner.os == 'Windows' && inputs.toolkit_type == 'cuda' | ||
| id: cuda-toolkit | ||
| uses: Jimver/[email protected] | ||
| # Using N-Storm fork until https://github.com/Jimver/cuda-toolkit/issues/395 is resolved | ||
| uses: N-Storm/[email protected] | ||
| with: | ||
| cuda: ${{ steps.cuda_info.outputs.CUDA_VERSION }} | ||
| method: network | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -7,4 +7,3 @@ on: | |
| jobs: | ||
| repo: | ||
| uses: ./.github/workflows/linters_reusable.yml | ||
|
|
||
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
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
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
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # Example requirement, can be anything that pip knows | ||
| # install with `pip install -r requirements.txt`, and make sure that CI does the same | ||
| torch >= 2.8 | ||
| torch >= 2.9 | ||
| numpy |
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
Submodule cutlass
updated
1271 files
Submodule flash-attention
updated
51 files
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.