Skip to content

Saved intermediary checkpoint's epoch is not honored when the checkpoint is loaded #23

Description

@3dewberries

Quick story of what I wanted to achieve:

As the training process takes quite some time ( CSR and CCIP models training combined will take around a week to train on my PC ).
So I analyzed sources a bit and found the parameter "save_every" in the autoencoder configuration class ConfigAE.
By default this parameter is set to 50. I have set it to 1, to make the model training checkpoint to be saved after each epoch - I noticed it is done in the directory "results/test/CSR/trained_models" :

Image

So far so good. The goal was to be able to interrupt the process after any epoch and resume it at a later time.
But when I try to use the saved checkpoint file as a starting point, the saved epoch within it is not honored, and the training process starts again from epoch 1, even though the trainer script reports the CSR checkpoint is successfuly loaded:

Image

Also the optimizer's and scheduler's state_dict is saved but not loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions