File size: 12,802 Bytes
c2ea6a9
 
 
d9c73ed
c2ea6a9
 
 
d9c73ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2ea6a9
6e762a5
c2ea6a9
 
 
8c93fdc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a0e052
6377785
 
9a0e052
 
8c93fdc
9a0e052
6e762a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a0e052
9a4c0f3
44d513b
9a4c0f3
44d513b
9a4c0f3
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
44d513b
 
9a4c0f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44d513b
9a4c0f3
d9c73ed
 
 
 
 
 
 
 
 
 
 
 
 
 
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
---
language:
- en
license: llama2
tags:
- logic
- planning
model-index:
- name: strix-rufipes-70b
  results:
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: AI2 Reasoning Challenge (25-Shot)
      type: ai2_arc
      config: ARC-Challenge
      split: test
      args:
        num_few_shot: 25
    metrics:
    - type: acc_norm
      value: 71.33
      name: normalized accuracy
    source:
      url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=ibivibiv/strix-rufipes-70b
      name: Open LLM Leaderboard
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: HellaSwag (10-Shot)
      type: hellaswag
      split: validation
      args:
        num_few_shot: 10
    metrics:
    - type: acc_norm
      value: 87.86
      name: normalized accuracy
    source:
      url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=ibivibiv/strix-rufipes-70b
      name: Open LLM Leaderboard
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: MMLU (5-Shot)
      type: cais/mmlu
      config: all
      split: test
      args:
        num_few_shot: 5
    metrics:
    - type: acc
      value: 69.13
      name: accuracy
    source:
      url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=ibivibiv/strix-rufipes-70b
      name: Open LLM Leaderboard
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: TruthfulQA (0-shot)
      type: truthful_qa
      config: multiple_choice
      split: validation
      args:
        num_few_shot: 0
    metrics:
    - type: mc2
      value: 56.72
    source:
      url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=ibivibiv/strix-rufipes-70b
      name: Open LLM Leaderboard
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: Winogrande (5-shot)
      type: winogrande
      config: winogrande_xl
      split: validation
      args:
        num_few_shot: 5
    metrics:
    - type: acc
      value: 84.77
      name: accuracy
    source:
      url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=ibivibiv/strix-rufipes-70b
      name: Open LLM Leaderboard
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: GSM8k (5-shot)
      type: gsm8k
      config: main
      split: test
      args:
        num_few_shot: 5
    metrics:
    - type: acc
      value: 53.83
      name: accuracy
    source:
      url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=ibivibiv/strix-rufipes-70b
      name: Open LLM Leaderboard
---
# Strix Rufipes 70B

![img](./strix_rufipes.png)

# Prompting

## Prompt Template for alpaca style

```
### Instruction:

<prompt> (without the <>)

### Response:
```

## Sample Code

```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

torch.set_default_device("cuda")

model = AutoModelForCausalLM.from_pretrained("ibivibiv/strix-rufipes-70b", torch_dtype="auto", device_config='auto')
tokenizer = AutoTokenizer.from_pretrained("ibivibiv/strix-rufipes-70b")

inputs = tokenizer("### Instruction: Create a plan for developing the game of snake in python using pygame.\n### Response:\n", return_tensors="pt", return_attention_mask=False)

outputs = model.generate(**inputs, max_length=200)
text = tokenizer.batch_decode(outputs)[0]
print(text)
```

# Model Details
* **Trained by**: [ibivibiv](https://huggingface.co/ibivibiv)
* **Library**: [HuggingFace Transformers](https://github.com/huggingface/transformers)
* **Model type:**  **strix-rufipes-70b** is an auto-regressive language model fine tuned on the Llama 2 transformer architecture.
* **Language(s)**: English
* **Purpose**: Has specific training for logic enforcement.  This model is targeted towards planning exercises.

# Benchmark Scores

| Test Name                                             | Accuracy             |
|-------------------------------------------------------|----------------------|
| average of all                                        | 0.6910894247381432   |
| arc:challenge                               | 0.674061433447099    |
| hellaswag                                   | 0.6898028281218881   |
| hendrycksTest-abstract_algebra              | 0.36                 |
| hendrycksTest-anatomy                       | 0.6370370370370371   |
| hendrycksTest-astronomy                     | 0.7960526315789473   |
| hendrycksTest-business_ethics               | 0.73                 |
| hendrycksTest-clinical_knowledge            | 0.7169811320754716   |
| hendrycksTest-college_biology               | 0.8125               |
| hendrycksTest-college_chemistry             | 0.47                 |
| hendrycksTest-college_computer_science      | 0.56                 |
| hendrycksTest-college_mathematics           | 0.36                 |
| hendrycksTest-college_medicine              | 0.6820809248554913   |
| hendrycksTest-college_physics               | 0.43137254901960786  |
| hendrycksTest-computer_security             | 0.75                 |
| hendrycksTest-conceptual_physics            | 0.6851063829787234   |
| hendrycksTest-econometrics                  | 0.4824561403508772   |
| hendrycksTest-electrical_engineering        | 0.5793103448275863   |
| hendrycksTest-elementary_mathematics        | 0.41534391534391535  |
| hendrycksTest-formal_logic                  | 0.48412698412698413  |
| hendrycksTest-global_facts                  | 0.5                  |
| hendrycksTest-high_school_biology           | 0.8064516129032258   |
| hendrycksTest-high_school_chemistry         | 0.5073891625615764   |
| hendrycksTest-high_school_computer_science  | 0.71                 |
| hendrycksTest-high_school_european_history  | 0.8424242424242424   |
| hendrycksTest-high_school_geography         | 0.8787878787878788   |
| hendrycksTest-high_school_government_and_politics | 0.9326424870466321 |
| hendrycksTest-high_school_macroeconomics    | 0.717948717948718    |
| hendrycksTest-high_school_mathematics       | 0.2962962962962963   |
| hendrycksTest-high_school_microeconomics    | 0.7521008403361344   |
| hendrycksTest-high_school_physics           | 0.48344370860927155  |
| hendrycksTest-high_school_psychology        | 0.8788990825688073   |
| hendrycksTest-high_school_statistics        | 0.5277777777777778   |
| hendrycksTest-high_school_us_history        | 0.9019607843137255   |
| hendrycksTest-high_school_world_history     | 0.8776371308016878   |
| hendrycksTest-human_aging                   | 0.7802690582959642   |
| hendrycksTest-human_sexuality               | 0.8244274809160306   |
| hendrycksTest-international_law             | 0.8677685950413223   |
| hendrycksTest-jurisprudence                 | 0.8148148148148148   |
| hendrycksTest-logical_fallacies             | 0.7914110429447853   |
| hendrycksTest-machine_learning              | 0.5357142857142857   |
| hendrycksTest-management                    | 0.8543689320388349   |
| hendrycksTest-marketing                     | 0.8974358974358975   |
| hendrycksTest-medical_genetics              | 0.73                 |
| hendrycksTest-miscellaneous                 | 0.8569604086845466   |
| hendrycksTest-moral_disputes                | 0.7687861271676301   |
| hendrycksTest-moral_scenarios               | 0.5184357541899441   |
| hendrycksTest-nutrition                     | 0.7679738562091504   |
| hendrycksTest-philosophy                    | 0.7620578778135049   |
| hendrycksTest-prehistory                    | 0.8271604938271605   |
| hendrycksTest-professional_accounting       | 0.5390070921985816   |
| hendrycksTest-professional_law              | 0.5743155149934811   |
| hendrycksTest-professional_medicine         | 0.6911764705882353   |
| hendrycksTest-professional_psychology       | 0.7565359477124183   |
| hendrycksTest-public_relations              | 0.7272727272727273   |
| hendrycksTest-security_studies              | 0.8                  |
| hendrycksTest-sociology                     | 0.8507462686567164   |
| hendrycksTest-us_foreign_policy             | 0.89                 |
| hendrycksTest-virology                      | 0.5542168674698795   |
| hendrycksTest-world_religions               | 0.8596491228070176   |
| truthfulqa                                  | 0.4712300987333333   |
| winogrande                                  | 0.8476716653512234   |
| gsm8k                                       | 0.5382865807429871   |





## Citations

```
@misc{open-llm-leaderboard,
  author = {Edward Beeching and Clémentine Fourrier and Nathan Habib and Sheon Han and Nathan Lambert and Nazneen Rajani and Omar Sanseviero and Lewis Tunstall and Thomas Wolf},
  title = {Open LLM Leaderboard},
  year = {2023},
  publisher = {Hugging Face},
  howpublished = "\url{https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard}"
}
```
```
@software{eval-harness,
  author       = {Gao, Leo and
                  Tow, Jonathan and
                  Biderman, Stella and
                  Black, Sid and
                  DiPofi, Anthony and
                  Foster, Charles and
                  Golding, Laurence and
                  Hsu, Jeffrey and
                  McDonell, Kyle and
                  Muennighoff, Niklas and
                  Phang, Jason and
                  Reynolds, Laria and
                  Tang, Eric and
                  Thite, Anish and
                  Wang, Ben and
                  Wang, Kevin and
                  Zou, Andy},
  title        = {A framework for few-shot language model evaluation},
  month        = sep,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {v0.0.1},
  doi          = {10.5281/zenodo.5371628},
  url          = {https://doi.org/10.5281/zenodo.5371628}
}
```
```
@misc{clark2018think,
      title={Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge},
      author={Peter Clark and Isaac Cowhey and Oren Etzioni and Tushar Khot and Ashish Sabharwal and Carissa Schoenick and Oyvind Tafjord},
      year={2018},
      eprint={1803.05457},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}
```
```
@misc{zellers2019hellaswag,
      title={HellaSwag: Can a Machine Really Finish Your Sentence?},
      author={Rowan Zellers and Ari Holtzman and Yonatan Bisk and Ali Farhadi and Yejin Choi},
      year={2019},
      eprint={1905.07830},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
```
```
@misc{hendrycks2021measuring,
      title={Measuring Massive Multitask Language Understanding},
      author={Dan Hendrycks and Collin Burns and Steven Basart and Andy Zou and Mantas Mazeika and Dawn Song and Jacob Steinhardt},
      year={2021},
      eprint={2009.03300},
      archivePrefix={arXiv},
      primaryClass={cs.CY}
}
```
```
@misc{lin2022truthfulqa,
      title={TruthfulQA: Measuring How Models Mimic Human Falsehoods},
      author={Stephanie Lin and Jacob Hilton and Owain Evans},
      year={2022},
      eprint={2109.07958},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
```
```
@misc{DBLP:journals/corr/abs-1907-10641,
      title={{WINOGRANDE:} An Adversarial Winograd Schema Challenge at Scale},
      author={Keisuke Sakaguchi and Ronan Le Bras and Chandra Bhagavatula and Yejin Choi},
      year={2019},
      eprint={1907.10641},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
```
```
@misc{DBLP:journals/corr/abs-2110-14168,
      title={Training Verifiers to Solve Math Word Problems},
      author={Karl Cobbe and
                  Vineet Kosaraju and
                  Mohammad Bavarian and
                  Mark Chen and
                  Heewoo Jun and
                  Lukasz Kaiser and
                  Matthias Plappert and
                  Jerry Tworek and
                  Jacob Hilton and
                  Reiichiro Nakano and
                  Christopher Hesse and
                  John Schulman},
      year={2021},
      eprint={2110.14168},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
```


# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_ibivibiv__strix-rufipes-70b)

|             Metric              |Value|
|---------------------------------|----:|
|Avg.                             |70.61|
|AI2 Reasoning Challenge (25-Shot)|71.33|
|HellaSwag (10-Shot)              |87.86|
|MMLU (5-Shot)                    |69.13|
|TruthfulQA (0-shot)              |56.72|
|Winogrande (5-shot)              |84.77|
|GSM8k (5-shot)                   |53.83|