Skip to content

Update sentence-transformers requirement from ~=5.3.0 to ~=5.4.0#299

Merged
DefinetlyNotAI merged 1 commit intomainfrom
dependabot/pip/sentence-transformers-approx-eq-5.4.0
Apr 10, 2026
Merged

Update sentence-transformers requirement from ~=5.3.0 to ~=5.4.0#299
DefinetlyNotAI merged 1 commit intomainfrom
dependabot/pip/sentence-transformers-approx-eq-5.4.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 10, 2026

Updates the requirements on sentence-transformers to permit the latest version.

Release notes

Sourced from sentence-transformers's releases.

v5.4.0 - Multimodal Embeddings and Reranking, Modular CrossEncoder, Flash Attention Input Flattening

This large release introduces first-class multimodal support for both SentenceTransformer and CrossEncoder, making it easy to compute embeddings and rerank across text, images, audio, and video. The CrossEncoder class has been fully modularized, allowing for generative rerankers (CausalLM-based models) via a new LogitScore module. Flash Attention 2 now automatically skips padding for text-only inputs, providing significant speedups & memory reductions, especially when input lengths vary.

Blog post: Multimodal Embedding & Reranker Models with Sentence Transformers: a walkthrough of the new multimodal capabilities with some practical examples.

Migration guide: Migrating from v5.x to v5.4+: covers updated import paths, renamed parameters, and other softly breaking changes with deprecation warnings. Note that there are no hard deprecations, all existing code should continue to work with warnings at worst.

Install this version with

# Training + Inference
pip install sentence-transformers[train]==5.4.0
Inference only, use one of:
pip install sentence-transformers==5.4.0
pip install sentence-transformers[onnx-gpu]==5.4.0
pip install sentence-transformers[onnx]==5.4.0
pip install sentence-transformers[openvino]==5.4.0
Multimodal dependencies (optional):
pip install sentence-transformers[image]==5.4.0
pip install sentence-transformers[audio]==5.4.0
pip install sentence-transformers[video]==5.4.0
Or combine as needed:
pip install sentence-transformers[train,onnx,image]==5.4.0

Multimodal Embeddings with SentenceTransformer (#3554)

SentenceTransformer now natively supports vision-language models (VLMs) and other multimodal architectures. You can encode and compare across text, images, audio, videos, or combinations of these, with automatic modality detection and preprocessing. Models advertise which modalities they support via the new model.modalities property and model.supports() method.

Using a pretrained multimodal embedding model

from PIL import Image
from sentence_transformers import SentenceTransformer
model = SentenceTransformer(
"Qwen/Qwen3-VL-Embedding-2B",
model_kwargs={"attn_implementation": "flash_attention_2", "torch_dtype": "bfloat16"},
processor_kwargs={"min_pixels": 28 * 28, "max_pixels": 600 * 600},
revision="refs/pr/23",
)
Check supported modalities
print(model.modalities)
['text', 'image', 'video', 'message']
print(model.supports("image"))
True
</tr></table>

... (truncated)

Commits
  • fe93612 Merge branch 'main' into v5.4-release
  • 29408d5 Add model_card_templates to MANIFEST.in to package them nicely (#3709)
  • cec69df Release v5.4.0
  • 95cd011 Update index.rst tip/note about last release (#3708)
  • afebd45 Extend the migration guide for completeness (#3707)
  • 7910e90 Add Flash Attention 2 input flattening benchmark to efficiency docs (#3706)
  • 802317b fix: Separate tokenize and forward kwargs in SparseEncoder.encode to prevent ...
  • 2ebf4f6 Jina-reranker-m0 doesn't require a revision anymore (#3705)
  • 0e0da53 Merge pull request #3704 from tomaarsen/fix/triplet_distance
  • 2b232af [v5.4] Introduce cross-modality and multi-modality support; modularize Cros...
  • Additional commits viewable in compare view

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 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)

Updates the requirements on [sentence-transformers](https://github.com/huggingface/sentence-transformers) to permit the latest version.
- [Release notes](https://github.com/huggingface/sentence-transformers/releases)
- [Commits](huggingface/sentence-transformers@v5.3.0...v5.4.0)

---
updated-dependencies:
- dependency-name: sentence-transformers
  dependency-version: 5.4.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the type/Dependencies Pull requests that update a dependency file label Apr 10, 2026
@dependabot dependabot bot requested a review from DefinetlyNotAI as a code owner April 10, 2026 05:18
@pull-request-size pull-request-size bot added the size/XS Extra Small size pr label Apr 10, 2026
@github-actions
Copy link
Copy Markdown

Hi! Thanks for contributing for the first time to Logicytics 🤗 We hope it goes as smoothly as possible and appreciate your valuable contribution.

@DefinetlyNotAI DefinetlyNotAI self-assigned this Apr 10, 2026
@github-project-automation github-project-automation bot moved this from Todo to Waiting on Review in Issue Board Apr 10, 2026
@DefinetlyNotAI DefinetlyNotAI merged commit 5bd270c into main Apr 10, 2026
9 checks passed
@DefinetlyNotAI DefinetlyNotAI deleted the dependabot/pip/sentence-transformers-approx-eq-5.4.0 branch April 10, 2026 10:15
@github-project-automation github-project-automation bot moved this from Waiting on Review to Done in Issue Board Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra Small size pr type/Dependencies Pull requests that update a dependency file

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant