Skip to content

Add support for ChainedSchedulers in LitModular. #191

@dxoigmn

Description

@dxoigmn

Right now LitModular does not support ChainedScheduler. This is because a ChainedScheduler does not take an optimizer, but rather a list of schedulers:
https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.ChainedScheduler.html

LitModular assumes lr_scheduler is a callable that receives an Optimizer:

config["lr_scheduler"] = self.lr_scheduler(config["optimizer"])

My sense is the best way to fix this is to allow lr_scheduler to be a list and we can create the underlying ChainedScheduler within LitModular.

Metadata

Metadata

Assignees

No one assigned

    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