Bumps [transformers](https://github.com/huggingface/transformers) from 5.3.0 to 5.5.0. <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>Release v5.5.0</h1> <!-- raw HTML omitted --> <h2>New Model additions</h2> <h3>Gemma4</h3> <p><a href="https://github.com/huggingface/transformers/blob/HEAD/INSET_PAPER_LINK">Gemma 4</a> is a multimodal model with pretrained and instruction-tuned variants, available in 1B, 13B, and 27B parameters. The architecture is mostly the same as the previous Gemma versions. The key differences are a vision processor that can output images of fixed token budget and a spatial 2D RoPE to encode vision-specific information across height and width axis.</p> <!-- raw HTML omitted --> <p>You can find all the original Gemma 4 checkpoints under the <a href="https://huggingface.co/collections/google/gemma-4-release-67c6c6f89c4f76621268bb6d">Gemma 4</a> release.</p> <p>The key difference from previous Gemma releases is the new design to process <strong>images of different sizes</strong> using a <strong>fixed-budget number of tokens</strong>. Unlike many models that squash every image into a fixed square (like 224×224), Gemma 4 keeps the image's natural aspect ratio while making it the right size. There a a couple constraints to follow:</p> <ul> <li>The total number of pixels must fit within a patch budget</li> <li>Both height and width must be divisible by <strong>48</strong> (= patch size 16 × pooling kernel 3)</li> </ul> <blockquote> <p>[!IMPORTANT] Gemma 4 does <strong>not</strong> apply the standard ImageNet mean/std normalization that many other vision models use. The model's own patch embedding layer handles the final scaling internally (shifting values to the [-1, 1] range).</p> </blockquote> <p>The number of "soft tokens" (aka vision tokens) an image processor can produce is configurable. The supported options are outlined below and the default is <strong>280 soft tokens</strong> per image.</p> <table> <thead> <tr> <th align="center">Soft Tokens</th> <th align="center">Patches (before pooling)</th> <th align="center">Approx. Image Area</th> </tr> </thead> <tbody> <tr> <td align="center">70</td> <td align="center">630</td> <td align="center">~161K pixels</td> </tr> <tr> <td align="center">140</td> <td align="center">1,260</td> <td align="center">~323K pixels</td> </tr> <tr> <td align="center"><strong>280</strong></td> <td align="center"><strong>2,520</strong></td> <td align="center"><strong>~645K pixels</strong></td> </tr> <tr> <td align="center">560</td> <td align="center">5,040</td> <td align="center">~1.3M pixels</td> </tr> <tr> <td align="center">1,120</td> <td align="center">10,080</td> <td align="center">~2.6M pixels</td> </tr> </tbody> </table> <p>To encode positional information for each patch in the image, Gemma 4 uses a learned 2D position embedding table. The position table stores up to 10,240 positions per axis, which allows the model to handle very large images. Each position is a learned vector of the same dimensions as the patch embedding. The 2D RoPE which Gemma 4 uses independently rotate half the attention head dimensions for the x-axis and the other half for the y-axis. This allows the model to understand spatial relationships like "above," "below," "left of," and "right of."</p> <h3>NomicBERT</h3> <p>NomicBERT is a BERT-inspired encoder model that applies Rotary Position Embeddings (RoPE) to create reproducible long context text embeddings. It is the first fully reproducible, open-source text embedding model with 8192 context length that outperforms both OpenAI Ada-002 and OpenAI text-embedding-3-small on short-context MTEB and long context LoCo benchmarks. The model generates dense vector embeddings for various tasks including search, clustering, and classification using specific instruction prefixes.</p> <p><strong>Links:</strong> <a href="https://huggingface.co/docs/transformers/main/en/model_doc/nomic_bert">Documentation</a> | <a href="https://arxiv.org/abs/2402.01613">Paper</a></p> <ul> <li>Internalise the NomicBERT model (<a href="https://redirect.github.com/huggingface/transformers/issues/43067">#43067</a>) by <a href="https://github.com/ed22699"><code>@ed22699</code></a> in <a href="https://redirect.github.com/huggingface/transformers/pull/43067">#43067</a></li> </ul> <h3>MusicFlamingo</h3> <p>Music Flamingo is a fully open large audio–language model designed for robust understanding and reasoning over music. It builds upon the Audio Flamingo 3 architecture by including Rotary Time Embeddings (RoTE), which injects temporal position information to enable the model to handle audio sequences up to 20 minutes. The model features a unified audio encoder across speech, sound, and music with special sound boundary tokens for improved audio sequence modeling.</p> <p><strong>Links:</strong> <a href="https://huggingface.co/docs/transformers/main/en/model_doc/musicflamingo">Documentation</a> | <a href="https://huggingface.co/papers/2511.10289">Paper</a></p> <ul> <li>Add Music Flamingo (<a href="https://redirect.github.com/huggingface/transformers/issues/43538">#43538</a>) by <a href="https://github.com/lashahub"><code>@lashahub</code></a> in <a href="https://redirect.github.com/huggingface/transformers/pull/43538">#43538</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="c1c34249fa"><code>c1c3424</code></a> update</li> <li><a href="20bff6865a"><code>20bff68</code></a> update release workflow</li> <li><a href="89564412a5"><code>8956441</code></a> v5.5.0</li> <li><a href="5135e5efa7"><code>5135e5e</code></a> casually dropping the most capable open weights on the planet (<a href="https://redirect.github.com/huggingface/transformers/issues/45192">#45192</a>)</li> <li><a href="a594e09e39"><code>a594e09</code></a> Internalise the NomicBERT model (<a href="https://redirect.github.com/huggingface/transformers/issues/43067">#43067</a>)</li> <li><a href="4932e9721e"><code>4932e97</code></a> Fix resized LM head weights being overwritten by post_init (<a href="https://redirect.github.com/huggingface/transformers/issues/45079">#45079</a>)</li> <li><a href="57e8413954"><code>57e8413</code></a> [Qwen3.5 MoE] Add _tp_plan to ForConditionalGeneration (<a href="https://redirect.github.com/huggingface/transformers/issues/45124">#45124</a>)</li> <li><a href="b10552e99d"><code>b10552e</code></a> Fix TypeError: 'NoneType' object is not iterable in GenerationMixin.generate ...</li> <li><a href="423f2a31d2"><code>423f2a3</code></a> fix(models): Fix dtype mismatch in SwitchTransformers and TimmWrapperModel (#...</li> <li><a href="ade7a05a42"><code>ade7a05</code></a> Generalize gemma vision mask to videos (<a href="https://redirect.github.com/huggingface/transformers/issues/45185">#45185</a>)</li> <li>Additional commits viewable in <a href="https://github.com/huggingface/transformers/compare/v5.3.0...v5.5.0">compare view</a></li> </ul> </details> <br /> [](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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/langchain-ai/langchain/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The agent engineering platform.
LangChain is a framework for building agents and LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development — all while future-proofing decisions as the underlying technology evolves.
Tip
Just getting started? Check out Deep Agents — a higher-level package built on LangChain for agents that have built-in capabilites for common usage patterns such as planning, subagents, file system usage, and more.
Quickstart
uv add langchain
from langchain.chat_models import init_chat_model
model = init_chat_model("openai:gpt-5.5")
result = model.invoke("Hello, world!")
If you're looking for more advanced customization or agent orchestration, check out LangGraph, our framework for building controllable agent workflows.
For an equivalent JS/TS library, check out LangChain.js.
Tip
For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.
LangChain ecosystem
While the LangChain framework can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools when building LLM applications.
- Deep Agents — Build agents that can plan, use subagents, and leverage file systems for complex tasks
- LangGraph — Build agents that can reliably handle complex tasks with our low-level agent orchestration framework
- Integrations — Chat & embedding models, tools & toolkits, and more
- LangSmith — Agent evals, observability, and debugging for LLM apps
- LangSmith Deployment — Deploy and scale agents with a purpose-built platform for long-running, stateful workflows
Why use LangChain?
LangChain helps developers build applications powered by LLMs through a standard interface for models, embeddings, vector stores, and more.
- Real-time data augmentation — Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain's vast library of integrations with model providers, tools, vector stores, retrievers, and more
- Model interoperability — Swap models in and out as your engineering team experiments to find the best choice for your application's needs. As the industry frontier evolves, adapt quickly — LangChain's abstractions keep you moving without losing momentum
- Rapid prototyping — Quickly build and iterate on LLM applications with LangChain's modular, component-based architecture. Test different approaches and workflows without rebuilding from scratch, accelerating your development cycle
- Production-ready features — Deploy reliable applications with built-in support for monitoring, evaluation, and debugging through integrations like LangSmith. Scale with confidence using battle-tested patterns and best practices
- Vibrant community and ecosystem — Leverage a rich ecosystem of integrations, templates, and community-contributed components. Benefit from continuous improvements and stay up-to-date with the latest AI developments through an active open-source community
- Flexible abstraction layers — Work at the level of abstraction that suits your needs — from high-level chains for quick starts to low-level components for fine-grained control. LangChain grows with your application's complexity
Resources
- Documentation — conceptual overviews and guides
- LangChain ecosystem overview — how LangChain, LangGraph, and Deep Agents fit together
- API reference — complete reference for all public classes, functions, and types
- Discussions — community forum for technical questions, ideas, and feedback
- LangChain Academy — comprehensive, free courses on LangChain libraries and products, made by the LangChain team
- Contributing Guide — how to contribute and find good first issues
- Code of Conduct — community guidelines and standards