Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Always override the originally saved __version__ in the ST config #2709

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

tomaarsen
Copy link
Collaborator

@tomaarsen tomaarsen commented Jun 4, 2024

Hello!

Pull Request overview

  • Always override the originally saved version in the ST config

Details

Currently, the __version__ data is only determines once, and then all future models finetuned on that model will just adopt the original versions. This can become a problem as e.g. ST v3.0 will save models that have e.g. "2.2.2" in their configuration, which is rather confusing.

Example

E.g. https://huggingface.co/ammumadhu/indic-bert-nli-matryoshka/blob/main/config_sentence_transformers.json
which shows 2.2.2 whereas the model itself was trained with v3.0.0.

cc @osanseviero

  • Tom Aarsen

Copy link
Contributor

@osanseviero osanseviero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@tomaarsen tomaarsen merged commit 1e72d91 into UKPLab:master Jun 4, 2024
9 checks passed
@tomaarsen tomaarsen deleted the fix/override_saved_versions branch June 4, 2024 20:22
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.

2 participants