Repository navigation
Require PyTorch and TorchAudio >= 2.6 - #1504
Merged
bruAristimunha merged 1 commit intoOct 31, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1504 +/- ##
=======================================
Coverage 91.20% 91.20%
=======================================
Files 169 169
Lines 21916 21916
=======================================
Hits 19989 19989
Misses 1927 1927 🚀 New features to boost your workflow:
|
2.6 is the PyTorch of the Intel Gaudi 1.21 software stack. On torch 2.6 CPU the suite needed only test-side version guards for failures that predate this series (weight_norm meta backward and LUNA export before 2.10, TFMTokenizer/BrainTokenizer export before 2.9). Part of braindecode#1489.
bruAristimunha
force-pushed
the
pr/1489-2-torch-floor
branch
from
October 31, 2026 20:46
81270cf to
b1163e5
Compare
bruAristimunha
marked this pull request as ready for review
October 31, 2026 20:46
This was referenced Oct 31, 2026
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.
Summary
Part of #1489.
The declared floor goes from 2.4 to 2.6, which is the PyTorch of the Intel Gaudi 1.21 software stack. The later PRs of this series use APIs that are available from 2.6, with the behaviour the tests check:
torch.compiler.is_compiling;torch._dynamo.forbid_in_graph;torch.utils.checkpointwithuse_reentrant=False;nn.Module.compile.Changes
pyproject.toml:torch>=2.6andtorchaudio>=2.6.docs/install/install.rst: states the new minimum.masterwith older torch:test_model_exportedskips LUNA export below 2.10, and TFMTokenizer/BrainTokenizer export below 2.9;test_registered_model_complex_only_after_spectral_inputskips BDTCN, BENDR and TIDNet below 2.10, where there is no meta kernel for the weight_norm backward.whats_new: the existing, still unreleased Requirements entry "Require PyTorch and TorchAudio >= 2.4 …" (:gh:1174) now says >= 2.6 and links this PR, instead of a second floor entry in the same release.Defaults
Installing braindecode now needs torch >= 2.6. No library code changes.
Evidence
Tests
Branch tip
7f016138a404(tree0ffae6b7d927) on upstreammaster428ad88. Every check ran in one Voyager CPU Job,bdw2-pr-prep-verify-10:pytest test/ -n 8from the repository root at this tip: 5,989 passed, 375 skipped, 1 xfailed, 0 failed. Upstreammasterunder the same settings: 5,982 passed, 375 skipped, 1 xfailed.pre-commit run --files <files changed by this PR>, with the repository's pinned hooks (Ruff, mypy, docstrfmt, blacken-docs, codespell, sphinx-lint): passed.Notes for reviewers
torch==2.6.* torchaudio==2.6.*on the CPU index, default tier).torch.compileon CPU needs torch >= 2.7 for training with attention dropout. On torch 2.6 CPU, Inductor fails to compile it (BackendCompilerFailedin the dropout codegen). This already happens on upstreammaster. It works with dropout 0, in eval mode, withaot_eager, and on 2.7 and 2.14.1. No suite test hits it. It concerns only opt-in compilation.