-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
checkpointingRelated to checkpointingRelated to checkpointingfeatureIs an improvement or enhancementIs an improvement or enhancement
Description
Description & Motivation
Allow Lightning model to save a checkpoint, that you can load with load_from_checkpoint.
Pitch
I have encountered this issue several times, as I try to switch to Lightning, it is not simple to take old checkpoints from native pytorch and run them on the new code (for testing/comparison purposes for examples)
I tried to make a model, then load LightningModel.Model with the weights, but then if I want to save it, I need to run a full mock training which isn't handy or practical.
Alternatives
You could have a simple attach method on the trainer to attach a model without having to use Fit/Test/predict etc... and requiring arguments. Which would be a good alternative.
Additional context
No response
Metadata
Metadata
Assignees
Labels
checkpointingRelated to checkpointingRelated to checkpointingfeatureIs an improvement or enhancementIs an improvement or enhancement