# Transformers.js 4.1.0 - Product: Transformers.js (https://whatsnew.fyi/product/transformers-js) - Vendor: Hugging Face - Date: 2026-04-23 - Version: 4.1.0 - Original notes: https://github.com/huggingface/transformers.js/releases/tag/4.1.0 - Permalink: https://whatsnew.fyi/product/transformers-js/releases/4.1.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Add support for Gemma 4 - **added** — Add support for q1, q1f16, q2, and q2f16 data types - **changed** — Improve cached generation with past_key_values via pipeline function - **changed** — Improve tokenizer types based on input function parameters - **changed** — Update default generation parameters - **fixed** — Re-enable SmolVLM #### 🚀 Transformers.js v4.1 — Gemma 4, KV cache improvements, and new quantization dtypes - Add support for Gemma 4 in [#1627](https://github.com/huggingface/transformers.js/pull/1627) - Cached generation improvements (+ `past_key_values` via pipeline function) in [#1638](https://github.com/huggingface/transformers.js/pull/1638) - Improve tokenizer types based on input function parameters in [#1641](https://github.com/huggingface/transformers.js/pull/1641) - Add support for `q1`, `q1f16`, `q2`, and `q2f16` data types in [#1647](https://github.com/huggingface/transformers.js/pull/1647) - Re-enable SmolVLM in [#1648](https://github.com/huggingface/transformers.js/pull/1648) - Update default generation parameters in [#1649](https://github.com/huggingface/transformers.js/pull/1649) - Pin GitHub Actions to commit SHAs in [#1626](https://github.com/huggingface/transformers.js/pull/1626) **Full Changelog**: [4.0.0...4.1.0](https://github.com/huggingface/transformers.js/compare/4.0.0...4.1.0)