Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nemo/examples/nlp/language_modeling/test_llama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ $MAYBE_COMPILE torchrun $DISTRIBUTED_ARGS megatron_gpt_pretraining.py \
model.wrap_with_zero=$wrap_with_zero \
model.zero_use_master_weight=$zero_use_master_weight \
exp_manager.create_tensorboard_logger=$CREATE_TB_LOGGER \
exp_manager.resume_if_exists=False \
exp_manager.resume_ignore_no_checkpoint=False \
exp_manager.resume_if_exists=True \
exp_manager.resume_ignore_no_checkpoint=True \
exp_manager.create_checkpoint_callback=$CHECKPOINT_CALLBACK \
exp_manager.explicit_log_dir=$EXPLICIT_LOGDIR \
+exp_manager.checkpoint_callback_params.train_time_interval=36000 \
model.use_cpu_initialization=True 2>&1 | tee -a $LOG_PATH/log

# Note: to resume training using a checkpoint, please add the following configuration above, adjusting for your checkpoint path
# model.resume_from_checkpoint='/efs/checkpoint/megatron_gpt--step\=1085-consumed_samples\=69632.0-last.ckpt' \
# +exp_manager.checkpoint_callback_params.train_time_interval=36000 is in seconds and will cause checkpoints to be created every
# 10 hours. Change this appropriately for your use case.