eryk-mazus
commited on
Commit
•
a0d9543
1
Parent(s):
40a305a
Update README.md
Browse files
README.md
CHANGED
@@ -49,8 +49,8 @@ streamer = TextStreamer(tokenizer, skip_prompt=True)
|
|
49 |
system_prompt = "Jesteś pomocnym asystentem."
|
50 |
chat = [{"role": "system", "content": system_prompt}]
|
51 |
|
52 |
-
#
|
53 |
-
user_input = "
|
54 |
chat.append({"role": "user", "content": user_input})
|
55 |
|
56 |
# Generate - add_generation_prompt to make sure it continues as assistant
|
@@ -86,9 +86,9 @@ This model uses ChatML as the prompt format:
|
|
86 |
<|im_start|>system
|
87 |
Jesteś pomocnym asystentem.
|
88 |
<|im_start|>user
|
89 |
-
|
90 |
<|im_start|>assistant
|
91 |
-
|
92 |
```
|
93 |
|
94 |
This prompt is available as a [chat template](https://huggingface.co/docs/transformers/chat_templating), which means you can format messages using the `tokenizer.apply_chat_template()` method, as demonstrated in the example above.
|
|
|
49 |
system_prompt = "Jesteś pomocnym asystentem."
|
50 |
chat = [{"role": "system", "content": system_prompt}]
|
51 |
|
52 |
+
# Compose a short song on programming.
|
53 |
+
user_input = "Napisz krótką piosenkę o programowaniu."
|
54 |
chat.append({"role": "user", "content": user_input})
|
55 |
|
56 |
# Generate - add_generation_prompt to make sure it continues as assistant
|
|
|
86 |
<|im_start|>system
|
87 |
Jesteś pomocnym asystentem.
|
88 |
<|im_start|>user
|
89 |
+
Jakie jest dzienne zapotrzebowanie kaloryczne dorosłej osoby?<|im_end|>
|
90 |
<|im_start|>assistant
|
91 |
+
Dla dorosłych osób zaleca się spożywanie około 2000-3000 kcal dziennie, aby utrzymać optymalne zdrowie i dobre samopoczucie.<|im_end|>
|
92 |
```
|
93 |
|
94 |
This prompt is available as a [chat template](https://huggingface.co/docs/transformers/chat_templating), which means you can format messages using the `tokenizer.apply_chat_template()` method, as demonstrated in the example above.
|