Skip to content

Conversation

tomaarsen
Copy link
Member

Resolves #593

Hello!

Pull Request overview

  • Introduce compatibility with Sentence Transformers v4.0

Details

I think v3.4.1 might have also been problematic before.
In short, the add_model_card_callback was being used to add the SentenceTransformers model card callback, but we don't want this one at all. We can just override it to get rid of it.

  • Tom Aarsen

I think v3.4.1 might have also been problematic before
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@tomaarsen
Copy link
Member Author

tomaarsen commented Apr 1, 2025

Test failures are seen across all CI's that load from HF currently. Tests are passing locally

@tomaarsen tomaarsen merged commit 7fba0b7 into huggingface:main Apr 1, 2025
2 of 18 checks passed
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.

With sentence_transformers>=4, SetFit throws TypeError: on_init_end() missing 1 required positional argument: 'trainer'
2 participants