hamishivi commited on
Commit
940286a
1 Parent(s): f94a760

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - mrm8488/unnatural-instructions
4
+ language:
5
+ - en
6
+ ---
7
+
8
+ # Open-Instruct Unnatural Instructions 13B
9
+
10
+ This model is a 13B LLaMa model finetuned on the Unnatural Instructions 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
+ ## Usage
17
+ 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:
18
+ [https://huggingface.co/docs/transformers/main/model_doc/llama](https://huggingface.co/docs/transformers/main/model_doc/llama)
19
+ 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`
20
+ and install the minimal requirements listed in `weight-diff-requirements.txt`. Then download or clone this model diff to the same machine.
21
+
22
+ Then, run:
23
+ ```bash
24
+ python scripts/weight_diff.py recover --path_raw ${hf_llama_path} --path_tuned ${output_path} --path_diff ${diff_location}
25
+ ```
26
+
27
+ And you will have a recovered model! Note this takes up a decent amount of RAM, especially for the larger models.
28
+
29
+ ## Input Format
30
+
31
+ The model is trained to use the following format (note the newlines):
32
+ ```
33
+ <|user|>
34
+ Your message here!
35
+ <|assistant|>
36
+ ```
37
+
38
+ For best results, format all inputs in this manner.
39
+
40
+ ## Performance
41
+
42
+ 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):
43
+
44
+ | 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 |
45
+ |:-----------:|:-----------:|:----------:|:-------:|:----------:|:-------:|:-------------------:|:------------------:|:-----------------:|:------------------:|:-------------------------:|---------|
46
+ | 46.2 | 45.7 | 5.0 | 7.5 | 37.6 | 32.8 | 39.3 | 9.1 | 13.9 | 24.8 | 10.9 | 23.6 |
47
+
48
+ If you use this model, please cite our work, the llama paper, and the original dataset:
49
+
50
+ ```
51
+ @misc{wang2023far,
52
+ title={How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources},
53
+ 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},
54
+ year={2023},
55
+ eprint={2306.04751},
56
+ archivePrefix={arXiv},
57
+ primaryClass={cs.CL}
58
+ }
59
+ ```
60
+
61
+ ```
62
+ @misc{touvron2023llama,
63
+ title={LLaMA: Open and Efficient Foundation Language Models},
64
+ 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},
65
+ year={2023},
66
+ eprint={2302.13971},
67
+ archivePrefix={arXiv},
68
+ primaryClass={cs.CL}
69
+ }
70
+ ```
71
+
72
+ ```
73
+ @misc{honovich2022unnatural,
74
+ title = {Unnatural Instructions: Tuning Language Models with (Almost) No Human Labor},
75
+ author = {Honovich, Or and Scialom, Thomas and Levy, Omer and Schick, Timo},
76
+ url = {https://arxiv.org/abs/2212.09689},
77
+ publisher = {arXiv},
78
+ year={2022}
79
+ }
80
+ ```