GGUF
English
causal-lm
maddes8cht commited on
Commit
3b7325b
·
0 Parent(s):

Super-squash branch 'main' using huggingface_hub

Browse files
.gitattributes ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ stabilityai-stablelm-3b-4e1t-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ stabilityai-stablelm-3b-4e1t-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ stabilityai-stablelm-3b-4e1t-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ stabilityai-stablelm-3b-4e1t-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ stabilityai-stablelm-3b-4e1t-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
41
+ stabilityai-stablelm-3b-4e1t-Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
42
+ stabilityai-stablelm-3b-4e1t-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ stabilityai-stablelm-3b-4e1t-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ stabilityai-stablelm-3b-4e1t-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
45
+ stabilityai-stablelm-3b-4e1t-Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
46
+ stabilityai-stablelm-3b-4e1t-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ stabilityai-stablelm-3b-4e1t-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
48
+ stabilityai-stablelm-3b-4e1t-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ stabilityai-stablelm-3b-4e1t-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ datasets:
4
+ - tiiuae/falcon-refinedweb
5
+ - togethercomputer/RedPajama-Data-1T
6
+ - CarperAI/pilev2-dev
7
+ - bigcode/starcoderdata
8
+ - allenai/peS2o
9
+ language:
10
+ - en
11
+ tags:
12
+ - causal-lm
13
+ extra_gated_fields:
14
+ Name: text
15
+ Email: text
16
+ Country: text
17
+ Organization or Affiliation: text
18
+ I ALLOW Stability AI to email me about new model releases: checkbox
19
+ ---
20
+ [![banner](https://maddes8cht.github.io/assets/buttons/Huggingface-banner.jpg)]()
21
+
22
+ I'm constantly enhancing these model descriptions to provide you with the most relevant and comprehensive information
23
+
24
+ # stablelm-3b-4e1t - GGUF
25
+ - Model creator: [stabilityai](https://huggingface.co/stabilityai)
26
+ - Original model: [stablelm-3b-4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t)
27
+
28
+ # StableLM
29
+ This is a Model based on StableLM.
30
+ Stablelm is a familiy of Language Models by Stability AI.
31
+
32
+ ## Note:
33
+ Current (as of 2023-11-15) implementations of Llama.cpp only support GPU offloading up to 34 Layers with these StableLM Models.
34
+ The model will crash immediately if -ngl is larger than 34.
35
+ The model works fine however without any gpu acceleration.
36
+
37
+
38
+ ---
39
+ # Brief
40
+ This is the Base Model of Stable LM 3b by Stability AI.
41
+ It is licensed under Creative Commons [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/), as should all derivatives
42
+
43
+ ---
44
+
45
+
46
+
47
+ # About GGUF format
48
+
49
+ `gguf` is the current file format used by the [`ggml`](https://github.com/ggerganov/ggml) library.
50
+ A growing list of Software is using it and can therefore use this model.
51
+ The core project making use of the ggml library is the [llama.cpp](https://github.com/ggerganov/llama.cpp) project by Georgi Gerganov
52
+
53
+ # Quantization variants
54
+
55
+ There is a bunch of quantized files available to cater to your specific needs. Here's how to choose the best option for you:
56
+
57
+ # Legacy quants
58
+
59
+ Q4_0, Q4_1, Q5_0, Q5_1 and Q8 are `legacy` quantization types.
60
+ Nevertheless, they are fully supported, as there are several circumstances that cause certain model not to be compatible with the modern K-quants.
61
+ ## Note:
62
+ Now there's a new option to use K-quants even for previously 'incompatible' models, although this involves some fallback solution that makes them not *real* K-quants. More details can be found in affected model descriptions.
63
+ (This mainly refers to Falcon 7b and Starcoder models)
64
+
65
+ # K-quants
66
+
67
+ K-quants are designed with the idea that different levels of quantization in specific parts of the model can optimize performance, file size, and memory load.
68
+ So, if possible, use K-quants.
69
+ With a Q6_K, you'll likely find it challenging to discern a quality difference from the original model - ask your model two times the same question and you may encounter bigger quality differences.
70
+
71
+
72
+
73
+
74
+ ---
75
+
76
+ # Original Model Card:
77
+ # `StableLM-3B-4E1T`
78
+
79
+ ## Model Description
80
+
81
+ `StableLM-3B-4E1T` is a 3 billion parameter decoder-only language model pre-trained on 1 trillion tokens of diverse English and code datasets for 4 epochs.
82
+
83
+ ## Usage
84
+
85
+ Get started generating text with `StableLM-3B-4E1T` by using the following code snippet:
86
+
87
+ ```python
88
+ from transformers import AutoModelForCausalLM, AutoTokenizer
89
+ tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-3b-4e1t")
90
+ model = AutoModelForCausalLM.from_pretrained(
91
+ "stabilityai/stablelm-3b-4e1t",
92
+ trust_remote_code=True,
93
+ torch_dtype="auto",
94
+ )
95
+ model.cuda()
96
+ inputs = tokenizer("The weather is always wonderful", return_tensors="pt").to("cuda")
97
+ tokens = model.generate(
98
+ **inputs,
99
+ max_new_tokens=64,
100
+ temperature=0.75,
101
+ top_p=0.95,
102
+ do_sample=True,
103
+ )
104
+ print(tokenizer.decode(tokens[0], skip_special_tokens=True))
105
+ ```
106
+
107
+ ## Model Details
108
+
109
+ * **Developed by**: [Stability AI](https://stability.ai/)
110
+ * **Model type**: `StableLM-3B-4E1T` models are auto-regressive language models based on the transformer decoder architecture.
111
+ * **Language(s)**: English
112
+ * **Library**: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)
113
+ * **License**: Model checkpoints are licensed under the Creative Commons license ([CC BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)). Under this license, you must give [credit](https://creativecommons.org/licenses/by/4.0/#) to Stability AI, provide a link to the license, and [indicate if changes were made](https://creativecommons.org/licenses/by/4.0/#). You may do so in any reasonable manner, but not in any way that suggests the Stability AI endorses you or your use.
114
+ * **Contact**: For questions and comments about the model, please email `lm@stability.ai`
115
+
116
+ ### Model Architecture
117
+
118
+ The model is a decoder-only transformer similar to the LLaMA ([Touvron et al., 2023](https://arxiv.org/abs/2307.09288)) architecture with the following modifications:
119
+
120
+ | Parameters | Hidden Size | Layers | Heads | Sequence Length |
121
+ |----------------|-------------|--------|-------|-----------------|
122
+ | 2,795,443,200 | 2560 | 32 | 32 | 4096 |
123
+
124
+ * **Position Embeddings**: Rotary Position Embeddings ([Su et al., 2021](https://arxiv.org/abs/2104.09864)) applied to the first 25% of head embedding dimensions for improved throughput following [Black et al. (2022)](https://arxiv.org/pdf/2204.06745.pdf).
125
+ * **Normalization**: LayerNorm ([Ba et al., 2016](https://arxiv.org/abs/1607.06450)) with learned bias terms as opposed to RMSNorm ([Zhang & Sennrich, 2019](https://arxiv.org/abs/1910.07467)).
126
+ * **Tokenizer**: GPT-NeoX ([Black et al., 2022](https://arxiv.org/abs/2204.06745)).
127
+
128
+ ## Training
129
+
130
+ For complete dataset and training details, please see the [StableLM-3B-4E1T Technical Report](https://stability.wandb.io/stability-llm/stable-lm/reports/StableLM-3B-4E1T--VmlldzoyMjU4?accessToken=u3zujipenkx5g7rtcj9qojjgxpconyjktjkli2po09nffrffdhhchq045vp0wyfo).
131
+
132
+ ### Training Dataset
133
+
134
+ The dataset is comprised of a filtered mixture of open-source large-scale datasets available on the [HuggingFace Hub](https://huggingface.co/datasets): Falcon RefinedWeb extract ([Penedo et al., 2023](https://huggingface.co/datasets/tiiuae/falcon-refinedweb)), RedPajama-Data ([Together Computer., 2023](https://github.com/togethercomputer/RedPajama-Data)) and The Pile ([Gao et al., 2020](https://arxiv.org/abs/2101.00027)) both without the *Books3* subset, and StarCoder ([Li et al., 2023](https://arxiv.org/abs/2305.06161)).
135
+
136
+ * Given the large amount of web data, we recommend fine-tuning the base StableLM-3B-4E1T for your downstream tasks.
137
+
138
+ ### Training Procedure
139
+
140
+ The model is pre-trained on the aforementioned datasets in `bfloat16` precision, optimized with AdamW, and trained using the NeoX tokenizer with a vocabulary size of 50,257. We outline the complete hyperparameters choices in the project's [GitHub repository - config](https://github.com/Stability-AI/StableLM/blob/main/configs/stablelm-3b-4e1t.yml).
141
+
142
+ ### Training Infrastructure
143
+
144
+ * **Hardware**: `StableLM-3B-4E1T` was trained on the Stability AI cluster across 256 NVIDIA A100 40GB GPUs (AWS P4d instances). Training began on August 23, 2023, and took approximately 30 days to complete.
145
+
146
+ * **Software**: We use a fork of `gpt-neox` ([EleutherAI, 2021](https://github.com/EleutherAI/gpt-neox)), train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 ([Rajbhandari et al., 2019](https://arxiv.org/abs/1910.02054v3)), and rely on flash-attention as well as SwiGLU and Rotary Embedding kernels from FlashAttention-2 ([Dao et al., 2023](https://tridao.me/publications/flash2/flash2.pdf))
147
+
148
+ ## Use and Limitations
149
+
150
+ ### Intended Use
151
+
152
+ The model is intended to be used as a foundational base model for application-specific fine-tuning. Developers must evaluate and fine-tune the model for safe performance in downstream applications.
153
+
154
+ ### Limitations and Bias
155
+
156
+ As a base model, this model may exhibit unreliable, unsafe, or other undesirable behaviors that must be corrected through evaluation and fine-tuning prior to deployment. The pre-training dataset may have contained offensive or inappropriate content, even after applying data cleansing filters, which can be reflected in the model-generated text. We recommend that users exercise caution when using these models in production systems. Do not use the models if they are unsuitable for your application, or for any applications that may cause deliberate or unintentional harm to others.
157
+
158
+ ## How to Cite
159
+
160
+ ```bibtex
161
+ @misc{StableLM-3B-4E1T,
162
+ url={[https://huggingface.co/stabilityai/stablelm-3b-4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t)},
163
+ title={StableLM 3B 4E1T},
164
+ author={Tow, Jonathan and Bellagente, Marco and Mahan, Dakota and Riquelme, Carlos}
165
+ }
166
+ ```
167
+
168
+ ***End of original Model File***
169
+ ---
170
+
171
+
172
+ ## Please consider to support my work
173
+ **Coming Soon:** I'm in the process of launching a sponsorship/crowdfunding campaign for my work. I'm evaluating Kickstarter, Patreon, or the new GitHub Sponsors platform, and I am hoping for some support and contribution to the continued availability of these kind of models. Your support will enable me to provide even more valuable resources and maintain the models you rely on. Your patience and ongoing support are greatly appreciated as I work to make this page an even more valuable resource for the community.
174
+
175
+ <center>
176
+
177
+ [![GitHub](https://maddes8cht.github.io/assets/buttons/github-io-button.png)](https://maddes8cht.github.io)
178
+ [![Stack Exchange](https://stackexchange.com/users/flair/26485911.png)](https://stackexchange.com/users/26485911)
179
+ [![GitHub](https://maddes8cht.github.io/assets/buttons/github-button.png)](https://github.com/maddes8cht)
180
+ [![HuggingFace](https://maddes8cht.github.io/assets/buttons/huggingface-button.png)](https://huggingface.co/maddes8cht)
181
+ [![Twitter](https://maddes8cht.github.io/assets/buttons/twitter-button.png)](https://twitter.com/maddes1966)
182
+
183
+ </center>
stabilityai-stablelm-3b-4e1t-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3507d7cef2eaf9e2fb609f3e248c9e085a47ee8f93bc36293457fc455d858be
3
+ size 1608570848
stabilityai-stablelm-3b-4e1t-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95b0adb29fa2652cef7332bffefe030058c6628262874ec0472de4defef9867e
3
+ size 1708595168
stabilityai-stablelm-3b-4e1t-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfad8eea59e09347bad1d4e7214f61c9a90dec90bee497d3f782a26cce0acb2c
3
+ size 1993390048
stabilityai-stablelm-3b-4e1t-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33485d818d36ca97fe39a7697eb2b5654fca280becf368dd79863ccf392322f8
3
+ size 2295984608
stabilityai-stablelm-3b-4e1t-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa11e4848196e38b1c69d39b7b73ae0391e031d21c10569d69adfeb843629076
3
+ size 2972925408