Skip to content

fix: upgrade transformers runtime - #30

Merged
yltw27 merged 1 commit into
mainfrom
fix/transformers-major-security-upgrade
Jul 28, 2026
Merged

fix: upgrade transformers runtime#30
yltw27 merged 1 commit into
mainfrom
fix/transformers-major-security-upgrade

Conversation

@yltw27

@yltw27 yltw27 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Migrates eval-kit from the deprecated @xenova/transformers runtime to the maintained @huggingface/transformers v4 package. This removes the critical protobufjs dependency chain.

Changes

  • Replaces @xenova/transformers with @huggingface/transformers v4.
  • Updates BERT score and perplexity for the v4 dtype and tokenizer options.
  • Updates transformer telemetry mocks and adds a patch changeset.

Remaining security follow-up

The new upstream runtime still resolves high-severity advisories through sharp and onnxruntime-node > adm-zip. These require upstream-compatible releases; no incompatible overrides are included here.

Override cleanup follow-up

Several existing pnpm overrides may now be removable or replaceable with compatible parent-package upgrades. Validate each separately by removing it, regenerating the lockfile, and checking the resulting dependency tree; retain only narrowly scoped, same-major patches where no compatible parent release exists.

Validation

  • pnpm changeset status
  • pnpm test
  • pnpm typecheck
  • pnpm lint
  • pnpm build
  • cs delta origin/main

Migrate to the maintained Transformers.js v4 package to remove the protobufjs dependency chain.\n\nCo-Authored-By: Codex (GPT-5) <noreply@openai.com>
@yltw27
yltw27 marked this pull request as ready for review July 28, 2026 09:47
@yltw27
yltw27 requested a review from a team as a code owner July 28, 2026 09:47
@yltw27
yltw27 requested review from djslimbo, horlaarsco and matt-koevort and removed request for a team July 28, 2026 09:47
@yltw27
yltw27 merged commit db513fa into main Jul 28, 2026
2 checks passed
@yltw27
yltw27 deleted the fix/transformers-major-security-upgrade branch July 28, 2026 10:12
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.

2 participants