[PR #6592] [CLOSED] chore(deps): bump @huggingface/transformers from 3.8.1 to 4.3.0 #7242

Closed
opened 2026-10-23 04:17:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6592
Author: @dependabot[bot]
Created: 9/24/2026
Status: ❌ Closed

Base: staging ← Head: dependabot/npm_and_yarn/staging/huggingface/transformers-4.3.0


📝 Commits (1)

  • 49c489b chore(deps): bump @huggingface/transformers from 3.8.1 to 4.3.0

📊 Changes

2 files changed (+94 additions, -84 deletions)

View changed files

📝 packages/server/package.json (+1 -1)
📝 pnpm-lock.yaml (+93 -83)

📄 Description

Bumps @huggingface/transformers from 3.8.1 to 4.3.0.

Release notes

Sourced from @​huggingface/transformers's releases.

4.3.0

🚀 Transformers.js v4.3 — Structured Output, New Models, WebGPU upgrade, Documentation Overhaul

This release adds structured output, three new model architectures, WebGPU support for Safari 26+, and a documentation overhaul. We also upgraded ONNX Runtime to the latest version.

What's new?

Structured output

Constrain generation to a JSON schema, JSON object, or regular expression with the experimental, dependency-free @huggingface/transformers-structured-output package in huggingface/transformers.js#1758.

For example, classify customer feedback into a fixed set of sentiments and topics:

import { pipeline, TextStreamer } from "@huggingface/transformers";
import { StructuredOutputProcessor } from "@huggingface/transformers-structured-output";

// Create the pipeline first so its tokenizer is available. const generator = await pipeline( "text-generation", "onnx-community/LFM2.5-350M-ONNX", { dtype: "q4f16", device: "webgpu" }, );

const processor = new StructuredOutputProcessor(generator.tokenizer, { type: "json_schema", json_schema: { type: "object", properties: { sentiment: { enum: ["positive", "negative", "neutral"] }, topic: { enum: ["price", "quality", "delivery", "other"] }, }, required: ["sentiment", "topic"], additionalProperties: false, }, });

const messages = [ { role: "user", content: "Classify this feedback: The product is way too expensive.", }, ];

const output = await generator(messages, { max_new_tokens: 512, do_sample: false, streamer: new TextStreamer(generator.tokenizer, { skip_prompt: true, skip_special_tokens: true, </tr></table>

... (truncated)

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6592 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 9/24/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `dependabot/npm_and_yarn/staging/huggingface/transformers-4.3.0` --- ### 📝 Commits (1) - [`49c489b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/49c489b7f41aa9f2957c04595ca4ae417062af6d) chore(deps): bump @huggingface/transformers from 3.8.1 to 4.3.0 ### 📊 Changes **2 files changed** (+94 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+93 -83) </details> ### 📄 Description Bumps [@huggingface/transformers](https://github.com/huggingface/transformers.js) from 3.8.1 to 4.3.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/huggingface/transformers.js/releases">@​huggingface/transformers's releases</a>.</em></p> <blockquote> <h2>4.3.0</h2> <h1>🚀 Transformers.js v4.3 — Structured Output, New Models, WebGPU upgrade, Documentation Overhaul</h1> <p>This release adds structured output, three new model architectures, WebGPU support for Safari 26+, and a documentation overhaul. We also upgraded ONNX Runtime to the latest version.</p> <h2>What's new?</h2> <h3>Structured output</h3> <p>Constrain generation to a JSON schema, JSON object, or regular expression with the experimental, dependency-free <code>@huggingface/transformers-structured-output</code> package in <a href="https://redirect.github.com/huggingface/transformers.js/pull/1758">huggingface/transformers.js#1758</a>.</p> <p>For example, classify customer feedback into a fixed set of sentiments and topics:</p> <pre lang="js"><code>import { pipeline, TextStreamer } from &quot;@huggingface/transformers&quot;; import { StructuredOutputProcessor } from &quot;@huggingface/transformers-structured-output&quot;; <p>// Create the pipeline first so its tokenizer is available. const generator = await pipeline( &quot;text-generation&quot;, &quot;onnx-community/LFM2.5-350M-ONNX&quot;, { dtype: &quot;q4f16&quot;, device: &quot;webgpu&quot; }, );</p> <p>const processor = new StructuredOutputProcessor(generator.tokenizer, { type: &quot;json_schema&quot;, json_schema: { type: &quot;object&quot;, properties: { sentiment: { enum: [&quot;positive&quot;, &quot;negative&quot;, &quot;neutral&quot;] }, topic: { enum: [&quot;price&quot;, &quot;quality&quot;, &quot;delivery&quot;, &quot;other&quot;] }, }, required: [&quot;sentiment&quot;, &quot;topic&quot;], additionalProperties: false, }, });</p> <p>const messages = [ { role: &quot;user&quot;, content: &quot;Classify this feedback: The product is way too expensive.&quot;, }, ];</p> <p>const output = await generator(messages, { max_new_tokens: 512, do_sample: false, streamer: new TextStreamer(generator.tokenizer, { skip_prompt: true, skip_special_tokens: true, &lt;/tr&gt;&lt;/table&gt; </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/huggingface/transformers.js/commit/a1728dd363256efffb6e8678138cb6ad755d051d"><code>a1728dd</code></a> [version] Update to 4.3.0</li> <li><a href="https://github.com/huggingface/transformers.js/commit/f9dec42255b89dbb89852aad4f80e8d5045488f1"><code>f9dec42</code></a> Bump dependencies (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1766">#1766</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/dce094eebf1675281a6f15bf0bc52b0c4c5c6210"><code>dce094e</code></a> Massive documentation overhaul (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1665">#1665</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/37fddf99d54ea1651adf1ee15610cb843866b7c4"><code>37fddf9</code></a> Fix RawAudio.toBlob() ignoring TypedArray byteOffset/length (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1712">#1712</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/eb5d05e5d990474d420c3b5736523f6a74e6970d"><code>eb5d05e</code></a> Skip browser cache writes for non-http(s) resources (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1723">#1723</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/3991b6a2b3020aa7731d3a68dfb7b8eb11da3524"><code>3991b6a</code></a> Create <code>@huggingface/transformers-structured-output</code> package (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1758">#1758</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/6fe1ccc2432c4d975a62dc62d8e37cf54a396930"><code>6fe1ccc</code></a> Pin WebGPU KV cache for ImageAudioTextToText models (Gemma3n, Gemma4) (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1757">#1757</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/f09d0006a9789042cb4de2a684acbf631ab85fa5"><code>f09d000</code></a> Correctly dispose Chatterbox KV cache after generation (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1737">#1737</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/3152877b59913fe7005ab88baf8e9aa3f0ee7818"><code>3152877</code></a> Remove unused code and exports (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1763">#1763</a>)</li> <li><a href="https://github.com/huggingface/transformers.js/commit/274446ccd9ec8395cdb3c249eefbbad4bb506237"><code>274446c</code></a> Fix Moonshine ASR token decoding (<a href="https://redirect.github.com/huggingface/transformers.js/issues/1738">#1738</a>)</li> <li>Additional commits viewable in <a href="https://github.com/huggingface/transformers.js/compare/3.8.1...4.3.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@huggingface/transformers&package-manager=npm_and_yarn&previous-version=3.8.1&new-version=4.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:52 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7242
No description provided.