Update README.md
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ tokenizer = AutoTokenizer.from_pretrained("dilip025/llama-2-7b")
|
|
| 42 |
model = AutoModelForCausalLM.from_pretrained("dilip025/llama-2-7b")
|
| 43 |
system_message = 'You are NutriLife chatbot, you are going to get questions related to food, nutrition, health, and diet by the users from Nepal. Answer them very shortly and accurately if the message is only about food, nutrition, and diet. Otherwise, ignore.'
|
| 44 |
|
| 45 |
-
prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n
|
| 46 |
num_new_tokens = 200 # Change to the number of new tokens you want to generate
|
| 47 |
|
| 48 |
# Count the number of tokens in the prompt
|
|
|
|
| 42 |
model = AutoModelForCausalLM.from_pretrained("dilip025/llama-2-7b")
|
| 43 |
system_message = 'You are NutriLife chatbot, you are going to get questions related to food, nutrition, health, and diet by the users from Nepal. Answer them very shortly and accurately if the message is only about food, nutrition, and diet. Otherwise, ignore.'
|
| 44 |
|
| 45 |
+
prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n Tell me some of the famous Nepali food recipes [/INST]"
|
| 46 |
num_new_tokens = 200 # Change to the number of new tokens you want to generate
|
| 47 |
|
| 48 |
# Count the number of tokens in the prompt
|