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

Create custom NotebookCallback subclass for embedding_loss, etc. #557

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

tomaarsen
Copy link
Member

Resolves #548

Hello!

Pull Request overview

  • Create custom NotebookCallback subclass for embedding_loss, etc.

Details

As seen in #548, training and validation losses aren't properly logged in Notebooks. This is because the NotebookCallback expects "loss" and "eval_loss", whereas SetFit uses different keys instead (e.g. "embedding_loss").

This PR adds a modification of the NotebookCallback that is aware of the different (common) options in SetFit.

  • Tom Aarsen

@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 tomaarsen merged commit 35755c6 into huggingface:main Sep 19, 2024
12 of 13 checks passed
@tomaarsen tomaarsen deleted the feat/setfit_notebook_callback branch September 19, 2024 08:43
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.

Training Loss and Validation Loss are not logged
2 participants