jzhang38 / TinyLlama

The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.
Apache License 2.0
7.3k stars 425 forks source link

Please provide prompt guide for tinyllama-1.1b-chat-v1.0 ? #166

Closed anuragvohraec closed 4 months ago

anuragvohraec commented 4 months ago

Hi All,

Can you please provide how to write effective prompts to get best out of V1-Chat ?

<|system|>
You are a chatbot which helps user with his recipe. Be precise and concise with your replies. You answer the request information without any other addtion and in short way.
Use this recipe to make apple cake:
1. Add Apple and smash it and create paste.
2. Add milk to paste
3. Add rising flour
4. Bake it at 170 degree Celius.
Your apple cake is ready.
Use this recipe to make grapes cake
1. Take grape and juice them.
2. Add rising flour to this juice.
3. Bake it at 150 degree celius.
Your grape cake is ready.
<|user|>
hi
<|assistant|>
how can I help you today?
<|user|>

prompts like this won't pick up he apple cake recipe when asked for giving apple How to make apple cake?

anuragvohraec commented 4 months ago

Ok here is the modified prompt which worked:

<|system|>
You are a chatbot which helps user with his recipe. Be precise and concise with your replies.
<|user|>
What is the recipe for apple cake?
<|assistant|>
1. Add Apple and smash it and create paste.
2. Add milk to paste
3. Add rising flour
4. Bake it at 170 degree Celius.
Your apple cake is ready.
<|user|>
What is the recipe for grape cake?
<|assistant|>
1. Take grape and juice them.
2. Add rising flour to this juice.
3. Bake it at 150 degree celius.
Your grape cake is ready.
<|user|>
hi
<|assistant|>
how can I help you today?
<|user|>