You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, I have batch size 4 used for the training, which means each time I will give 4 samples to the trainer. Inside the batch, each sample has a different length. In this case, how do we calculate the tokens_per_sec?
Thanks.
The text was updated successfully, but these errors were encountered:
From the line https://github.com/microsoft/Megatron-DeepSpeed/blob/main/megatron/training.py#L1119C9-L1119C24 it uses tokens_per_sec to measure the training throughput. it's being calculated with samples_per_sec * seq_len. what is the seq_len here?
For example, I have batch size 4 used for the training, which means each time I will give 4 samples to the trainer. Inside the batch, each sample has a different length. In this case, how do we calculate the tokens_per_sec?
Thanks.
The text was updated successfully, but these errors were encountered: