Commit
·
c254a5a
1
Parent(s):
18eaf67
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- HuggingFaceH4/no_robots
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Model info
|
| 8 |
+
This is Pythia410m-V1-Instruct finetuned on No Robots. This is so it follows system prompts better.
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
from transformers import pipeline
|
| 13 |
+
|
| 14 |
+
pipe = pipeline("text-generation", model="SummerSigh/Pythia410m-V1-Instruct")
|
| 15 |
+
|
| 16 |
+
out= pipe("<|im_start|>system\nYou are a good assistant designed to answer all prompts the user asks.<|im_end|><|im_start|>user\nWhat's the meaning of life?<|im_end|><|im_start|>assistant\n",max_length = 500,repetition_penalty = 1.2, temperature = 0.5, do_sample = True)
|
| 17 |
+
|
| 18 |
+
print(out[0]["generated_text"])
|
| 19 |
+
|
| 20 |
+
```
|