Skip to content

Commit

Permalink
fix diloco not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Jan 10, 2025
1 parent be3ef20 commit a22f434
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zeroband/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ def train(config: Config):
betas=(config.optim.adam_betas1, config.optim.adam_betas2),
)

if config.diloco is not None:
diloco = Diloco(config.diloco, model, elastic_device_mesh)
diloco = Diloco(config.diloco, model, elastic_device_mesh) if config.diloco is not None else None

scheduler = get_scheduler(
sched_type=config.optim.sched_type,
Expand Down

0 comments on commit a22f434

Please sign in to comment.