Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to calcuate the training throughput #444

Open
bigtree2020 opened this issue Sep 12, 2024 · 0 comments
Open

how to calcuate the training throughput #444

bigtree2020 opened this issue Sep 12, 2024 · 0 comments

Comments

@bigtree2020
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant