Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
datasets:
|
3 |
+
- jondurbin/airoboros-2.2.1
|
4 |
+
tags:
|
5 |
+
- airoboros
|
6 |
+
- tinyllama
|
7 |
+
---
|
8 |
+
|
9 |
+
This model is a fine-tuned version of PY007/TinyLlama-1.1B-Chat-v0.3
|
10 |
+
|
11 |
+
## Usage:
|
12 |
+
|
13 |
+
```
|
14 |
+
from transformers import AutoTokenizer
|
15 |
+
import transformers
|
16 |
+
import torch
|
17 |
+
|
18 |
+
model = "aloobun/TinyAiroboros-2.2.1"
|
19 |
+
|
20 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
21 |
+
pipeline = transformers.pipeline(
|
22 |
+
"text-generation",
|
23 |
+
model=model,
|
24 |
+
torch_dtype=torch.float16,
|
25 |
+
device_map="auto",
|
26 |
+
)
|
27 |
+
|
28 |
+
prompt = "Write a short story about a dystopian society."
|
29 |
+
|
30 |
+
sequences = pipeline(
|
31 |
+
f'[INST] {prompt} [/INST]',
|
32 |
+
do_sample=True,
|
33 |
+
top_k=10,
|
34 |
+
num_return_sequences=1,
|
35 |
+
eos_token_id=tokenizer.eos_token_id,
|
36 |
+
max_length=1024,
|
37 |
+
)
|
38 |
+
for seq in sequences:
|
39 |
+
print(f"Result: {seq['generated_text']}")
|
40 |
+
```
|
41 |
+
|
42 |
+
### EVAL:
|
43 |
+
|
44 |
+
WIP
|