Repository navigation
Require torch>=2.6 - #2171
Merged
Merged
Require torch>=2.6#2171
Conversation
Raise the minimum PyTorch version to 2.6, matching transformers, accelerate and trl. - Remove compatibility code for torch < 2.6: the torch.accelerator fallbacks, the torch >= 2.5 guard on the parametrization state dict hook, and the torch >= 2.6 check on the CPU int8 matmul. - Remove test skips and xfails that only applied to torch < 2.6. - Test with torch 2.6.0 in place of 2.4.1 (and 2.5.1 on aarch64) in the PR and nightly workflows. - Update the documented minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. Pages changed in this PR: |
torch 2.6 inductor compiles for 256-bit SVE on any SVE CPU, which gives wrong results on CPUs with 128-bit SVE such as the Neoverse-N2 CI runners. Fixed in torch 2.7. Replaces the narrower gradient-only check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Raises the minimum PyTorch version from 2.4 to 2.6, matching transformers, accelerate and trl. Also bumps the dev version to 0.51.0.dev0.
Library
backends/triton/ops.py: drop thehasattr(torch, "accelerator")fallback.nn/parametrize.py: always register the state dict post-hook. It was gated on torch >= 2.5.backends/cpu/ops.py: thetorch._int_mmpath is now gated only on AVX-512. The torch >= 2.6 overflow guard is no longer needed.On torch >= 2.6 every removed branch was already dead, so behavior is unchanged. In torch 2.6,
torch.acceleratordetects a registered privateuse1 backend first, then CUDA/MTIA/XPU/HIP/MPS/HPU.Tests
tests/helpers.pyandtests/fsdp_state_dict_save.pynow usetorch.acceleratordirectly.CI
Docs
🤖 Generated with Claude Code