Composer
MosaicML
llm-foundry
ggml
Green-Sky commited on
Commit
b448936
1 Parent(s): 71b07ce

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - Composer
5
+ - MosaicML
6
+ - llm-foundry
7
+ - ggml
8
+ datasets:
9
+ - the_pile_books3
10
+ inference: false
11
+ ---
12
+
13
+ # MPT-7B-StoryWriter-65k+ GGML files
14
+
15
+ Model files converted to ggml
16
+
17
+
18
+ # Original model card:
19
+
20
+ ## MPT-7B-StoryWriter-65k+
21
+
22
+ MPT-7B-StoryWriter-65k+ is a model designed to read and write fictional stories with super long context lengths.
23
+ It was built by finetuning MPT-7B with a context length of 65k tokens on a filtered fiction subset of the [books3 dataset](https://huggingface.co/datasets/the_pile_books3).
24
+ At inference time, thanks to [ALiBi](https://arxiv.org/abs/2108.12409), MPT-7B-StoryWriter-65k+ can extrapolate even beyond 65k tokens.
25
+ We demonstrate generations as long as 84k tokens on a single node of 8 A100-80GB GPUs in our [blogpost](https://www.mosaicml.com/blog/mpt-7b).
26
+ * License: Apache 2.0
27
+ * [Demo on Hugging Face Spaces](https://huggingface.co/spaces/mosaicml/mpt-7b-storywriter)
28
+
29
+ This model was trained by [MosaicML](https://www.mosaicml.com) and follows a modified decoder-only transformer architecture.
30
+
31
+ ### Model Date
32
+
33
+ May 5, 2023
34
+
35
+ ### Model License
36
+
37
+ Apache 2.0
38
+
39
+
40
+ ### Model Description
41
+
42
+ The architecture is a modification of a standard decoder-only transformer.
43
+
44
+ The model has been modified from a standard transformer in the following ways:
45
+ * It uses [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf)
46
+ * It uses [ALiBi (Attention with Linear Biases)](https://arxiv.org/abs/2108.12409) and does not use positional embeddings
47
+ * It does not use biases
48
+
49
+
50
+ | Hyperparameter | Value |
51
+ |----------------|-------|
52
+ |n_parameters | 6.7B |
53
+ |n_layers | 32 |
54
+ | n_heads | 32 |
55
+ | d_model | 4096 |
56
+ | vocab size | 50432 |
57
+ | sequence length | **65536** |
58
+
59
+ ### PreTraining Data
60
+
61
+ For more details on the pretraining process, see [MPT-7B](https://huggingface.co/mosaicml/mpt-7b).
62
+
63
+ The data was tokenized using the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer.
64
+
65
+ #### Training Configuration
66
+
67
+ This model was trained on 8 A100-80GBs for about 2 days using the [MosaicML Platform](https://www.mosaicml.com/platform).
68
+ The model was trained with sharded data parallelism using [FSDP](https://pytorch.org/docs/stable/fsdp.html) and used the [LION](https://arxiv.org/abs/2302.06675) optimizer.
69
+
70
+ ### Limitations and Biases
71
+
72
+ _The following language is modified from [EleutherAI's GPT-NeoX-20B](https://huggingface.co/EleutherAI/gpt-neox-20b)_
73
+
74
+ MPT-7B-StoryWriter can produce factually incorrect output, and should not be relied on to produce factually accurate information.
75
+ MPT-7B-StoryWriter was trained on various public datasets.
76
+ 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.
77
+
78
+
79
+ ### Acknowledgements
80
+
81
+ This model was finetuned by Alex Trott and the MosaicML NLP team
82
+
83
+ ### MosaicML Platform
84
+
85
+ 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-7b).
86
+
87
+ ### Disclaimer
88
+
89
+ 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 cosult an attorney before using this model for commercial purposes.
90
+
91
+
92
+ ### Citation
93
+
94
+ Please cite this model using the following format:
95
+
96
+ ```
97
+ @online{MosaicML2023Introducing,
98
+ author = {MosaicML NLP Team},
99
+ title = {Introducing MPT-7B: A New Standard for Open-Source, Commercially Usable LLMs},
100
+ year = {2023},
101
+ url = {www.mosaicml.com/blog/mpt-7b},
102
+ note = {Accessed: 2023-03-28}, % change this date
103
+ urldate = {2023-03-28} % change this date
104
+ }
105
+ ```