# Time required to pipeline's preprocess, forward pass and postprocessing function

**URL:** <https://discuss.huggingface.co/t/time-required-to-pipelines-preprocess-forward-pass-and-postprocessing-function/68711>\
**Category:** 🤗Transformers\
**Created:** [January 10, 2024, 9:43pm UTC](https://discuss.huggingface.co/t/time-required-to-pipelines-preprocess-forward-pass-and-postprocessing-function/68711 "2024-01-10T21:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Purj](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/purj/32/26652_2.png) [@Purj](https://discuss.huggingface.co/u/Purj)\
**Post date:** [January 10, 2024, 9:43pm UTC](https://discuss.huggingface.co/t/time-required-to-pipelines-preprocess-forward-pass-and-postprocessing-function/68711/1 "2024-01-10T21:43:10Z")

</div>

Hi there,  
Pipeline object (transformer’s library) does three stages:

- Preprocessing (e.g., tokenization)
- Forward pass through model
- Postprocessing (e.g., convert logits to probabilities)

I need help in understanding _how to compute time for each stage_.

Thanks!
