Skip to content

Commit

Permalink
add total samples
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Sep 21, 2024
1 parent 9a5efa7 commit 5d0deb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zeroband/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def train(config: Config):
* config.optim.batch_size
/ (time.time() - beginning_step_time),
"Perplexity": torch.exp(loss_batch).item(),
"total_tokens": real_step * config.optim.batch_size * config.data.seq_length,
}

if world_info.rank == 0:
Expand Down

0 comments on commit 5d0deb9

Please sign in to comment.