Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @huggingface/transformers from 3.3.3 to 3.4.0 #882

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 10, 2025

Bumps @huggingface/transformers from 3.3.3 to 3.4.0.

Release notes

Sourced from @​huggingface/transformers's releases.

3.4.0

🚀 Transformers.js v3.4 — Background Removal Pipeline, Ultravox DAC, Mimi, SmolVLM2, LiteWhisper.

Removing backgrounds from images is now as easy as:

import { pipeline } from "@huggingface/transformers";
const segmenter = await pipeline("background-removal", "onnx-community/BEN2-ONNX");
const output = await segmenter("input.png");
output[0].save("output.png"); // (Optional) Save the image

You can find the full list of compatible models here, which will continue to grow in future! 🔥 For more information, check out huggingface/transformers.js#1216.

  • Ultravox for audio-text-to-text generation (huggingface/transformers.js#1207). See here for the list of supported models.

    import { UltravoxProcessor, UltravoxModel, read_audio } from "@huggingface/transformers";
    const processor = await UltravoxProcessor.from_pretrained(
    "onnx-community/ultravox-v0_5-llama-3_2-1b-ONNX",
    );
    const model = await UltravoxModel.from_pretrained(
    "onnx-community/ultravox-v0_5-llama-3_2-1b-ONNX",
    {
    dtype: {
    embed_tokens: "q8", // "fp32", "fp16", "q8"
    audio_encoder: "q4", // "fp32", "fp16", "q8", "q4", "q4f16"
    decoder_model_merged: "q4", // "q8", "q4", "q4f16"
    },
    },
    );
    const audio = await read_audio("http://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/mlk.wav", 16000);
    const messages = [
    {

... (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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Bumps [@huggingface/transformers](https://github.com/huggingface/transformers.js) from 3.3.3 to 3.4.0.
- [Release notes](https://github.com/huggingface/transformers.js/releases)
- [Commits](huggingface/transformers.js@3.3.3...3.4.0)

---
updated-dependencies:
- dependency-name: "@huggingface/transformers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@swissspidy swissspidy enabled auto-merge (squash) March 10, 2025 17:07
Copy link

Size Change: +5.63 MB (+76.06%) 🆘

Total Size: 13 MB

Filename Size Change
build/ai.worker.js 210 kB +6.14 kB (+3.02%)
build/ort-wasm-simd-threaded.jsep.********.wasm 5.62 MB +5.62 MB (new file) 🆕
ℹ️ View Unchanged
Filename Size
build/100.js 96.2 kB
build/699.js 2.35 MB
build/blurhash.worker.js 3.23 kB
build/canvas.worker.js 2.79 kB
build/chunk-ffmpeg.js 5.91 kB
build/chunk-selfie-segmentation.js 16.3 kB
build/dominant-color.worker.js 4.45 kB
build/ffmpeg.js 1.1 kB
build/heif.worker.js 455 kB
build/media-experiments-blocks-rtl.css 318 B
build/media-experiments-blocks.css 318 B
build/media-experiments-rtl.css 1.03 kB
build/media-experiments.css 1.03 kB
build/media-experiments.js 81.7 kB
build/pdf.js 578 B
build/subtitles.js 850 B
build/view-upload-request-view-rtl.css 697 B
build/view-upload-request-view.css 699 B
build/view-upload-request.js 19.1 kB
build/vips-heif.********.wasm 1.27 MB
build/vips-jxl.********.wasm 818 kB
build/vips.********.wasm 2.03 MB
build/vips.worker.js 36.7 kB

compressed-size-action

@swissspidy swissspidy merged commit f6f820d into main Mar 10, 2025
24 of 25 checks passed
@swissspidy swissspidy deleted the dependabot/npm_and_yarn/huggingface/transformers-3.4.0 branch March 10, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant