Skip to content

Commit

Permalink
further fix meta-llama#90
Browse files Browse the repository at this point in the history
  • Loading branch information
lchu-ibm committed Aug 3, 2023
1 parent 0c51b47 commit 80a4c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/train_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def train(model, train_dataloader,eval_dataloader, tokenizer, optimizer, lr_sche
lr_scheduler.step()

if train_config.run_validation:
eval_ppl, eval_epoch_loss = evaluation(model, train_config, eval_dataloader, rank, tokenizer)
eval_ppl, eval_epoch_loss = evaluation(model, train_config, eval_dataloader, local_rank, tokenizer)
if train_config.save_model and eval_epoch_loss < best_val_loss:
if train_config.enable_fsdp:
dist.barrier()
Expand Down

0 comments on commit 80a4c36

Please sign in to comment.