chore(deps-dev): bump @huggingface/transformers from 3.8.1 to 4.0.1#831
Conversation
Bumps [@huggingface/transformers](https://github.com/huggingface/transformers.js) from 3.8.1 to 4.0.1. - [Release notes](https://github.com/huggingface/transformers.js/releases) - [Commits](https://github.com/huggingface/transformers.js/commits) --- updated-dependencies: - dependency-name: "@huggingface/transformers" dependency-version: 4.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Greptile SummaryThis PR bumps Confidence Score: 5/5Safe to merge — the key v4 breaking change (quantized → dtype) is correctly handled, and all remaining feedback is stylistic. All findings are P2 style suggestions. The only API breaking change in the v3→v4 upgrade that touches this codebase ( No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[loadModel called] --> B{extractor cached\nfor same model?}
B -- yes --> C[return cached extractor]
B -- no --> D[disposeModel]
D --> E[loadTransformers]
E --> F{config.quantized?}
F -- true --> G["pipelineOpts = { dtype: 'q8' }"]
F -- false --> H["pipelineOpts = {}"]
G --> I["pipeline('feature-extraction', name, opts)"]
H --> I
I --> J[activeModel = config.name]
J --> C
Reviews (2): Last reviewed commit: "fix: replace deprecated quantized option..." | Re-trigger Greptile |
The quantized pipeline option was removed in @huggingface/transformers v4. Without this fix, the minilm model loads in fp32 precision (~92MB) instead of q8 (~23MB), quadrupling memory usage.
|
Addressed the P1 finding — replaced |
Bumps @huggingface/transformers from 3.8.1 to 4.0.1.
Release notes
Sourced from
@huggingface/transformers's releases.... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)