Skip to content

Optimizer is reset every epoch rather than during training stage switch #39

@JaydenTeoh

Description

@JaydenTeoh

In the paper, it is mentioned that "we also reset the optimizer state when training stages switch."

However, in

coconut/run.py

Lines 312 to 320 in d1c10b1

if configs.reset_optimizer:
del optimizer
optimizer = optim.AdamW(
parallel_model.parameters(),
lr=configs.lr,
weight_decay=configs.weight_decay,
)

the optimizer is reset every epoch.

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