File size: 1,563 Bytes
eda0376
 
 
 
 
 
 
 
f167731
eda0376
a32b9bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eda0376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
datasets:
- jondurbin/airoboros-2.2.1
tags:
- airoboros
- tinyllama
---

This model is a fine-tuned version of PY007/TinyLlama-1.1B-Chat-v0.3 (finetuned on 15k rows of airoboros-2.2.1 dataset)

## lm-eval

```
|    Task     |Version| Metric |Value |   |Stderr|
|-------------|------:|--------|-----:|---|-----:|
|arc_challenge|      0|acc     |0.2671|±  |0.0129|
|             |       |acc_norm|0.2850|±  |0.0132|
|arc_easy     |      0|acc     |0.5673|±  |0.0102|
|             |       |acc_norm|0.5109|±  |0.0103|
|boolq        |      1|acc     |0.6040|±  |0.0086|
|hellaswag    |      0|acc     |0.4155|±  |0.0049|
|             |       |acc_norm|0.5420|±  |0.0050|
|openbookqa   |      0|acc     |0.2200|±  |0.0185|
|             |       |acc_norm|0.3420|±  |0.0212|
|piqa         |      0|acc     |0.7057|±  |0.0106|
|             |       |acc_norm|0.6970|±  |0.0107|
|winogrande   |      0|acc     |0.5714|±  |0.0139|

```
## Usage:

```
from transformers import AutoTokenizer
import transformers
import torch

model = "aloobun/TinyAiroboros-2.2.1"

tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    torch_dtype=torch.float16,
    device_map="auto",
)

prompt = "Write a short story about a dystopian society."

sequences = pipeline(
    f'[INST] {prompt} [/INST]',
    do_sample=True,
    top_k=10,
    num_return_sequences=1,
    eos_token_id=tokenizer.eos_token_id,
    max_length=1024,
)
for seq in sequences:
    print(f"Result: {seq['generated_text']}")
```