Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
justusc committed Jul 13, 2023
1 parent d7f63b7 commit 8a66060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/dist_clm_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def calculate_training_steps(args, train_data_loader) -> int:
print("WARNING: total_steps ({args.toal_steps}) supercedes nepochs ({args.nepochs}).")
return args.total_steps

token_count = train_data_loader.get_dataset_token_count()
token_count = train_data_loader.dataset.get_dataset_token_count()

# Check the inputs to calculate the total steps
if args.batch_size is None or args.world_size is None or args.pipeline_group_size is None or token_count is None or args.seq_length is None:
Expand Down

0 comments on commit 8a66060

Please sign in to comment.