Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
NouamaneTazi committed Nov 20, 2024
1 parent 8e3c5e6 commit e967e78
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/nanotron/sanity_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ def before_optim_step_sanity_checks(
msg=lambda err: f"[Before optimizer step] Tied weights {name} are not synchronized. {err}",
)

# SANITY CHECK: optimizer's lr is synchronized with lr_scheduler
for group in unwrapped_model.optimizer.param_groups:
assert group["lr"] == unwrapped_model.lr_scheduler.get_last_lr()[0]

# SANITY CHECK: run model specific sanity checks
unwrapped_model.before_optim_step_sanity_checks()

Expand Down

0 comments on commit e967e78

Please sign in to comment.