Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 23, 2025

Updates the requirements on torch to permit the latest version.

Release notes

Sourced from torch's releases.

PyTorch 2.7.0 Release Notes

Highlights

... (truncated)

Changelog

Sourced from torch's changelog.

Releasing PyTorch

Release Compatibility Matrix

Following is the Release Compatibility Matrix for PyTorch releases:

... (truncated)

Commits
  • 1341794 Gracefully handle optree less than minimum version, part 2 (#151323)
  • 0739127 Gracefully handle optree less than minimum version (#150977)
  • 0c236f3 Update triton wheel build, setuptools pin (#150953)
  • c7ff78d Fix inplacing with multiple, fused uses (#150892)
  • 894909a Revert "[CUDA] Only use vec128 if CUDA version is newer than 12.8" (#150855)
  • ef2b139 [Manylinux 2.28] Correct Linux aarch64 cuda binaries wheel name (#150820)
  • 3f236f1 [CUDA] Only use vec128 if CUDA version is newer than 12.8 (#150818)
  • 35f1e76 Reland of "[ROCm] change preferred blas lib defaults (#150249)"" (#150707)
  • a6321d6 Revert "Dont exclude constant_pad_nd in prologue fusion" (#150699)
  • 1cc51c6 [CUDA][avgpool2d] Fix backward launch bounds again for sm100, sm120 (#150...
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Apr 23, 2025
Updates the requirements on [torch](https://github.com/pytorch/pytorch) to permit the latest version.
- [Release notes](https://github.com/pytorch/pytorch/releases)
- [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md)
- [Commits](pytorch/pytorch@v2.2.0...v2.7.0)

---
updated-dependencies:
- dependency-name: torch
  dependency-version: 2.7.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@chichun-charlie-liu
Copy link
Collaborator

@IqbalSaraf plz run unit tests with PyTorch 2.6 and 2.7 to verify this PR.

@iqbal-saraf
Copy link

iqbal-saraf commented May 14, 2025

For PyTorch=2.6. In file dq.py, need to update line 252 from "test_dataset = torch.load(pt_files[0])" to "test_dataset = torch.load(pt_files[0], weights_only=False)".

Additionally, I used transformers version 4.47.1.

Note: using latest version of transformers 4.51.3, model is returned as tuple not as dictionary. In order to use latest version of transformers, we may need to update our code.

@iqbal-saraf
Copy link

Additionally, In dq.py, need to wrap evaluator with "with patch_torch_bmm(qcfg): " at line 256 and 262 during evaluation so that evaluator uses the bmms.

@iqbal-saraf
Copy link

PyTorch2.7 verification of fms_mo is completed. The following functionalities (DQ, FP8, GPTQ, PTQ, AIU conversion) were verified with PyTorch2.7. The results (perplexity/ accuracy) matches as expected.

PTQ had an error which is unrelated to PyTorch version.

Pytorch_2.7.1_ fms_mo.pptx

@chichun-charlie-liu chichun-charlie-liu changed the title Update torch requirement from <2.6,>=2.2.0 to >=2.2.0,<2.8 chore: Update torch requirement from <2.6,>=2.2.0 to >=2.2.0,<2.8 Jul 15, 2025
@github-actions github-actions bot added chore and removed dependencies Pull requests that update a dependency file labels Jul 15, 2025
Copy link
Collaborator

@BrandonGroth BrandonGroth left a comment

Choose a reason for hiding this comment

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

Approved. Ignoring the github action pylint. No idea why that is being flagged... Charlie has done a local pylint and it isn't showing up, making me believe it's a false positive.

@chichun-charlie-liu chichun-charlie-liu merged commit 20f3d82 into main Jul 16, 2025
14 of 16 checks passed
@chichun-charlie-liu chichun-charlie-liu deleted the dependabot/pip/torch-gte-2.2.0-and-lt-2.8 branch July 16, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants