Text Generation
Transformers
PyTorch
English
llama
text-generation-inference
TheBloke commited on
Commit
b436cf9
1 Parent(s): 50bfc35

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +160 -2
README.md CHANGED
@@ -1,6 +1,12 @@
1
  ---
2
  inference: false
3
  license: other
 
 
 
 
 
 
4
  ---
5
 
6
  <!-- header start -->
@@ -58,6 +64,158 @@ Thank you to all my generous patrons and donaters!
58
 
59
  <!-- footer end -->
60
 
61
- # Original model card: Allen AI's Tulu 30B merged with Kaio Ken's SuperHOT 8K
62
 
63
- [tulu-30b](https://huggingface.co/allenai/tulu-30b) merged with kaiokendev's [33b SuperHOT 8k LoRA](https://huggingface.co/kaiokendev/superhot-30b-8k-no-rlhf-test), without quant. (Full FP16 model)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  inference: false
3
  license: other
4
+ datasets:
5
+ - databricks/databricks-dolly-15k
6
+ - OpenAssistant/oasst1
7
+ - sahil2801/CodeAlpaca-20k
8
+ language:
9
+ - en
10
  ---
11
 
12
  <!-- header start -->
 
64
 
65
  <!-- footer end -->
66
 
67
+ # Original model card: Kaio Ken's SuperHOT 30B 8K
68
 
69
+
70
+ ### SuperHOT Prototype 2 w/ 8K Context
71
+
72
+ This is a second prototype of SuperHOT, this time 30B with 8K context and no RLHF, using the same technique described in [the github blog](https://kaiokendev.github.io/til#extending-context-to-8k).
73
+ Tests have shown that the model does indeed leverage the extended context at 8K.
74
+
75
+ You will need to **use either the monkeypatch** or, if you are already using the monkeypatch, **change the scaling factor to 0.25 and the maximum sequence length to 8192**
76
+
77
+ #### Looking for Merged & Quantized Models?
78
+ - 30B 4-bit CUDA: [tmpupload/superhot-30b-8k-4bit-safetensors](https://huggingface.co/tmpupload/superhot-30b-8k-4bit-safetensors)
79
+ - 30B 4-bit CUDA 128g: [tmpupload/superhot-30b-8k-4bit-128g-safetensors](https://huggingface.co/tmpupload/superhot-30b-8k-4bit-128g-safetensors)
80
+
81
+
82
+ #### Training Details
83
+ I trained the LoRA with the following configuration:
84
+ - 1200 samples (~400 samples over 2048 sequence length)
85
+ - learning rate of 3e-4
86
+ - 3 epochs
87
+ - The exported modules are:
88
+ - q_proj
89
+ - k_proj
90
+ - v_proj
91
+ - o_proj
92
+ - no bias
93
+ - Rank = 4
94
+ - Alpha = 8
95
+ - no dropout
96
+ - weight decay of 0.1
97
+ - AdamW beta1 of 0.9 and beta2 0.99, epsilon of 1e-5
98
+ - Trained on 4-bit base model
99
+
100
+ # Original model card: Allen AI's Tulu 30B
101
+
102
+
103
+ # Tulu 30B
104
+
105
+ This model is a 30B LLaMa model finetuned on a mixture of instruction datasets (FLAN V2, CoT, Dolly, Open Assistant 1, GPT4-Alpaca, Code-Alpaca, and ShareGPT).
106
+ *Please note this is a model diff - see below for usage instructions*.
107
+
108
+ 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).
109
+ 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).
110
+
111
+ This model is licensed under the AI model license given in LICENSE.txt along with the original Llama license (llama_license.txt).
112
+
113
+ ## Usage
114
+
115
+ 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:
116
+ [https://huggingface.co/docs/transformers/main/model_doc/llama](https://huggingface.co/docs/transformers/main/model_doc/llama)
117
+
118
+ 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`
119
+ and install the minimal requirements listed in `weight-diff-requirements.txt`. Then download or clone this model diff to the same machine.
120
+
121
+ Then, run:
122
+ ```bash
123
+ python scripts/weight_diff.py recover --path_raw ${hf_llama_path} --path_tuned ${output_path} --path_diff ${diff_location}
124
+ ```
125
+
126
+ And you will have a recovered model! Note this takes up a decent amount of RAM, especially for the larger models.
127
+
128
+ ## Input Format
129
+
130
+ The model is trained to use the following format (note the newlines):
131
+ ```
132
+ <|user|>
133
+ Your message here!
134
+ <|assistant|>
135
+ ```
136
+
137
+ For best results, format all inputs in this manner. **Make sure to include a newline after `<|assistant|>`, this can affect generation quality quite a bit.**
138
+
139
+ ## Performance
140
+
141
+ 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):
142
+
143
+ | 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 |
144
+ |:-----------:|:-----------:|:----------:|:-------:|:----------:|:-------:|:-------------------:|:------------------:|:-----------------:|:------------------:|:-------------------------:|---------|
145
+ | 57.7 | 58.4 | 6.0 | 51.0 | 45.8 | 48.7 | 58.2 | 12.3 | 25.4 | 46.0 | 63.5 | 44.7 |
146
+
147
+ If you use this model, please cite our work, the llama paper, and the original datasets:
148
+
149
+ ```
150
+ @misc{wang2023far,
151
+ title={How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources},
152
+ 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},
153
+ year={2023},
154
+ eprint={2306.04751},
155
+ archivePrefix={arXiv},
156
+ primaryClass={cs.CL}
157
+ }
158
+ ```
159
+
160
+ ```
161
+ @misc{touvron2023llama,
162
+ title={LLaMA: Open and Efficient Foundation Language Models},
163
+ 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},
164
+ year={2023},
165
+ eprint={2302.13971},
166
+ archivePrefix={arXiv},
167
+ primaryClass={cs.CL}
168
+ }
169
+ ```
170
+
171
+ ```
172
+ @misc{dolly,
173
+ author = {Databricks},
174
+ title = {Free Dolly: Introducing the World's First Truly Open Instruction-Tuned LLM},
175
+ year = {2023},
176
+ publisher = {GitHub},
177
+ journal = {GitHub repository},
178
+ howpublished = {Blog post},
179
+ url = {https://www.databricks.com/blog/2023/04/12/dolly-first-open-commercially-viable-instruction-tuned-llm}
180
+ }
181
+ ```
182
+
183
+ ```
184
+ @article{longpre2023flan,
185
+ title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning},
186
+ author={Longpre, Shayne and Hou, Le and Vu, Tu and Webson, Albert and Chung, Hyung Won and Tay, Yi and Zhou, Denny and Le, Quoc V and Zoph, Barret and Wei, Jason and others},
187
+ journal={arXiv preprint arXiv:2301.13688},
188
+ year={2023}
189
+ }
190
+ ```
191
+
192
+ ```
193
+ @misc{köpf2023openassistant,
194
+ title={OpenAssistant Conversations -- Democratizing Large Language Model Alignment},
195
+ 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},
196
+ year={2023},
197
+ eprint={2304.07327},
198
+ archivePrefix={arXiv},
199
+ primaryClass={cs.CL}
200
+ }
201
+ ```
202
+
203
+ ```
204
+ @article{peng2023instruction,
205
+ title={Instruction Tuning with GPT-4},
206
+ author={Peng, Baolin and Li, Chunyuan and He, Pengcheng and Galley, Michel and Gao, Jianfeng},
207
+ journal={arXiv preprint arXiv:2304.03277},
208
+ year={2023}
209
+ }
210
+ ```
211
+
212
+ ```
213
+ @misc{codealpaca,
214
+ author = {Sahil Chaudhary},
215
+ title = {Code Alpaca: An Instruction-following LLaMA model for code generation},
216
+ year = {2023},
217
+ publisher = {GitHub},
218
+ journal = {GitHub repository},
219
+ howpublished = {\url{https://github.com/sahil280114/codealpaca}},
220
+ }
221
+ ```