Skip to content

Update sentence-transformers requirement from <6.0,>=2.2 to >=2.2,<7.0 in /python - #8

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/python/sentence-transformers-gte-2.2-and-lt-7.0
Open

Update sentence-transformers requirement from <6.0,>=2.2 to >=2.2,<7.0 in /python#8
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/python/sentence-transformers-gte-2.2-and-lt-7.0

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubSep 3, 2026

Copy link
Copy Markdown

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

Release notes

Sourced from sentence-transformers's releases.

v6.0.1 - Restore the PyLate prefix on prompted checkpoints, 80 documented multi-vector models

This patch release fixes a multi-vector loading bug: PyLate checkpoints that carry both a [Q]/[D] prefix and a text prompt lost the prefix, so they were encoded without a marker they were trained with. It also grows the documented multi-vector model tables from 51 checkpoints to 80.

Install this version with

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

Compose the PyLate prefix with the saved prompt (#3968)

PyLate supports a prefix as well as prompt text, and Sentence Transformers assumed that these were mutually exclusive. However, the following three checkpoints carry both a prefix and a prompt, and were trained with the prefix prepended to the prompt text:

PyLate trained these checkpoints on [CLS] [Q] search_query: ... and [CLS] [D] search_document: ..., but Sentence Transformers dropped the prefix and encoded them as [CLS] search_query: ... and [CLS] search_document: .... After the fix, the performance of the ColBERT-Zero model improved from 0.6569 NDCG@10 to 0.6824 on the NanoBEIR benchmark. To my knowledge, only these 3 checkpoints used both a prefix and a prompt, so this is the only case where the bug would have affected you.

Forward task to routed modules in Router.preprocess (#3967)

Router.forward has always passed task down to the routed module, but Router.preprocess did not, so anything a module does with the task at preprocessing time did nothing behind a Router: query_length and document_length caps, query_expansion, and the chat-template task keyword. No released checkpoint combines a Router with those settings, so this is a latent bug rather than one you are likely to have hit. It would have affected anyone building such a model themselves, with no error to indicate it.

Documentation

  • The multi-vector pretrained models tables grew from 29 text and 22 visual document retrieval checkpoints to 38 and 42 (#3963, #3969), with revision and trust_remote_code notes refreshed as upstream pull requests merged (#3972).
  • Documented which Hub tag to filter on for each model type (#3964), and linked the Multi-Vector Encoder blogposts from the docs (#3966).
  • Added MultiVectorEncoder to the Agent Skill README and refreshed the SauerkrautLM scores (#3955).
  • Corrected the minimum versions in the README (#3952). It still recommended PyTorch 1.11.0+ and transformers v4.41.0+, where v6.0 requires PyTorch 2.2+ and transformers v5.0+. This is the text rendered as the PyPI project description.

All Changes

... (truncated)

Commits
  • b0acd1a Update README installation versions
  • 9b415ac Release v6.0.1
  • cc0669c Add/update revisions for pretrained MVE models (#3972)
  • f8390f4 [docs] Refresh the MultiVectorEncoder pretrained models tables (#3969)
  • 4b51722 [fix] Compose the PyLate prefix with the saved prompt (#3968)
  • e99c4a9 [fix] Forward task to routed modules in Router.preprocess (#3967)
  • 5d2ec93 [docs] Link the Multi-Vector Encoder blogposts (#3966)
  • 9c5de2a [docs] Clarify which Hub tags to filter on for each model type (#3964)
  • 83680bd [docs] Add more MultiVectorEncoder models to the pretrained models tables (#3...
  • 1a43278 docs: Add MultiVectorEncoder to the skills README, refresh the SauerkrautLM s...
  • 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@v2.2.0...v6.0.1)
---
updated-dependencies:
- dependency-name: sentence-transformers
dependency-version: 6.0.1
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
@dependabot@github

dependabotBot commented on behalf of githubSep 3, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: python. Please create it before Dependabot can add it to a pull request.

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

@dependabotdependabotBot added the dependencies Pull requests that update a dependency file label Sep 3, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependenciesPull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants