# LLAMA-2 conversation generated responses always empty

**URL:** <https://discuss.huggingface.co/t/llama-2-conversation-generated-responses-always-empty/55456>\
**Category:** Beginners\
**Created:** [September 18, 2023, 1:15pm UTC](https://discuss.huggingface.co/t/llama-2-conversation-generated-responses-always-empty/55456 "2023-09-18T13:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waterfront](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Waterfront](https://discuss.huggingface.co/u/Waterfront)\
**Post date:** [September 18, 2023, 1:15pm UTC](https://discuss.huggingface.co/t/llama-2-conversation-generated-responses-always-empty/55456/1 "2023-09-18T13:15:43Z")

</div>

I already found posts describing the problem of no response when the prompt is long, but as you can see, my example is minimal and still, I get an empty response:

 ![Bildschirmfoto 2023-09-18 um 15.10.52 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/3/23d5c4ed6732a5ac56b1df193d97e8ed02544892.png)

I’m using the default system prompt:

```auto
Conversation id: 70ca71b2-ac9d-42c2-9991-3f153f035a86 
user >> <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.

If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<</SYS>>

Going to the movies tonight - any suggestions? 
bot >> The Big lebowski. 
user >> Is it good? 
bot >>

```

---

<div class="post-metadata">

**Author:** ![Waterfront](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Waterfront](https://discuss.huggingface.co/u/Waterfront)\
**Post date:** [September 21, 2023, 9:31am UTC](https://discuss.huggingface.co/t/llama-2-conversation-generated-responses-always-empty/55456/2 "2023-09-21T09:31:21Z")

</div>

The solution is to give `max_length`:

```auto
llama = pipeline(
    "conversational",
    model="meta-llama/Llama-2-7b-chat-hf",
    max_length=2000
)

```
