Initial GGML model commit
Browse files
README.md
ADDED
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
inference: false
|
3 |
+
license: other
|
4 |
+
---
|
5 |
+
|
6 |
+
<!-- header start -->
|
7 |
+
<div style="width: 100%;">
|
8 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
9 |
+
</div>
|
10 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
11 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
12 |
+
<p><a href="https://discord.gg/Jq4vkcDakD">Chat & support: my new Discord server</a></p>
|
13 |
+
</div>
|
14 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
15 |
+
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
16 |
+
</div>
|
17 |
+
</div>
|
18 |
+
<!-- header end -->
|
19 |
+
|
20 |
+
# MosaicML's MPT-30B-Instruct GGML
|
21 |
+
|
22 |
+
These files are GGML format model files for [MosaicML's MPT-30B-Instruct](https://huggingface.co/mosaicml/mpt-30b-instruct).
|
23 |
+
|
24 |
+
GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/ggerganov/llama.cpp) and libraries and UIs which support this format, such as:
|
25 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
|
26 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp)
|
27 |
+
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
|
28 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python)
|
29 |
+
* [ctransformers](https://github.com/marella/ctransformers)
|
30 |
+
|
31 |
+
## Repositories available
|
32 |
+
|
33 |
+
* [4-bit GPTQ models for GPU inference](https://huggingface.co/none)
|
34 |
+
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/mpt-30B-instruct-GGML)
|
35 |
+
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/mosaicml/mpt-30b-instruct)
|
36 |
+
|
37 |
+
<!-- compatibility_ggml start -->
|
38 |
+
## Compatibility
|
39 |
+
|
40 |
+
### Original llama.cpp quant methods: `q4_0, q4_1, q5_0, q5_1, q8_0`
|
41 |
+
|
42 |
+
I have quantized these 'original' quantisation methods using an older version of llama.cpp so that they remain compatible with llama.cpp as of May 19th, commit `2d5db48`.
|
43 |
+
|
44 |
+
These are guaranteed to be compatbile with any UIs, tools and libraries released since late May.
|
45 |
+
|
46 |
+
### New k-quant methods: `q2_K, q3_K_S, q3_K_M, q3_K_L, q4_K_S, q4_K_M, q5_K_S, q6_K`
|
47 |
+
|
48 |
+
These new quantisation methods are compatible with llama.cpp as of June 6th, commit `2d43387`.
|
49 |
+
|
50 |
+
They are now also compatible with recent releases of text-generation-webui, KoboldCpp, llama-cpp-python and ctransformers. Other tools and libraries may or may not be compatible - check their documentation if in doubt.
|
51 |
+
|
52 |
+
## Explanation of the new k-quant methods
|
53 |
+
|
54 |
+
The new methods available are:
|
55 |
+
* GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
|
56 |
+
* GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
|
57 |
+
* GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
|
58 |
+
* GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
|
59 |
+
* GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
|
60 |
+
* GGML_TYPE_Q8_K - "type-0" 8-bit quantization. Only used for quantizing intermediate results. The difference to the existing Q8_0 is that the block size is 256. All 2-6 bit dot products are implemented for this quantization type.
|
61 |
+
|
62 |
+
Refer to the Provided Files table below to see what files use which methods, and how.
|
63 |
+
<!-- compatibility_ggml end -->
|
64 |
+
|
65 |
+
## Provided files
|
66 |
+
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
67 |
+
| ---- | ---- | ---- | ---- | ---- | ----- |
|
68 |
+
| mpt-30b-instruct.ggmlv0.q4_0.bin | q4_0 | 4 | 16.85 GB | 19.35 GB | Original llama.cpp quant method, 4-bit. |
|
69 |
+
| mpt-30b-instruct.ggmlv0.q4_1.bin | q4_1 | 4 | 18.73 GB | 21.23 GB | Original llama.cpp quant method, 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
|
70 |
+
| mpt-30b-instruct.ggmlv0.q5_0.bin | q5_0 | 5 | 20.60 GB | 23.10 GB | Original llama.cpp quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
|
71 |
+
| mpt-30b-instruct.ggmlv0.q5_1.bin | q5_1 | 5 | 22.47 GB | 24.97 GB | Original llama.cpp quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
|
72 |
+
| mpt-30b-instruct.ggmlv0.q8_0.bin | q8_0 | 8 | 31.83 GB | 34.33 GB | Original llama.cpp quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
|
73 |
+
|
74 |
+
**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
75 |
+
|
76 |
+
## How to run in `llama.cpp`
|
77 |
+
|
78 |
+
I use the following command line; adjust for your tastes and needs:
|
79 |
+
|
80 |
+
```
|
81 |
+
./main -t 10 -ngl 32 -m mpt-30b-instruct.ggmlv3.q5_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
|
82 |
+
```
|
83 |
+
If you're able to use full GPU offloading, you should use `-t 1` to get best performance.
|
84 |
+
|
85 |
+
If not able to fully offload to GPU, you should use more cores. Change `-t 10` to the number of physical CPU cores you have, or a lower number depending on what gives best performance.
|
86 |
+
|
87 |
+
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
88 |
+
|
89 |
+
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
90 |
+
|
91 |
+
## How to run in `text-generation-webui`
|
92 |
+
|
93 |
+
Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
|
94 |
+
|
95 |
+
<!-- footer start -->
|
96 |
+
## Discord
|
97 |
+
|
98 |
+
For further support, and discussions on these models and AI in general, join us at:
|
99 |
+
|
100 |
+
[TheBloke AI's Discord server](https://discord.gg/Jq4vkcDakD)
|
101 |
+
|
102 |
+
## Thanks, and how to contribute.
|
103 |
+
|
104 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
105 |
+
|
106 |
+
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
|
107 |
+
|
108 |
+
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
|
109 |
+
|
110 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
111 |
+
|
112 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
113 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
114 |
+
|
115 |
+
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz, Dmitriy Samsonov.
|
116 |
+
|
117 |
+
**Patreon special mentions**: Mano Prime, Fen Risland, Derek Yates, Preetika Verma, webtim, Sean Connelly, Alps Aficionado, Karl Bernard, Junyu Yang, Nathan LeClaire, Chris McCloskey, Lone Striker, Asp the Wyvern, Eugene Pentland, Imad Khwaja, trip7s trip, WelcomeToTheClub, John Detwiler, Artur Olbinski, Khalefa Al-Ahmad, Trenton Dambrowitz, Talal Aujan, Kevin Schuppel, Luke Pendergrass, Pyrater, Joseph William Delisle, terasurfer , vamX, Gabriel Puliatti, David Flickinger, Jonathan Leane, Iucharbius , Luke, Deep Realms, Cory Kujawski, ya boyyy, Illia Dulskyi, senxiiz, Johann-Peter Hartmann, John Villwock, K, Ghost , Spiking Neurons AB, Nikolai Manek, Rainer Wilmers, Pierre Kircher, biorpg, Space Cruiser, Ai Maven, subjectnull, Willem Michiel, Ajan Kanaga, Kalila, chris gileta, Oscar Rangel.
|
118 |
+
|
119 |
+
Thank you to all my generous patrons and donaters!
|
120 |
+
|
121 |
+
<!-- footer end -->
|
122 |
+
|
123 |
+
# Original model card: MosaicML's MPT-30B-Instruct
|
124 |
+
|
125 |
+
|
126 |
+
# MPT-30B-Instruct
|
127 |
+
|
128 |
+
MPT-30B-Instruct is a model for short-form instruction following.
|
129 |
+
It is built by finetuning [MPT-30B](https://huggingface.co/mosaicml/mpt-30b) on [Dolly HHRLHF](https://huggingface.co/datasets/mosaicml/dolly_hhrlhf) derived from the [Databricks Dolly-15k](https://huggingface.co/datasets/databricks/databricks-dolly-15k) and the [Anthropic Helpful and Harmless (HH-RLHF)](https://huggingface.co/datasets/Anthropic/hh-rlhf) datasets. It is also trained on [Competition Math](https://huggingface.co/datasets/competition_math), [Duorc](https://huggingface.co/datasets/duorc), [CoT GSM8k](https://huggingface.co/datasets/conceptofmind/cot_submix_original), [Qasper](https://huggingface.co/datasets/allenai/qasper), [Quality](https://huggingface.co/datasets/emozilla/quality), [Summ Screen FD](https://huggingface.co/datasets/tau/scrolls) and [Spider](https://huggingface.co/datasets/spider).
|
130 |
+
* License: _CC-By-SA-3.0_
|
131 |
+
|
132 |
+
|
133 |
+
This model was trained by [MosaicML](https://www.mosaicml.com) and follows a modified decoder-only transformer architecture.
|
134 |
+
|
135 |
+
## Model Date
|
136 |
+
|
137 |
+
June 22, 2023
|
138 |
+
|
139 |
+
## Model License
|
140 |
+
|
141 |
+
CC-By-SA-3.0
|
142 |
+
|
143 |
+
## Documentation
|
144 |
+
|
145 |
+
* [Blog post: Raising the bar for open-source foundation models](https://www.mosaicml.com/blog/mpt-30b)
|
146 |
+
* [Codebase (mosaicml/llm-foundry repo)](https://github.com/mosaicml/llm-foundry/)
|
147 |
+
* Questions: Feel free to contact us via the [MosaicML Community Slack](https://mosaicml.me/slack)!
|
148 |
+
|
149 |
+
### Example Question/Instruction
|
150 |
+
|
151 |
+
**Bespokenizer46**
|
152 |
+
> I need to convince my friend, Phyllis, that she should train a custom LLM for her Fortune 500 company using the MosaicML Platform.
|
153 |
+
> Please write an email that explains why MosaicML's emphasis on cutting edge methodology, data privacy, and efficiency are so important.
|
154 |
+
> End the email with a friendly inquiry about Phyllis's family.
|
155 |
+
|
156 |
+
**MPT-30B-Instruct**:
|
157 |
+
> Phyllis -
|
158 |
+
> I know you're always looking for ways to improve efficiency at work and I think I've found a solution that you'll be very interested in.
|
159 |
+
> LLMs are only as good as the data they're trained on and the training process can be very time consuming and resource intensive. MosaicML uses cutting edge methodology to efficiently train high quality models without compromising data privacy.
|
160 |
+
> They also provide tools to easily connect to and use the model in your daily workflow.
|
161 |
+
> I think you'd really enjoy speaking with their founder, we can set up a call if you're interested.
|
162 |
+
> Also, I know it's been a tough year for your family, how are things?
|
163 |
+
|
164 |
+
> Best,
|
165 |
+
> Your Friend
|
166 |
+
|
167 |
+
## How to Use
|
168 |
+
|
169 |
+
Note: This model requires that `trust_remote_code=True` be passed to the `from_pretrained` method. This is because we use a custom model architecture that is not yet part of the `transformers` package.
|
170 |
+
|
171 |
+
It includes options for many training efficiency features such as [FlashAttention (Dao et al. 2022)](https://arxiv.org/pdf/2205.14135.pdf), [ALiBi](https://arxiv.org/abs/2108.12409), QK LayerNorm, and more.
|
172 |
+
|
173 |
+
```python
|
174 |
+
import transformers
|
175 |
+
model = transformers.AutoModelForCausalLM.from_pretrained(
|
176 |
+
'mosaicml/mpt-30b-instruct',
|
177 |
+
trust_remote_code=True
|
178 |
+
)
|
179 |
+
```
|
180 |
+
|
181 |
+
To use the optimized [triton implementation](https://github.com/openai/triton) of FlashAttention, you can load the model on GPU (`cuda:0`) with `attn_impl='triton'` and with `bfloat16` precision:
|
182 |
+
```python
|
183 |
+
import torch
|
184 |
+
import transformers
|
185 |
+
|
186 |
+
name = 'mosaicml/mpt-30b-instruct'
|
187 |
+
|
188 |
+
config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True)
|
189 |
+
config.attn_config['attn_impl'] = 'triton' # change this to use triton-based FlashAttention
|
190 |
+
config.init_device = 'cuda:0' # For fast initialization directly on GPU!
|
191 |
+
|
192 |
+
model = transformers.AutoModelForCausalLM.from_pretrained(
|
193 |
+
name,
|
194 |
+
config=config,
|
195 |
+
torch_dtype=torch.bfloat16, # Load model weights in bfloat16
|
196 |
+
trust_remote_code=True
|
197 |
+
)
|
198 |
+
```
|
199 |
+
|
200 |
+
The model was trained initially on a sequence length of 2048. An additional pre-training phase was included for sequence length adaptation to 8192. However, ALiBi further enables users to increase the maximum sequence length during finetuning and/or inference. For example:
|
201 |
+
|
202 |
+
```python
|
203 |
+
import transformers
|
204 |
+
|
205 |
+
name = 'mosaicml/mpt-30b-instruct'
|
206 |
+
|
207 |
+
config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True)
|
208 |
+
config.max_seq_len = 16384 # (input + output) tokens can now be up to 16384
|
209 |
+
|
210 |
+
model = transformers.AutoModelForCausalLM.from_pretrained(
|
211 |
+
name,
|
212 |
+
config=config,
|
213 |
+
trust_remote_code=True
|
214 |
+
)
|
215 |
+
```
|
216 |
+
|
217 |
+
This model was trained with the MPT-30B tokenizer which is based on the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer and includes additional padding and eos tokens.
|
218 |
+
|
219 |
+
```python
|
220 |
+
from transformers import AutoTokenizer
|
221 |
+
tokenizer = AutoTokenizer.from_pretrained('mosaicml/mpt-30b')
|
222 |
+
```
|
223 |
+
|
224 |
+
The model can then be used, for example, within a text-generation pipeline.
|
225 |
+
Note: when running Torch modules in lower precision, it is best practice to use the [torch.autocast context manager](https://pytorch.org/docs/stable/amp.html).
|
226 |
+
|
227 |
+
```python
|
228 |
+
from transformers import pipeline
|
229 |
+
|
230 |
+
with torch.autocast('cuda', dtype=torch.bfloat16):
|
231 |
+
inputs = tokenizer('Here is a recipe for vegan banana bread:\n', return_tensors="pt").to('cuda')
|
232 |
+
outputs = model.generate(**inputs, max_new_tokens=100)
|
233 |
+
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
|
234 |
+
|
235 |
+
# or using the HF pipeline
|
236 |
+
pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0')
|
237 |
+
with torch.autocast('cuda', dtype=torch.bfloat16):
|
238 |
+
print(
|
239 |
+
pipe('Here is a recipe for vegan banana bread:\n',
|
240 |
+
max_new_tokens=100,
|
241 |
+
do_sample=True,
|
242 |
+
use_cache=True))
|
243 |
+
```
|
244 |
+
|
245 |
+
### Formatting
|
246 |
+
|
247 |
+
This model was trained on data formatted as follows:
|
248 |
+
|
249 |
+
```python
|
250 |
+
def format_prompt(instruction):
|
251 |
+
template = "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n###Instruction\n{instruction}\n\n### Response\n"
|
252 |
+
return template.format(instruction=instruction)
|
253 |
+
)
|
254 |
+
|
255 |
+
example = "Tell me a funny joke.\nDon't make it too funny though."
|
256 |
+
fmt_ex = format_prompt(instruction=example)
|
257 |
+
```
|
258 |
+
|
259 |
+
In the above example, `fmt_ex` is ready to be tokenized and sent through the model.
|
260 |
+
|
261 |
+
## Model Description
|
262 |
+
|
263 |
+
The architecture is a modification of a standard decoder-only transformer.
|
264 |
+
|
265 |
+
The model has been modified from a standard transformer in the following ways:
|
266 |
+
* It uses [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf)
|
267 |
+
* It uses [ALiBi (Attention with Linear Biases)](https://arxiv.org/abs/2108.12409) and does not use positional embeddings
|
268 |
+
* It does not use biases
|
269 |
+
|
270 |
+
|
271 |
+
| Hyperparameter | Value |
|
272 |
+
|----------------|-------|
|
273 |
+
|n_parameters | 29.95B |
|
274 |
+
|n_layers | 48 |
|
275 |
+
| n_heads | 64 |
|
276 |
+
| d_model | 7168 |
|
277 |
+
| vocab size | 50432 |
|
278 |
+
| sequence length | 8192 |
|
279 |
+
|
280 |
+
## Data Mix
|
281 |
+
|
282 |
+
The model was trained on the following data mix:
|
283 |
+
|
284 |
+
| Data Source | Number of Tokens in Source | Proportion |
|
285 |
+
|-------------|----------------------------|------------|
|
286 |
+
| competition_math | 1.6 M | 3.01% |
|
287 |
+
| cot_gsm8k | 3.36 M | 6.32% |
|
288 |
+
| dialogsum | 0.1 M | 0.19% |
|
289 |
+
| dolly_hhrlhf | 5.89 M | 11.07% |
|
290 |
+
| duorc | 8.2 M | 15.51% |
|
291 |
+
| qasper | 10.97 M | 20.63% |
|
292 |
+
| quality | 11.31 M | 21.28% |
|
293 |
+
| scrolls/summ_screen_fd | 11.56 M | 21.82% |
|
294 |
+
| spider | 0.089 M | 0.16% |
|
295 |
+
|
296 |
+
## PreTraining Data
|
297 |
+
|
298 |
+
For more details on the pretraining process, see [MPT-30B](https://huggingface.co/mosaicml/mpt-30b).
|
299 |
+
|
300 |
+
The data was tokenized using the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer.
|
301 |
+
|
302 |
+
### Training Configuration
|
303 |
+
|
304 |
+
This model was trained on 72 A100 40GB GPUs for 8 hours using the [MosaicML Platform](https://www.mosaicml.com/platform).
|
305 |
+
The model was trained with sharded data parallelism using [FSDP](https://pytorch.org/docs/stable/fsdp.html) and used the AdamW optimizer.
|
306 |
+
|
307 |
+
## Limitations and Biases
|
308 |
+
|
309 |
+
_The following language is modified from [EleutherAI's GPT-NeoX-20B](https://huggingface.co/EleutherAI/gpt-neox-20b)_
|
310 |
+
|
311 |
+
MPT-30B-Instruct can produce factually incorrect output, and should not be relied on to produce factually accurate information.
|
312 |
+
MPT-30B-Instruct was trained on various public datasets.
|
313 |
+
While great efforts have been taken to clean the pretraining data, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
|
314 |
+
|
315 |
+
|
316 |
+
## Acknowledgements
|
317 |
+
|
318 |
+
This model was finetuned by Sam Havens, Alex Trott, and the MosaicML NLP team
|
319 |
+
|
320 |
+
## MosaicML Platform
|
321 |
+
|
322 |
+
If you're interested in [training](https://www.mosaicml.com/training) and [deploying](https://www.mosaicml.com/inference) your own MPT or LLMs on the MosaicML Platform, [sign up here](https://forms.mosaicml.com/demo?utm_source=huggingface&utm_medium=referral&utm_campaign=mpt-30b).
|
323 |
+
|
324 |
+
## Disclaimer
|
325 |
+
|
326 |
+
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
|
327 |
+
|
328 |
+
## Citation
|
329 |
+
|
330 |
+
Please cite this model using the following format:
|
331 |
+
|
332 |
+
```
|
333 |
+
@online{MosaicML2023Introducing,
|
334 |
+
author = {MosaicML NLP Team},
|
335 |
+
title = {Introducing MPT-30B: Raising the bar
|
336 |
+
for open-source foundation models},
|
337 |
+
year = {2023},
|
338 |
+
url = {www.mosaicml.com/blog/mpt-30b},
|
339 |
+
note = {Accessed: 2023-06-22},
|
340 |
+
urldate = {2023-06-22}
|
341 |
+
}
|
342 |
+
```
|