# Slow inference while performing translation

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fslow-inference-while-performing-translation%2F18943%3E%5C
**Category:** Intermediate\
**Created:** [June 10, 2022, 10:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fslow-inference-while-performing-translation%2F18943 "2022-06-10T10:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashanth](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@prashanth](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fprashanth)%5C
**Post date:** [June 10, 2022, 10:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fslow-inference-while-performing-translation%2F18943%2F1 "2022-06-10T10:52:08Z")

</div>

Hi,  
I’m using the **mbart** model to perform the translation of **1000 sentences** and I see that the inference is very slow. Each sentence takes about a minute to infer. How do I speed up the inference ( I do have access to GPU).

Any help appreciated,  
Prashanth
