Skip to content

chore(deps): update sentence-transformers requirement from <6.0.0,>=5.4.1 to >=5.5.1,<6.0.0 in /ai-service#182

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/pip/ai-service/dev/sentence-transformers-gte-5.5.0-and-lt-6.0.0
Open

chore(deps): update sentence-transformers requirement from <6.0.0,>=5.4.1 to >=5.5.1,<6.0.0 in /ai-service#182
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/pip/ai-service/dev/sentence-transformers-gte-5.5.0-and-lt-6.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 18, 2026

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

Release notes

Sourced from sentence-transformers's releases.

v5.5.1 - Small Multimodal patch

This patch release fixes a small quirk with multimodal inference when using single-key multimodal inputs like model.encode({"image": ...}).

Install this version with

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

Bug fixed

Previously, inference like model.encode({"image": ...}) or model.encode([{"image": ...}, ...]) would be inferred as the ("image",) modality, which differed from the inferred modality of "image" for just model.encode(my_image) or model.encode([my_image, my_image_2, ...]).

This results in confusing errors if the model doesn't have a modality_config mapping for ("image",) in addition to "image", so now a single-key multimodal dict is collapsed to the bare modality (just "image" in this example).

This affected this code:

from sentence_transformers import SentenceTransformer
model = SentenceTransformer('BAAI/BGE-VL-base', trust_remote_code=True)
embedding = model.encode({"image": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/ettin-reranker/mteb_ndcg10_all-MiniLM-L6-v2.png&quot;})
print(embedding.shape)

Which previously failed as the model only implements a path for "text", "image", and ("image", "text").

All Changes

Full Changelog: huggingface/sentence-transformers@v5.5.0...v5.5.1

Commits
  • ce3ec6d Release v5.5.1
  • 610a7c5 [fix] Collapse single-key multimodal dicts to bare modality (#3779)
  • f9f3269 Merge branch 'main' into v5.5-release
  • 02dc21d Update index tip for v5.5.0 (#3774)
  • 833828b Release v5.5.0
  • 98ac358 [docs] Load models in float32 in the training examples & docs (#3773)
  • d8ee041 [docs] Use modality-neutral terms (input, document) in loss docs & docstrin...
  • 4c6850e [examples] Avoid LoggingHandler, silence httpx in examples (#3771)
  • 1418823 docs: fix grammar in parallel-sentence-mining README (#3769)
  • 22a383d [docs] Use direct class imports in examples & docs (drop `losses.MSELoss(.....
  • Additional commits viewable in compare view

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 18, 2026

Labels

The following labels could not be found: ai-service, dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
lexilingo-admin Ignored Ignored May 25, 2026 3:42am
lexilingo-app Ignored Ignored May 25, 2026 3:42am

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 25, 2026

A newer version of sentence-transformers exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

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.4.1...v5.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): update sentence-transformers requirement from <6.0.0,>=5.4.1 to >=5.5.0,<6.0.0 in /ai-service chore(deps): update sentence-transformers requirement from <6.0.0,>=5.4.1 to >=5.5.1,<6.0.0 in /ai-service May 25, 2026
@dependabot dependabot Bot force-pushed the dependabot/pip/ai-service/dev/sentence-transformers-gte-5.5.0-and-lt-6.0.0 branch from a030c23 to e242888 Compare May 25, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants