Skip to content

Update transformers dependency to exact version 4.55.2 in pyproject.t…#1471

Merged
ayushdg merged 4 commits intomainfrom
video_transformers_version
Feb 11, 2026
Merged

Update transformers dependency to exact version 4.55.2 in pyproject.t…#1471
ayushdg merged 4 commits intomainfrom
video_transformers_version

Conversation

@abhinavg4
Copy link
Copy Markdown
Contributor

Downgrading transformers and tokenizer version for cosmos Embed version

Description

Usage

# Add snippet demonstrating usage

Checklist

  • I am familiar with the Contributing Guide.
  • New or Existing tests cover these changes.
  • The documentation is up to date with these changes.

…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>
@abhinavg4 abhinavg4 added the r1.1.0 Pick this label for auto cherry-picking into r1.1.0 label Feb 8, 2026
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread pyproject.toml
"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
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.

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 ayushdg merged commit f1eccef into main Feb 11, 2026
51 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r1.1.0 Pick this label for auto cherry-picking into r1.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants