Update transformers dependency to exact version 4.55.2 in pyproject.t…#1471
Merged
Update transformers dependency to exact version 4.55.2 in pyproject.t…#1471
Conversation
…oml and uv.lock to prevent import failures in Cosmos Embed. Downgrade tokenizers version to 0.21.4 for compatibility. Signed-off-by: Abhinav Garg <abhinavg@stanford.edu>
| "protobuf>=5.29.5", # Override nemo-toolkits constraint of ~=5.29.5 | ||
| "setuptools>=80.10.1", # Override setuptools range in other dependencies to address CVE GHSA-58pv-8j8x-9vj2 | ||
| "transformers>=4.55.2", | ||
| "transformers<=4.55.2", # Else Cosmos Embed imports fail |
Contributor
There was a problem hiding this comment.
Missing lower bound
tool.uv.override-dependencies currently sets transformers<=4.55.2, but project.dependencies still lists plain transformers (no minimum). A fresh resolve can therefore pick older transformers versions (anything <= 4.55.2), which conflicts with the PR’s goal of pinning/downgrading to 4.55.2 for Cosmos Embed compatibility and can break at runtime if Cosmos expects 4.55.x APIs. Fix by making the override an exact pin (==4.55.2) or adding the lower bound (e.g. >=4.55.2,<=4.55.2).
ayushdg
approved these changes
Feb 11, 2026
thomasdhc
pushed a commit
that referenced
this pull request
Feb 11, 2026
#1471) * Update transformers dependency to exact version 4.55.2 in pyproject.toml and uv.lock to prevent import failures in Cosmos Embed. Downgrade tokenizers version to 0.21.4 for compatibility. Signed-off-by: Abhinav Garg <abhinavg@stanford.edu> * Update transformers dependency in pyproject.toml and uv.lock to allow versions up to 4.55.2, ensuring compatibility with Cosmos Embed imports. Signed-off-by: Abhinav Garg <abhinavg@stanford.edu> --------- Signed-off-by: Abhinav Garg <abhinavg@stanford.edu> Co-authored-by: Ayush Dattagupta <ayushdg95@gmail.com> Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
3 tasks
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.
Downgrading transformers and tokenizer version for cosmos Embed version
Description
Usage
# Add snippet demonstrating usageChecklist