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

Finalize training procedure #31

Merged
merged 25 commits into from
Jan 24, 2024
Merged

Finalize training procedure #31

merged 25 commits into from
Jan 24, 2024

Conversation

frostedoyster
Copy link
Collaborator

@frostedoyster frostedoyster commented Jan 13, 2024

This PR sets the training interface for the parsers.

  • The trainer now takes in ModelCapabilities, as well as a validation set, which is used for a rudimentary early stopping criterion.
  • The trainer fully supports gradients (untested)
  • Losses (training, validation) are now logged
  • Fixed some regression test reproducibility issues

📚 Documentation preview 📚: https://metatensor-models--31.org.readthedocs.build/en/31/

@frostedoyster frostedoyster changed the base branch from main to forces-virials January 13, 2024 14:39
Base automatically changed from forces-virials to main January 13, 2024 14:40
@frostedoyster frostedoyster marked this pull request as ready for review January 13, 2024 17:20
Copy link
Contributor

@PicoCentauri PicoCentauri left a comment

Choose a reason for hiding this comment

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

Minor comment on the name. We can get this in and I use this to finish the parsers today.

src/metatensor/models/soap_bpnn/train.py Outdated Show resolved Hide resolved
@PicoCentauri
Copy link
Contributor

One last thing. I know you do not like this and it is work but please try to put your functions also in the API documentation. Plus give context about the API. For people outside it is very hard to follow if we only have code...

@frostedoyster frostedoyster changed the base branch from main to arch_override_docs January 20, 2024 07:41
Base automatically changed from arch_override_docs to main January 20, 2024 19:54
Copy link
Contributor

@PicoCentauri PicoCentauri left a comment

Choose a reason for hiding this comment

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

Very cool. I left some comments but overall it looks very good. Can you also rebase against the main branch.

src/metatensor/models/cli/train_model.py Show resolved Hide resolved
src/metatensor/models/cli/train_model.py Show resolved Hide resolved
src/metatensor/models/utils/composition.py Outdated Show resolved Hide resolved
src/metatensor/models/soap_bpnn/train.py Outdated Show resolved Hide resolved
src/metatensor/models/cli/train_model.py Show resolved Hide resolved
src/metatensor/models/utils/data/combine_dataloaders.py Outdated Show resolved Hide resolved
@PicoCentauri
Copy link
Contributor

Go for it!

@frostedoyster frostedoyster merged commit 50c5e36 into main Jan 24, 2024
7 checks passed
@frostedoyster frostedoyster deleted the finalize-training branch January 24, 2024 10:37
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