feat: add normalizer configs and statistics to the checkpoint for streamlined inference#217
Open
Ndles wants to merge 3 commits into
Open
feat: add normalizer configs and statistics to the checkpoint for streamlined inference#217Ndles wants to merge 3 commits into
Ndles wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
Contributor
Contributor
|
Docs publish only on push to main/dev-refactoring. Live site: https://noether-docs.emmi.ai/ |
ab43c6d to
308bc4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an extension to checkpoint writer to store normalizer configs and statistics. This allows to load a checkpoint in isolation from the dataset and run inference.
Adds
noether.inference.Run, a Hydra-free Python API for loading a trained run interactively. Construct from a run directory; pull the model, dataset, or field normalizers via three independent lazy methods:run.model()- instantiate + load checkpoint weights. Config + checkpoint only.run.normalizers()- build field normalizers from the dataset class's STATS_FILE without instantiating the dataset itself. Useful for applying a trained model to data that isn't packaged as a noether Dataset.run.dataset()- instantiate the dataset (the only path that needs the original data files).Adds an interactive notebook showcasing how to load a checkpoint directly, as well as new
noether.inference.Run