Skip to content

Commit

Permalink
Merge pull request #149 from huggingface/fix-save-ckpt
Browse files Browse the repository at this point in the history
[BUG] fix arg for save_checkpoint
  • Loading branch information
3outeille authored Apr 23, 2024
2 parents dfdc063 + 37cfcda commit b792a22
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 @@ -398,7 +398,7 @@ def train(
self.pre_training(**kwargs)

if self.config.checkpoints.save_initial_state and self.init_checkpoint_path is None:
self.save_checkpoint(dataloader_or_dls)
self.save_checkpoint()

self.pipeline_engine: PipelineEngine = self.config.parallelism.pp_engine

Expand Down

0 comments on commit b792a22

Please sign in to comment.