hamishivi commited on
Commit
e8fec24
1 Parent(s): 809ef1c

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - OpenAssistant/oasst1
4
+ language:
5
+ - en
6
+ ---
7
+
8
+ # Open-Instruct Open Assistant 7B
9
+
10
+ This model is a 7B LLaMa model finetuned on the Open Assistant dataset. *Please note this is a model diff - see below for usage instructions*.
11
+
12
+ This was trained as part of the paper [How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources](https://arxiv.org/abs/2306.04751).
13
+ The codebase used to train and evaluate this model can be found at [https://github.com/allenai/open-instruct](https://github.com/allenai/open-instruct).
14
+
15
+ This model is licensed under the AI model license given in LICENSE.txt along with the original Llama license (llama_license.txt).
16
+
17
+ ## Usage
18
+
19
+ We assume you have access to a LLaMa model in HF format already. You can find details on getting access and converting the model here:
20
+ [https://huggingface.co/docs/transformers/main/model_doc/llama](https://huggingface.co/docs/transformers/main/model_doc/llama)
21
+
22
+ Clone [https://github.com/allenai/open-instruct](https://github.com/allenai/open-instruct) and install the required dependencies, or just copy `scripts/weight_diff.py`
23
+ and install the minimal requirements listed in `weight-diff-requirements.txt`. Then download or clone this model diff to the same machine.
24
+
25
+ Then, run:
26
+ ```bash
27
+ python scripts/weight_diff.py recover --path_raw ${hf_llama_path} --path_tuned ${output_path} --path_diff ${diff_location}
28
+ ```
29
+
30
+ And you will have a recovered model! Note this takes up a decent amount of RAM, especially for the larger models.
31
+
32
+ ## Input Format
33
+
34
+ The model is trained to use the following format (note the newlines):
35
+ ```
36
+ <|user|>
37
+ Your message here!
38
+ <|assistant|>
39
+ ```
40
+
41
+ For best results, format all inputs in this manner.
42
+
43
+ ## Performance
44
+
45
+ Here is the performance of this model across benchmarks explored in our paper [How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources](https://arxiv.org/abs/2306.04751):
46
+
47
+ | MMLU 0-shot | MMLU 5-shot | GSM Direct | GSM CoT | BBH Direct | BBH CoT | TydiQA Gold-Passage | TydiQA Closed-book | Codex-Eval Pass@1 | Codex-Eval Pass@10 | AlpacaFarm vs Davinci-003 | Average |
48
+ |:-----------:|:-----------:|:----------:|:-------:|:----------:|:-------:|:-------------------:|:------------------:|:-----------------:|:------------------:|:-------------------------:|---------|
49
+ | 32.9 | 29.7 | 6.0 | 6.5 | 20.4 | 29.5 | 26.8 | 7.8 | 10.1 | 20.4 | 47.8 | 23.8 |
50
+
51
+ If you use this model, please cite our work, the llama paper, and the original dataset:
52
+
53
+ ```
54
+ @misc{wang2023far,
55
+ title={How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources},
56
+ author={Yizhong Wang and Hamish Ivison and Pradeep Dasigi and Jack Hessel and Tushar Khot and Khyathi Raghavi Chandu and David Wadden and Kelsey MacMillan and Noah A. Smith and Iz Beltagy and Hannaneh Hajishirzi},
57
+ year={2023},
58
+ eprint={2306.04751},
59
+ archivePrefix={arXiv},
60
+ primaryClass={cs.CL}
61
+ }
62
+ ```
63
+
64
+ ```
65
+ @misc{touvron2023llama,
66
+ title={LLaMA: Open and Efficient Foundation Language Models},
67
+ author={Hugo Touvron and Thibaut Lavril and Gautier Izacard and Xavier Martinet and Marie-Anne Lachaux and Timothée Lacroix and Baptiste Rozière and Naman Goyal and Eric Hambro and Faisal Azhar and Aurelien Rodriguez and Armand Joulin and Edouard Grave and Guillaume Lample},
68
+ year={2023},
69
+ eprint={2302.13971},
70
+ archivePrefix={arXiv},
71
+ primaryClass={cs.CL}
72
+ }
73
+ ```
74
+
75
+ ```
76
+ @misc{köpf2023openassistant,
77
+ title={OpenAssistant Conversations -- Democratizing Large Language Model Alignment},
78
+ author={Andreas Köpf and Yannic Kilcher and Dimitri von Rütte and Sotiris Anagnostidis and Zhi-Rui Tam and Keith Stevens and Abdullah Barhoum and Nguyen Minh Duc and Oliver Stanley and Richárd Nagyfi and Shahul ES and Sameer Suri and David Glushkov and Arnav Dantuluri and Andrew Maguire and Christoph Schuhmann and Huu Nguyen and Alexander Mattick},
79
+ year={2023},
80
+ eprint={2304.07327},
81
+ archivePrefix={arXiv},
82
+ primaryClass={cs.CL}
83
+ }
84
+ ```