Skip to content

Unpin transformers - #2622

Merged
shaahji merged 3 commits into
mainfrom
shaahji/unpin_transformers
Aug 13, 2026
Merged

shaahji merged 3 commits into
mainfrom
shaahji/unpin_transformers

Conversation

@shaahji

@shaahji shaahji commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Unpin transformers

Resolves security issue found in v5.3.0 (last version available before the pinned version).

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

@shaahji
shaahji requested review from Xiaoyu Z (xiaoyu-work) and a lite review from Copilot and removed request for Copilot August 12, 2026 21:12
@titaiwangms

Copy link
Copy Markdown
Contributor

This will also unblock MoE Quantization PRs - #2610

Resolves security issue found in v5.3.0 (last version available before
the pinned version).

Fixed tests that were failing because of the upgrade.
@shaahji
shaahji force-pushed the shaahji/unpin_transformers branch from db923e7 to f6cb981 Compare August 13, 2026 00:32
Copilot AI lite review requested due to automatic review settings August 13, 2026 00:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Olive’s test dependency management to stop pinning transformers and adjusts a couple of tests/helpers to be compatible with newer transformers behaviors.

Changes:

  • Remove the <5.4.0 upper bound on transformers in the test requirements.
  • Ensure locally-saved tiny Llama models include a trivial tokenizer to avoid hub/tokenizer assumptions during metadata serialization.
  • Relax/adjust assertions around AutoConfig module paths for Phi3 to match current transformers behavior (especially with trust_remote_code).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/requirements-test.txt Removes the transformers version pin in the test dependency set.
test/passes/pytorch/test_rtn.py Saves a trivial tokenizer alongside a locally-saved tiny Llama model used in RTN tests.
test/model/test_hf_model.py Updates Phi3 config module assertions to be compatible with current module loading behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/requirements-test.txt Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@shaahji
shaahji enabled auto-merge (squash) August 13, 2026 18:02
@shaahji
shaahji merged commit 185ac5d into main Aug 13, 2026
12 checks passed
@shaahji
shaahji deleted the shaahji/unpin_transformers branch August 13, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants