Skip to content

Commit

Permalink
Merge pull request #224 from eliebak/fix-logging-checkpoint
Browse files Browse the repository at this point in the history
log "No checkpoint path provided" only on rank 0
  • Loading branch information
zzhhjjj authored Aug 29, 2024
2 parents 03d67f2 + 3340a7b commit 6cf2d63
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 @@ -700,7 +700,7 @@ def _load_model_checkpoint(self, model: NanotronModel) -> NanotronModel:
)
reloaded_from_checkpoint = True
if not reloaded_from_checkpoint:
log_rank("No checkpoint path provided.", logger=logger, level=logging.INFO)
log_rank("No checkpoint path provided.", logger=logger, level=logging.INFO, rank=0)
if isinstance(self.config.model.init_method, ExistingCheckpointInit):
# Initialize model from an pretrained model checkpoint
self.param_shard_metadata = load_weights(
Expand Down

0 comments on commit 6cf2d63

Please sign in to comment.