Skip to content

chore: Update torch to 2.11#206

Merged
chichun-charlie-liu merged 2 commits into
foundation-model-stack:mainfrom
gkumbhat:update_torch_2_11
May 27, 2026
Merged

chore: Update torch to 2.11#206
chichun-charlie-liu merged 2 commits into
foundation-model-stack:mainfrom
gkumbhat:update_torch_2_11

Conversation

@gkumbhat
Copy link
Copy Markdown
Contributor

Description of the change

Update upper limit of torch to 2.11

Related issues or PRs

N/A

How to verify the PR

Was the PR tested

  • I have added >=1 unit test(s) for every new method I have added (if that coverage is difficult, please briefly explain the reason)
  • I have ensured all unit tests pass

Checklist for passing CI/CD:

  • All commits are signed showing "Signed-off-by: Name <email@domain.com>" with git commit -signoff or equivalent
  • PR title and commit messages adhere to Conventional Commits
  • Contribution is formatted with tox -e fix
  • Contribution passes linting with tox -e lint
  • Contribution passes spellcheck with tox -e spellcheck
  • Contribution passes all unit tests with tox -e unit

Note: CI/CD performs unit tests on multiple versions of Python from a fresh install. There may be differences with your local environment and the test environment.

Signed-off-by: Gaurav-Kumbhat <Gaurav.Kumbhat@ibm.com>
@gkumbhat gkumbhat changed the title 📦 Update torch to 2.11 chore: Update torch to 2.11 May 26, 2026
@github-actions github-actions Bot added the chore label May 26, 2026
@andrea-fasoli
Copy link
Copy Markdown
Collaborator

@gkumbhat we encounter similar problems with llmcompressor as in the case of transformers 5.x upgrade.
The current release of llmcompressor == 0.10.0.2 on pypi does not support pytorch 2.11. This support is available in llmcompressor main branch, which however does not support yet transformers 5.x.

We should be able to advance to pt2.11 as long as we leave llmcompressor optional and only install the fp8-infer dependency group as before.

I will double check that tests are passing with pt2.11.

@andrea-fasoli
Copy link
Copy Markdown
Collaborator

@chichun-charlie-liu I confirmed the unit tests pass. With the pt2.11 update tried here, there are some pylint errors triggered by BertConfig, LlamaConfig, and GraniteConfig. I will check what has changed.

Disable E1123 from conftest.py for BertConfig, LlamaConfig, and GraniteConfig.  

Signed-off-by: andrea-fasoli <110120121+andrea-fasoli@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@chichun-charlie-liu chichun-charlie-liu left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@chichun-charlie-liu chichun-charlie-liu merged commit d27d4d9 into foundation-model-stack:main May 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants