Migrate from custom runner and MONAI ConfigParser to Lighter#7
Draft
ibro45 wants to merge 7 commits intoAIM-Harvard:masterfrom
Draft
Migrate from custom runner and MONAI ConfigParser to Lighter#7ibro45 wants to merge 7 commits intoAIM-Harvard:masterfrom
ibro45 wants to merge 7 commits intoAIM-Harvard:masterfrom
Conversation
Replace MONAI's ConfigParser with Lighter framework for configuration management. Key changes: - Add __lighter__.py marker file for project.* imports - Update all YAML configs to Lighter syntax: - %var -> %vars::var (raw references) - @section#key -> %section::key or $@section::key (expressions) - lightning_module -> model - data_module -> data - Update Python imports to use project.* prefix - Add training/__init__.py for module exports - Remove scripts/run.py (replaced by lighter CLI) - Remove utils/imports.py (replaced by __lighter__.py) - Simplify pyproject.toml dependencies Usage: lighter fit configs/train.yaml configs/models/primus.yaml configs/datasets/amos.yaml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… refactor dataset paths in YAML configs
…ent and improve input/output handling
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.
Hey guys, I've just played around with this now that Lighter's been redesigned to be simpler and more Pytorch-Lightning-native. Actually, the redesign was partially prompted by this repo. Not expecting this to be merged, just for your interest.
Summary
__lighter__.pymarker file enablingproject.*imports automatically%vars::,$@expressions)lightning_module→model,data_module→dataproject.*prefix throughout codebasepyproject.tomlscripts/run.py(replaced bylighterCLI)New Usage
Benefits
lighter fit config.yamlinstead of custom fire scriptsmodel::learning_rate=0.01Test plan
lighterCLI is available after installtrainer::fast_dev_run=true