Skip to content

LR Scheduler instantiation fails when Optimizer loaded via DCP #315

Closed

Description

@le1nux

The lr scheduler instantiation with an optimizer that has been loaded via distributed checkpointing (DCP) fails, as the inital_lr has not been set by the lr_scheduler (in the case of last_epoch != -1).

See here, for an extended discussion:
pytorch/pytorch#140900

Possible solution:
Torch Titan also checkpoints the lr scheduler:
https://github.com/pytorch/torchtitan/blob/main/torchtitan/components/checkpoint.py#L266

Activity

  1. self-assigned this
    on Mar 26, 2025
  2. le1nux commented on Mar 26, 2025

    @le1nux
    MemberAuthor

    implemented in #312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions