Update README.md
Browse filesBased on SFT process done on bigcode/the-stack-smol , particularly the python data.
README.md
CHANGED
@@ -19,7 +19,7 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
19 |
```python
|
20 |
from transformers import pipeline
|
21 |
|
22 |
-
question = "
|
23 |
generator = pipeline("text-generation", model="peaceAsh/sft_output", device="cuda")
|
24 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
25 |
print(output["generated_text"])
|
|
|
19 |
```python
|
20 |
from transformers import pipeline
|
21 |
|
22 |
+
question = "Can you write a python function to add 2 numbers?"
|
23 |
generator = pipeline("text-generation", model="peaceAsh/sft_output", device="cuda")
|
24 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
25 |
print(output["generated_text"])
|