Transformers.js
🚀 Transformers.js v4.2 — Tool calling, simpler internals, and privacy filtering
- Added
toolstoTextGenerationPipelinein #1655 - Use
inputMetadataAPI for simplified internals in…
🚀 Transformers.js v4.1 — Gemma 4, KV cache improvements, and new quantization dtypes
- Add support for Gemma 4 in #1627
- Cached generation improvements (+
past_key_valuesvia pipeline function) in…
🚀 Transformers.js v4
We're excited to announce that Transformers.js v4 is now available on NPM! After a year of development (we started in March 2025 🤯), we're finally ready for you to use it.
npm i @huggingface/transformers
Links: [YouTube…
What's new?
- Add support for Ministral 3 in https://github.com/huggingface/transformers.js/pull/1474
- Fix Ernie 4.5 naming in https://github.com/huggingface/transformers.js/pull/1473
- Update Supertonic TTS paper + authors in…
🚀 Transformers.js v3.8 — SAM2, SAM3, EdgeTAM, Supertonic TTS
-
Add support for EdgeTAM in https://github.com/huggingface/transformers.js/pull/1454
-
Add support for Supertonic TTS in https://github.com/huggingface/transformers.js/pull/1459
Example:…
What's new?
- Fix issue when
temperature=0anddo_sample=trueby @nico-martin in https://github.com/huggingface/transformers.js/pull/1431 - Fix type errors by @nico-martin in https://github.com/huggingface/transformers.js/pull/1436
- Add support for NanoChat in…
What's new?
- Add support for GraniteMoeHybrid in https://github.com/huggingface/transformers.js/pull/1426
Full Changelog: https://github.com/huggingface/transformers.js/compare/3.7.4...3.7.5
What's new?
- Correctly assign logits warpers in
_get_logits_processorin https://github.com/huggingface/transformers.js/pull/1422
Full Changelog: https://github.com/huggingface/transformers.js/compare/3.7.3...3.7.4
What's new?
- Unify inference chains in https://github.com/huggingface/transformers.js/pull/1399
- Fix progress tracking bug by @kukudixiaoming in https://github.com/huggingface/transformers.js/pull/1405
- Add support for MobileLLM-R1 (llama4_text) in…
What's new?
-
Add support for DINOv3 in https://github.com/huggingface/transformers.js/pull/1390
See here for the full list of supported models.
Example: Compute image…
What's new?
- Add support for Arcee in https://github.com/huggingface/transformers.js/pull/1377
- Optimize tensor.slice() by @Honry in https://github.com/huggingface/transformers.js/pull/1381
New Contributors
- @Honry made their first contribution in…
🚀 Transformers.js v3.7 — Voxtral, LFM2, ModernBERT Decoder
🤖 New models
This update adds support for 3 new architectures:
<h3…
What's new?
- Bump
@huggingface/jinjato version 0.5.1 for new chat template functionality in https://github.com/huggingface/transformers.js/pull/1364
Full Changelog: https://github.com/huggingface/transformers.js/compare/3.6.2...3.6.3
What's new?
-
Add support for SmolLM3 in https://github.com/huggingface/transformers.js/pull/1359
SmolLM3 is a 3B parameter language model designed to push the boundaries of small models. It supports 6 languages, advanced reasoning and long context. SmolLM3 is a fully…
What's new?
-
Add support for NeoBERT in https://github.com/huggingface/transformers.js/pull/1350
import { pipeline } from "@huggingface/transformers"; // Create feature extraction pipeline const extractor = await…
🚀 Transformers.js v3.6 — Gemma 3n, Qwen3-Embedding, Llava-Qwen2
-
[🛠️ Other…
What's new?
- Update paper links to HF papers by @qgallouedec in https://github.com/huggingface/transformers.js/pull/1318
- Allow older (legacy) BPE models to be detected even when the type is not specified in https://github.com/huggingface/transformers.js/pull/1314
- Fix…
What's new?
-
Add support for Qwen3 in https://github.com/huggingface/transformers.js/pull/1300.
Example usage:
import { pipeline, TextStreamer } from "@huggingface/transformers"; // Create a text generation pipeline const generator =…
🔥 Transformers.js v3.5
- Fix error when dtype in config is unset by @hans00 in https://github.com/huggingface/transformers.js/pull/1271
- [audio utils] fix fft_bin_width computation in…



