Skip to content

fix(deps): raise transformers floor to >=4.51.0 - #2295

Open
Solaris-star wants to merge 1 commit into
binary-husky:masterfrom
Solaris-star:master
Open

fix(deps): raise transformers floor to >=4.51.0#2295
Solaris-star wants to merge 1 commit into
binary-husky:masterfrom
Solaris-star:master

Conversation

@Solaris-star

Copy link
Copy Markdown

Summary

requirements.txt pinned transformers>=4.27.1,<4.42, which:

  • resolves to unpatched 4.41.x for known Transformers advisories
  • blocks installing patched releases (≥4.48 / ≥4.51)

Local model bridges also use trust_remote_code=True, so staying on that range is unsafe.

Raise the floor to transformers>=4.51.0 and drop the upper cap.

Testing

  • Dependency pin only; please smoke-test local ChatGLM/DeepSeek bridges if you rely on them

Fixes #2289
Fixes #2290

The previous pin transformers>=4.27.1,<4.42 resolved to 4.41.x and
blocked patched releases needed for public Transformers advisories
(e.g. GHSA-hxxf-235m-72v3 / GHSA-jjph-296x-mrcr). Local model bridges
also load with trust_remote_code=True, so staying on unpatched ranges
is unsafe.

Fixes binary-husky#2289
Fixes binary-husky#2290

Signed-off-by: Solaris-star <820622658@qq.com>
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.

Dependency hardening: pin minimum safe dependency versions Security: transformers cap leaves affected versions reachable in local model bridges

1 participant