Skip to content

Provide a Default Parameter for Fit's Checkpoint Restore Path #10573

@blisc

Description

@blisc

Proposed refactor

Do 1 of 2 options:

  1. Do not deprecate resume_from_checkpoint from Trainer's initialization as recommended in [checkpoint] Resolve 2 different checkpoint loading paths across fit vs validate/test/predict #9405
  2. Provide a public facing property that acts as a default in the case when ckpt_path is passed as None to trainer.fit. This property should be accessible after trainer initialization

Motivation

Our current design pattern is to initialization the Trainer object, and then inject our own logic into the Trainer class, and finally calling trainer.fit(model) without adding any additional arguments to fit(). Moving this argument from trainer's init to fit() will require us to rewrite all of our training scripts.

Pitch

See Proposed refactor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions