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

[training] Pass steps/epoch/output_path to Evaluator during training #3066

Merged

Conversation

tomaarsen
Copy link
Collaborator

Resolves #3062

Hello!

Pull Request overview

  • Pass steps/epoch/output_path to Evaluator during training
    • Both for the deprecated model.fit() and the SentenceTransformerTrainer
  • Fix EmbeddingSimilarityEvaluator and NanoBEIREvaluator who failed when writing to disk

Details

The model.fit nor SentenceTransformerTrainer passed all available parameters down to the evaluator(s). In particular, the output_path wasn't sent, which meant that no csv files could be written for the evaluators. Beyond that, 2 evaluators failed when writing to disk. Some better tests for the evaluators would be appreciated, as this could've been caught.

  • Tom Aarsen

Both in fit_mixin and the trainer
Plus fixing 2 evaluators
@tomaarsen tomaarsen merged commit 0f44583 into UKPLab:master Nov 19, 2024
9 checks passed
@bluebalam
Copy link

Thank you very much @tomaarsen for the quick response 👍🏾

@tomaarsen
Copy link
Collaborator Author

Gladly! You can use this already with:

pip install git+https://github.com/UKPLab/sentence-transformers.git

And otherwise this will be included in the next release.

  • Tom Aarsen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants