Skip to content

Commit 1e7dccf

Browse files
authored
Minor fix for line count (#150)
1 parent 8f2ab8f commit 1e7dccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

training/dist_clm_train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def train_loop(args, pipe, device, train_data_loader, test_data_loader):
100100

101101
if get_pipeline_parallel_rank() == 0 and dp_rank == 0:
102102

103-
epoch_steps = int(train_data_loader.get_dataset_example_count() / args.batch_size)
103+
epoch_steps = int(train_data_loader.dataset.get_dataset_example_count() / args.batch_size)
104104
if epoch_steps == 0:
105105
epoch_steps = 1
106106

0 commit comments

Comments
 (0)