Skip to content

Commit

Permalink
fix ".module" issue in load_optimizer by passing unwrapped_model
Browse files Browse the repository at this point in the history
  • Loading branch information
NouamaneTazi committed Nov 19, 2024
1 parent 4cc62ae commit 8e3c5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanotron/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(
parallel_context=self.parallel_context,
root_folder=self.init_checkpoint_path,
param_shard_metadata=self.param_shard_metadata,
model=self.model,
model=self.unwrapped_model,
)

# Init learning rate scheduler
Expand Down

0 comments on commit 8e3c5e6

Please sign in to comment.