# Inference slows down after restrictions

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-slows-down-after-restrictions%2F4918%3E%5C
**Category:** 🤗Transformers\
**Created:** [March 22, 2021, 4:23pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-slows-down-after-restrictions%2F4918 "2021-03-22T16:23:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prajjwal1](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/prajjwal1/32/2246_2.png) [@prajjwal1](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fprajjwal1)%5C
**Post date:** [March 22, 2021, 4:23pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-slows-down-after-restrictions%2F4918%2F1 "2021-03-22T16:23:56Z")

</div>

Earlier I was using `generate` without `length_penalty` and `no_repeat_ngram_size`, and after using these two params, inference has slowed down significantly (more than 2x). Is this the intended behaviour here ?
