Skip to content

Update CI to test on torch 2.6, 2.7 and drop older version #2117

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 5 commits into from
Apr 24, 2025
Merged

Conversation

jainapurva
Copy link
Contributor

Update CI to support newer torch versions

Fixes: #2053

Copy link

pytorch-bot bot commented Apr 23, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2117

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit a2a3b18 with merge base 2fcab01 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 23, 2025
@jainapurva jainapurva added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Apr 23, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the CI workflow to support newer torch versions (2.5.1, 2.6.0, and 2.7.0) while dropping older ones, aligning test configuration with current library releases.

  • Updated CUDA and CPU jobs to use torch versions 2.5.1, 2.6.0, and 2.7.0
  • Adjusted GPU architecture version for CUDA jobs
  • Ensured CPU jobs continue to specify the necessary index URL for package retrieval
Comments suppressed due to low confidence (2)

.github/workflows/regression_test.yml:69

  • The torch-spec line for CUDA 2.6 omits the --index-url parameter while CUDA 2.5.1 includes it. Please verify if the omission is intentional; otherwise, add the required --index-url to ensure consistent package source resolution.
torch-spec: 'torch==2.6.0'

.github/workflows/regression_test.yml:74

  • The CUDA 2.7 torch-spec entry lacks the --index-url parameter unlike the CUDA 2.5.1 entry. Consider including the index URL if it is required for proper package resolution.
torch-spec: 'torch==2.7.0'

@@ -1474,6 +1474,7 @@ def test_fake_quantize_per_token_vs_convert(self, dtype: torch.dtype):
@unittest.skipIf(
not TORCH_VERSION_AT_LEAST_2_4, "skipping when torch version is 2.4 or lower"
)
@unittest.skip("Skipping until we fix the issue")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping it for now, as this is broken on CI

@jainapurva jainapurva marked this pull request as ready for review April 24, 2025 05:32
@jainapurva jainapurva merged commit 173d38f into main Apr 24, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing Use this tag if you don't want this PR to show up in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] After pytorch 2.7 release, Drop support for 2.3 and 2.4 and update support to 2.5.1, 2.6 and 2.7
4 participants