# Calculate tokens per second while fine-tuning llm?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalculate-tokens-per-second-while-fine-tuning-llm%2F107098%3E%5C
**Category:** DeepSpeed\
**Created:** [September 17, 2024, 4:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalculate-tokens-per-second-while-fine-tuning-llm%2F107098 "2024-09-17T16:41:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superbigtree](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/superbigtree/32/20868_2.png) [@superbigtree](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsuperbigtree)%5C
**Post date:** [September 17, 2024, 4:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcalculate-tokens-per-second-while-fine-tuning-llm%2F107098%2F1 "2024-09-17T16:41:03Z")

</div>

Hi everyone, how is the tokens per second calculated during training? And how different is it compared to the inference?
