[PR #25696] chore(deps): bump transformers from 4.53.3 to 4.56.1 in /api #31170

Closed
opened 2026-02-21 20:48:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25696

State: closed
Merged: Yes


Bumps transformers from 4.53.3 to 4.56.1.

Release notes

Sourced from transformers's releases.

Patch release v4.56.1

This patch most notably fixes an issue with the new dtype argument (replacing torch_dtype) in pipelines!

Bug Fixes & Improvements

  • Fix broken Llama4 accuracy in MoE part (#40609)
  • fix pipeline dtype (#40638)
  • Fix self.dropout_p is not defined for SamAttention/Sam2Attention (#40667)
  • Fix backward compatibility with accelerate in Trainer (#40668)
  • fix broken offline mode when loading tokenizer from hub (#40669)
  • [Glm4.5V] fix vLLM support (#40696)

Patch v4.55.4

There was a mick mack on our side when cherry-picking the commit #40197 which led to a wrong commit in the patch! Sorry everyone 😭

This patch is just the official fix for #40197!

Patch release v4.55.3

Patch release 4.55.3

Focused on stabilizing FlashAttention-2 on Ascend NPU, improving FSDP behavior for generic-task models, fixing MXFP4 integration for GPT-OSS

Bug Fixes & Improvements

Patch release 4.55.2: for FA2 users!

Patch release 4.55.2!

only affects FA2 generations!

😢 Well sorry everyone, sometimes shit can happen... 4.55.1 was broken because of 🥁 git merge conflict. I cherry-picked huggingface/transformers#40002 without having huggingface/transformers#40029 , thus from ..modeling_flash_attention_utils import prepare_fa_kwargs_from_position_ids is missing, and since this is a slow test, nothing caught it.

Will work to remediate and write the post-mortem when yanking the release.

Patch release 4.55.1:

Mostly focused around stabalizing the Mxfp4 for GPTOSS model!

Bug Fixes & Improvements

  • Idefics2, Idefics3, SmolVLM – Fix tensor device issue (#39975) by @​qgallouedec
  • Merge conflicts – Fix merge conflicts from previous changes by @​vasqu
  • MXFP4 / CPU device_map – Default to dequantize when CPU is in device_map (#39993) by @​MekkCyber

... (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)
**Original Pull Request:** https://github.com/langgenius/dify/pull/25696 **State:** closed **Merged:** Yes --- Bumps [transformers](https://github.com/huggingface/transformers) from 4.53.3 to 4.56.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/huggingface/transformers/releases">transformers's releases</a>.</em></p> <blockquote> <h1>Patch release v4.56.1</h1> <p>This patch most notably fixes an issue with the new <code>dtype</code> argument (replacing <code>torch_dtype</code>) in pipelines!</p> <h2>Bug Fixes &amp; Improvements</h2> <ul> <li>Fix broken Llama4 accuracy in MoE part (<a href="https://redirect.github.com/huggingface/transformers/issues/40609">#40609</a>)</li> <li>fix pipeline dtype (<a href="https://redirect.github.com/huggingface/transformers/issues/40638">#40638</a>)</li> <li>Fix self.dropout_p is not defined for SamAttention/Sam2Attention (<a href="https://redirect.github.com/huggingface/transformers/issues/40667">#40667</a>)</li> <li>Fix backward compatibility with accelerate in Trainer (<a href="https://redirect.github.com/huggingface/transformers/issues/40668">#40668</a>)</li> <li>fix broken offline mode when loading tokenizer from hub (<a href="https://redirect.github.com/huggingface/transformers/issues/40669">#40669</a>)</li> <li>[Glm4.5V] fix vLLM support (<a href="https://redirect.github.com/huggingface/transformers/issues/40696">#40696</a>)</li> </ul> <h1>Patch v4.55.4</h1> <p>There was a mick mack on our side when cherry-picking the commit <a href="https://redirect.github.com/huggingface/transformers/issues/40197">#40197</a> which led to a wrong commit in the patch! Sorry everyone 😭</p> <p>This patch is just the official fix for <a href="https://redirect.github.com/huggingface/transformers/issues/40197">#40197</a>!</p> <h2>Patch release v4.55.3</h2> <h1>Patch release 4.55.3</h1> <p>Focused on stabilizing FlashAttention-2 on Ascend NPU, improving FSDP behavior for generic-task models, fixing MXFP4 integration for GPT-OSS</p> <h2>Bug Fixes &amp; Improvements</h2> <ul> <li>FlashAttention-2 / Ascend NPU – Fix “unavailable” runtime error (<a href="https://redirect.github.com/huggingface/transformers/issues/40151">#40151</a>) by <a href="https://github.com/FightingZhen"><code>@​FightingZhen</code></a></li> <li>FlashAttention kwargs – Revert FA kwargs preparation to resolve regression (<a href="https://redirect.github.com/huggingface/transformers/issues/40161">#40161</a>) by <a href="https://github.com/Cyrilvallez"><code>@​Cyrilvallez</code></a></li> <li>FSDP (generic-task models) – Fix sharding/runtime issues (<a href="https://redirect.github.com/huggingface/transformers/issues/40191">#40191</a>) by <a href="https://github.com/Cyrilvallez"><code>@​Cyrilvallez</code></a></li> <li>GPT-OSS / MXFP4 – Ensure swiglu_limit is correctly passed through (<a href="https://redirect.github.com/huggingface/transformers/issues/40197">#40197</a>) by <a href="https://github.com/danielhanchen"><code>@​danielhanchen</code></a></li> <li>Mamba – Fix cache handling to prevent stale/incorrect state (<a href="https://redirect.github.com/huggingface/transformers/issues/40203">#40203</a>) by <a href="https://github.com/manueldeprada"><code>@​manueldeprada</code></a></li> <li>Misc – Minor follow-up fix addressing <a href="https://redirect.github.com/huggingface/transformers/issues/40262">#40262</a> by <a href="https://github.com/ArthurZucker"><code>@​ArthurZucker</code></a></li> </ul> <h2>Patch release 4.55.2: for FA2 users!</h2> <h1>Patch release 4.55.2!</h1> <h2>only affects <code>FA2</code> generations!</h2> <p>😢 Well sorry everyone, sometimes shit can happen... 4.55.1 was broken because of 🥁 git merge conflict. I cherry-picked <a href="https://redirect.github.com/huggingface/transformers/pull/40002">huggingface/transformers#40002</a> without having <a href="https://redirect.github.com/huggingface/transformers/pull/40029">huggingface/transformers#40029</a> , thus <code>from ..modeling_flash_attention_utils import prepare_fa_kwargs_from_position_ids</code> is missing, and since this is a slow test, nothing caught it.</p> <p>Will work to remediate and write the post-mortem when yanking the release.</p> <h1>Patch release 4.55.1:</h1> <p>Mostly focused around stabalizing the Mxfp4 for GPTOSS model!</p> <h2>Bug Fixes &amp; Improvements</h2> <ul> <li>Idefics2, Idefics3, SmolVLM – Fix tensor device issue (<a href="https://redirect.github.com/huggingface/transformers/issues/39975">#39975</a>) by <a href="https://github.com/qgallouedec"><code>@​qgallouedec</code></a></li> <li>Merge conflicts – Fix merge conflicts from previous changes by <a href="https://github.com/vasqu"><code>@​vasqu</code></a></li> <li>MXFP4 / CPU device_map – Default to dequantize when CPU is in device_map (<a href="https://redirect.github.com/huggingface/transformers/issues/39993">#39993</a>) by <a href="https://github.com/MekkCyber"><code>@​MekkCyber</code></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/huggingface/transformers/commit/91393fe4cc3266a05bc0d129e34ff5f761bb46e2"><code>91393fe</code></a> Release: v4.56.1</li> <li><a href="https://github.com/huggingface/transformers/commit/3ce5629f1c12ef151dd70ab2044dc494c05525cc"><code>3ce5629</code></a> [Glm4.5V] fix vLLM support (<a href="https://redirect.github.com/huggingface/transformers/issues/40696">#40696</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/26a7e6d76ee5c3a5cdaec2ac801c99e06e065529"><code>26a7e6d</code></a> fix broken offline mode when loading tokenizer from hub (<a href="https://redirect.github.com/huggingface/transformers/issues/40669">#40669</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/d56f9162e7159ecdfb35168bb886df1b125dcfa4"><code>d56f916</code></a> Fix backward compatibility with accelerate in Trainer (<a href="https://redirect.github.com/huggingface/transformers/issues/40668">#40668</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/e62b9aae85ce02261114cb0bc027e86b76ae91a0"><code>e62b9aa</code></a> Fix self.dropout_p is not defined for SamAttention/Sam2Attention (<a href="https://redirect.github.com/huggingface/transformers/issues/40667">#40667</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/c58d7d7a52d7962f834bd1cf2e2603713bae7d51"><code>c58d7d7</code></a> fix pipeline dtype (<a href="https://redirect.github.com/huggingface/transformers/issues/40638">#40638</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/ad6b8982a4d500e41eca882ac30f362b8905b8d9"><code>ad6b898</code></a> Fix broken Llama4 accuracy in MoE part (<a href="https://redirect.github.com/huggingface/transformers/issues/40609">#40609</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/e7d351cebad5f6dcdd169b0c034fdee0a000e6a9"><code>e7d351c</code></a> Release: v4.56.0</li> <li><a href="https://github.com/huggingface/transformers/commit/1067577ad204e649514ff3a5d3af0f7d52a63f14"><code>1067577</code></a> fix gpt-oss out shape (<a href="https://redirect.github.com/huggingface/transformers/issues/40535">#40535</a>)</li> <li><a href="https://github.com/huggingface/transformers/commit/7efb4c87ca3ed1a8d8c96f3f158f27f693f78b38"><code>7efb4c8</code></a> Flaky CI is annoying (<a href="https://redirect.github.com/huggingface/transformers/issues/40543">#40543</a>)</li> <li>Additional commits viewable in <a href="https://github.com/huggingface/transformers/compare/v4.53.3...v4.56.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=transformers&package-manager=uv&previous-version=4.53.3&new-version=4.56.1)](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 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) </details>
yindo added the pull-request label 2026-02-21 20:48:57 -05:00
yindo closed this issue 2026-02-21 20:48:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31170