[PR #3562] [MERGED] chore(deps): bump sentence-transformers from 2.7.0 to 3.0.1 in /backend #76156

Closed
opened 2026-05-13 09:18:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/3562
Author: @dependabot[bot]
Created: 7/1/2024
Status: Merged
Merged: 7/1/2024
Merged by: @tjbck

Base: devHead: dependabot/pip/backend/dev/sentence-transformers-3.0.1


📝 Commits (1)

  • 0ee984b chore(deps): bump sentence-transformers from 2.7.0 to 3.0.1 in /backend

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 backend/requirements.txt (+1 -1)

📄 Description

Bumps sentence-transformers from 2.7.0 to 3.0.1.

Release notes

Sourced from sentence-transformers's releases.

v3.0.1 - Patch introducing new Trainer features, model card improvements and evaluator fixes

This patch release introduces some improvements for the SentenceTransformerTrainer, as well as some updates for the automatic model card generation. It also patches some minor evaluator bugs and a bug with MatryoshkaLoss. Lastly, every single Sentence Transformer model can now be saved and loaded with the safer model.safetensors files.

Install this version with

# Full installation:
pip install sentence-transformers[train]==3.0.1

Inference only:

pip install sentence-transformers==3.0.1

SentenceTransformerTrainer improvements

  • Implement gradient checkpointing for lower memory usage during training (#2717)
  • Implement support for push_to_hub=True Training Argument, also implement trainer.push_to_hub(...) (#2718)

Model Cards

This patch release improves on the automatically generated model cards in several ways:

  • Your training datasets are now automatically linked if they're on Hugging Face (#2711)
  • A new generated_from_trainer tag is now also added (#2710)
  • The automatically included widget examples are now improved, especially for question-answering. Previously, the widget could give examples of comparing two questions with eachother (#2713)
  • If you save a model locally, then load it again and upload it, it would previously still show
...
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
...

This now gets replaced with your new model ID on Hugging Face (#2714)

  • The exact training dataset size is now included in the model metadata, rather than as a bucket of e.g. 1K<n<10K (#2728)

Evaluators fixes

  • The primary metric of evaluators in SequentialEvaluator would be ignored in the scores calculation (#2700)
  • Fix confusing print statement in TranslationEvaluator when using print_wrong_matches=True (#1894)
  • Fix bug that prevents you from customizing the primary_metric in InformationRetrievalEvaluator (#2701)
  • Allow passing a list of evaluators to the STTrainer rather than a SequentialEvaluator (#2717)

Losses fixes

  • Fix MatryoshkaLoss crash if the first dimension is not the biggest (#2719)

Security

  • Integrate safetensors with all modules, including Dense, LSTM, CNN, etc. to prevent needing pickled pytorch_model.bin anymore (#2722)

All changes

... (truncated)

Commits
  • 8a02e45 Merge branch 'master' into v3.0-release
  • f012ab3 typo: SentenceTransformersTrainingArguments -> SentenceTransformerTrainingArg...
  • d079878 Specify the exact dataset size as a tag, will be bucketized by HF eventually ...
  • 6ea9903 [feat] Integrate safetensors with Dense, etc. modules too. (#2722)
  • 8ded768 Merge pull request #2727 from tomaarsen/can_return_loss
  • d9c2b0c Merge pull request #2726 from tomaarsen/fix/no_evaluator
  • 08b340b Set can_return_loss=True globally, instead of via the data collator
  • 4d3e357 Fix edge case with evaluator being None
  • b5e98e1 Merge pull request #2724 from tomaarsen/improve_typing
  • 936f283 Add py.typed to satify mypy (etc.) requirements
  • Additional commits viewable in compare view

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/3562 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 7/1/2024 **Status:** ✅ Merged **Merged:** 7/1/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `dependabot/pip/backend/dev/sentence-transformers-3.0.1` --- ### 📝 Commits (1) - [`0ee984b`](https://github.com/open-webui/open-webui/commit/0ee984b44457721b0585381b0ac73cad5911df3a) chore(deps): bump sentence-transformers from 2.7.0 to 3.0.1 in /backend ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/requirements.txt` (+1 -1) </details> ### 📄 Description Bumps [sentence-transformers](https://github.com/UKPLab/sentence-transformers) from 2.7.0 to 3.0.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/UKPLab/sentence-transformers/releases">sentence-transformers's releases</a>.</em></p> <blockquote> <h2>v3.0.1 - Patch introducing new Trainer features, model card improvements and evaluator fixes</h2> <p>This patch release introduces some improvements for the SentenceTransformerTrainer, as well as some updates for the automatic model card generation. It also patches some minor evaluator bugs and a bug with <code>MatryoshkaLoss</code>. Lastly, every single Sentence Transformer model can now be saved and loaded with the safer <code>model.safetensors</code> files.</p> <p>Install this version with</p> <pre lang="bash"><code># Full installation: pip install sentence-transformers[train]==3.0.1 <h1>Inference only:</h1> <p>pip install sentence-transformers==3.0.1 </code></pre></p> <h2>SentenceTransformerTrainer improvements</h2> <ul> <li>Implement gradient checkpointing for lower memory usage during training (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2717">#2717</a>)</li> <li>Implement support for <code>push_to_hub=True</code> Training Argument, also implement <code>trainer.push_to_hub(...)</code> (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2718">#2718</a>)</li> </ul> <h2>Model Cards</h2> <p>This patch release improves on the automatically generated model cards in several ways:</p> <ul> <li>Your training datasets are now automatically linked if they're on Hugging Face (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2711">#2711</a>)</li> <li>A new <code>generated_from_trainer</code> tag is now also added (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2710">#2710</a>)</li> <li>The automatically included widget examples are now improved, especially for question-answering. Previously, the widget could give examples of comparing two questions with eachother (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2713">#2713</a>)</li> <li>If you save a model locally, then load it again and upload it, it would previously still show</li> </ul> <pre lang="python"><code>... # Download from the 🤗 Hub model = SentenceTransformer(&quot;sentence_transformers_model_id&quot;) ... </code></pre> <p>This now gets replaced with your new model ID on Hugging Face (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2714">#2714</a>)</p> <ul> <li>The exact training dataset size is now included in the model metadata, rather than as a bucket of e.g. 1K&lt;n&lt;10K (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2728">#2728</a>)</li> </ul> <h2>Evaluators fixes</h2> <ul> <li>The primary metric of evaluators in <code>SequentialEvaluator</code> would be ignored in the <code>scores</code> calculation (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2700">#2700</a>)</li> <li>Fix confusing print statement in TranslationEvaluator when using <code>print_wrong_matches=True</code> (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/1894">#1894</a>)</li> <li>Fix bug that prevents you from customizing the <code>primary_metric</code> in <code>InformationRetrievalEvaluator</code> (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2701">#2701</a>)</li> <li>Allow passing a list of evaluators to the STTrainer rather than a <code>SequentialEvaluator</code> (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2717">#2717</a>)</li> </ul> <h2>Losses fixes</h2> <ul> <li>Fix <code>MatryoshkaLoss</code> crash if the first dimension is not the biggest (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2719">#2719</a>)</li> </ul> <h2>Security</h2> <ul> <li>Integrate safetensors with all modules, including Dense, LSTM, CNN, etc. to prevent needing pickled <code>pytorch_model.bin</code> anymore (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2722">#2722</a>)</li> </ul> <h2>All changes</h2> <ul> <li>updating to evaluation_strategy by <a href="https://github.com/higorsilvaa"><code>@​higorsilvaa</code></a> in <a href="https://redirect.github.com/UKPLab/sentence-transformers/pull/2686">UKPLab/sentence-transformers#2686</a></li> <li>fix loss link by <a href="https://github.com/Samoed"><code>@​Samoed</code></a> in <a href="https://redirect.github.com/UKPLab/sentence-transformers/pull/2690">UKPLab/sentence-transformers#2690</a></li> <li>Fix bug that restricts users from specifying custom primary_function in InformationRetrievalEvaluator by <a href="https://github.com/hetulvp"><code>@​hetulvp</code></a> in <a href="https://redirect.github.com/UKPLab/sentence-transformers/pull/2701">UKPLab/sentence-transformers#2701</a></li> <li>Fix a bug in SequentialEvaluator to use primary_metric if defined in evaluator. by <a href="https://github.com/hetulvp"><code>@​hetulvp</code></a> in <a href="https://redirect.github.com/UKPLab/sentence-transformers/pull/2700">UKPLab/sentence-transformers#2700</a></li> <li>[<code>fix</code>] Always override the originally saved <strong>version</strong> in the ST config by <a href="https://github.com/tomaarsen"><code>@​tomaarsen</code></a> in <a href="https://redirect.github.com/UKPLab/sentence-transformers/pull/2709">UKPLab/sentence-transformers#2709</a></li> <li>[<code>model cards</code>] Also include HF datasets in the model card metadata by <a href="https://github.com/tomaarsen"><code>@​tomaarsen</code></a> in <a href="https://redirect.github.com/UKPLab/sentence-transformers/pull/2711">UKPLab/sentence-transformers#2711</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/8a02e45b44cb03f8b3385fa2d1587eb006225bfa"><code>8a02e45</code></a> Merge branch 'master' into v3.0-release</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/f012ab33189d23cef0dd00df7c5642ebb0bac2d4"><code>f012ab3</code></a> typo: SentenceTransformersTrainingArguments -&gt; SentenceTransformerTrainingArg...</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/d079878ecad68d64688621a9a8749d30d64965c5"><code>d079878</code></a> Specify the exact dataset size as a tag, will be bucketized by HF eventually ...</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/6ea99036f437f06f2f3e2dcf3cb08adf630d5935"><code>6ea9903</code></a> [<code>feat</code>] Integrate safetensors with Dense, etc. modules too. (<a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2722">#2722</a>)</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/8ded7682ce340662294c474a6045af0624ca6869"><code>8ded768</code></a> Merge pull request <a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2727">#2727</a> from tomaarsen/can_return_loss</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/d9c2b0c237c04e59b1731eb3cf2ed2f0d348da03"><code>d9c2b0c</code></a> Merge pull request <a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2726">#2726</a> from tomaarsen/fix/no_evaluator</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/08b340b118348f262cfc11d28ec97c92393adc2c"><code>08b340b</code></a> Set can_return_loss=True globally, instead of via the data collator</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/4d3e357d97416c55595108781385c4b942052b5a"><code>4d3e357</code></a> Fix edge case with evaluator being None</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/b5e98e1fcd385dc56334a6d8c4aa4e3aa04921dd"><code>b5e98e1</code></a> Merge pull request <a href="https://redirect.github.com/UKPLab/sentence-transformers/issues/2724">#2724</a> from tomaarsen/improve_typing</li> <li><a href="https://github.com/UKPLab/sentence-transformers/commit/936f283079d6a3c8affdd0627c36d746e32a55d9"><code>936f283</code></a> Add py.typed to satify mypy (etc.) requirements</li> <li>Additional commits viewable in <a href="https://github.com/UKPLab/sentence-transformers/compare/v2.7.0...v3.0.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=sentence-transformers&package-manager=pip&previous-version=2.7.0&new-version=3.0.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> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-13 09:18:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#76156