Correct import for transformers internals#540
Merged
Conversation
Signed-off-by: Samuel Monson <smonson@redhat.com>
Signed-off-by: Samuel Monson <smonson@redhat.com>
## Summary Adds a library required to load Mistral models to the `openai` extras group. Also renames the group to `tokenizers` to be more generic. ## Related Issues <!-- Link any relevant issues that this PR addresses. --> - Resolves #539 --- - [x] "I certify that all code in this PR is my own, except as noted below." ## Use of AI - [ ] Includes AI-assisted code completion - [ ] Includes code generated by an AI application - [ ] Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes `## WRITTEN BY AI ##`)
Collaborator
Author
|
Sorry I accidentally merged #541 into this PR instead of main. |
jaredoconnell
approved these changes
Jan 22, 2026
Collaborator
jaredoconnell
left a comment
There was a problem hiding this comment.
Tested locally. I didn't notice any problems related to this PR, and I can confirm that it fixes the import problem.
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
Some imports from the transformers library use private/deprecated module names which cause import errors on the upcoming transformers
5.0.0.Test Plan
Install
transformers>=5.0.0rc1and attempt to run GuideLLM (any command that will trigger full package import).Related Issues
Use of AI
## WRITTEN BY AI ##)