Skip to content

fix(deps): update transformers and adapt HF ONNX export - #176

Merged
jiangxt2 merged 4 commits into
masterfrom
dependabot/uv/transformers-5.10.1
Nov 16, 2026
Merged

jiangxt2 merged 4 commits into
masterfrom
dependabot/uv/transformers-5.10.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update Transformers from 4.57.6 to 5.19.0 in the SDK and Linux arm64 CPU lockfiles, and synchronize the CPU configuration and fingerprints.

Adapt Hugging Face ONNX export:

  • Retain the Transformers 4.x export path and add support for the native 5.x exporter.
  • Change the default ONNX opset from 14 to 18 and verify the artifact’s actual opset.
  • Provide representative inputs for 5.x export and include ONNX external weights in the artifact.
  • Require onnxscript>=0.7.1 in model-export-hf and align its Transformers version constraint with the exporter APIs.

Compatibility and security boundaries

  • model-export-hf permits Transformers 4.40+ within 4.x and 5.19–5.22. Version 5.19.0 is the real-model-tested 5.x baseline; the 5.20–5.22 upstream APIs were inspected but not exercised in real-model tests.
  • Transformers 5.x ONNX export requires PyTorch ≥2.11. The shared PyTorch extra retains its ≥2.5 minimum for 4.x compatibility, so installation does not enforce this combination; older Torch versions may fail during import or export.
  • The general hf extra and independent installations still permit older Transformers versions. This PR does not automatically address dependency risks in existing 4.x installations.
  • The lockfile update is expected to address the corresponding existing alerts; their status should be checked after merge. It does not establish that all Transformers security issues are resolved. The GitHub advisory for CVE-2026-75104 does not identify an affected package version; a similar local shard-path construction exists in 5.19.0 and has not been tested for exploitability in Tributo.
  • When a text sample cannot be safely inferred, the 5.x exporter requires representative inputs through ExportSource.sample_inputs. Singleton sample dimensions may become fixed axes, and task labels are not fully validated against model output semantics.
  • An HF ONNX artifact quantized to INT8 may retain the original FP32 external weights; this is not addressed here.

Validation

  • Python 3.12: tiny BERT classification and question-answering exports and numerical checks passed with Transformers 4.57.6 and 5.19.0.
  • Python 3.13: tiny BERT question-answering export and numerical check passed with Transformers 5.19.0. These real-model checks were run locally; they are not part of this PR’s CI execution.
  • Previously, 29 targeted unit and configuration checks passed. The real-model test was subsequently moved into an existing suite without changing the test function, and its results were reused.
  • After the dependency constraint update, five targeted contract tests, SDK and CPU lock checks, CPU profile fingerprint verification, the test policy audit, and Ruff passed.
  • For the latest commit 5c0c72e, PR Test Suite and Database Filter Pushdown passed.

The full local precheck was not run, and the CPU image was not built or validated. Existing images are not updated automatically.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 14, 2026
@dependabot
dependabot Bot force-pushed the dependabot/uv/transformers-5.10.1 branch from 9c4ecfa to 2fb2879 Compare November 14, 2026 14:51
Bumps [transformers](https://github.com/huggingface/transformers) from 4.57.6 to 5.10.1.
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](huggingface/transformers@v4.57.6...v5.10.1)

---
updated-dependencies:
- dependency-name: transformers
  dependency-version: 5.10.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/transformers-5.10.1 branch from 2fb2879 to e2df3d8 Compare November 15, 2026 04:17
@jiangxt2 jiangxt2 self-assigned this Nov 15, 2026
Signed-off-by: jiangxt2 <jiangxt2@vip.qq.com>
Signed-off-by: jiangxt2 <jiangxt2@vip.qq.com>
@jiangxt2 jiangxt2 changed the title fix(deps): bump transformers from 4.57.6 to 5.10.1 fix(deps): update transformers and adapt HF ONNX export Nov 16, 2026
Signed-off-by: jiangxt2 <jiangxt2@vip.qq.com>
@jiangxt2
jiangxt2 merged commit 381f7ed into master Nov 16, 2026
18 checks passed
@jiangxt2
jiangxt2 deleted the dependabot/uv/transformers-5.10.1 branch November 16, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant