Skip to content

save the model/training source code to model checkpoint or logs directory #2409

@ares89

Description

@ares89

🚀 Feature

Save the model/training source code to model checkpoint or logs directory

Motivation

Now, the hparams has been saved in yaml file. Sometimes, we not only change the hparams but also the network arch, the pre-process flow, so if we save the relate source code to model, we will get all the information to restore the model, because the source code is with the model hparams and all other things.

Pitch

add Trainer args parse params, or Checkpoint callback params, one for wether to save source code, and one for which codes to save

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs an improvement or enhancementhelp wantedOpen to be worked onwon't fixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions