Skip to content

feat: add normalizer configs and statistics to the checkpoint for streamlined inference#217

Open
Ndles wants to merge 3 commits into
mainfrom
feat/inference-run-notebook
Open

feat: add normalizer configs and statistics to the checkpoint for streamlined inference#217
Ndles wants to merge 3 commits into
mainfrom
feat/inference-run-notebook

Conversation

@Ndles
Copy link
Copy Markdown
Member

@Ndles Ndles commented May 12, 2026

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

@Ndles Ndles self-assigned this May 12, 2026
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

Coverage

Tests Skipped Failures Errors Time
1421 24 💤 0 ❌ 0 🔥 28.990s ⏱️

@github-actions
Copy link
Copy Markdown
Contributor

Docs publish only on push to main/dev-refactoring. Live site: https://noether-docs.emmi.ai/

@Ndles Ndles force-pushed the feat/inference-run-notebook branch from ab43c6d to 308bc4b Compare May 13, 2026 11:47
@Ndles Ndles changed the title feat: add Run for notebook-friendly model loading feat: add extra items to the checkpoint to enable dataset-less inference May 13, 2026
@Ndles Ndles changed the title feat: add extra items to the checkpoint to enable dataset-less inference feat: add normalizer configs and statistics to the checkpoint for streamlined inference May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant