# Tiiuae/falcon-7b generating wrong response

**URL:** <https://discuss.huggingface.co/t/tiiuae-falcon-7b-generating-wrong-response/50702>\
**Category:** Models\
**Created:** [August 14, 2023, 9:29am UTC](https://discuss.huggingface.co/t/tiiuae-falcon-7b-generating-wrong-response/50702 "2023-08-14T09:29:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marksikaundi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/marksikaundi/32/18535_2.png) [@marksikaundi](https://discuss.huggingface.co/u/marksikaundi)\
**Post date:** [August 14, 2023, 9:29am UTC](https://discuss.huggingface.co/t/tiiuae-falcon-7b-generating-wrong-response/50702/1 "2023-08-14T09:29:52Z")

</div>

Why am I not getting a correct response, your help will be highly appreciated

 ![Screenshot 2023-08-14 112744](https://us1.discourse-cdn.com/hellohellohello/original/3X/b/8/b820be865b8bb9c3c5551412156b57475a47f52b.png)

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [August 14, 2023, 3:32pm UTC](https://discuss.huggingface.co/t/tiiuae-falcon-7b-generating-wrong-response/50702/2 "2023-08-14T15:32:15Z")

</div>

Hi,

You need to increase the `max_length` argument, which determines the number of tokens to generate. This argument is actually deprecated and now called `max_new_tokens`.
