GGUF
English
llama-cpp
gguf-my-repo
Eval Results
Inference Endpoints
Triangle104 commited on
Commit
6b81210
1 Parent(s): 612384e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +3 -157
README.md CHANGED
@@ -1,16 +1,16 @@
1
  ---
2
- base_model: tiiuae/falcon-mamba-7b
 
3
  datasets:
4
  - tiiuae/falcon-refinedweb
5
  - HuggingFaceFW/fineweb-edu
6
- language:
7
- - en
8
  license: other
9
  license_name: falcon-mamba-7b-license
10
  license_link: https://falconllm.tii.ae/falcon-mamba-7b-terms-and-conditions.html
11
  tags:
12
  - llama-cpp
13
  - gguf-my-repo
 
14
  model-index:
15
  - name: falcon-mamba-7b
16
  results:
@@ -112,160 +112,6 @@ model-index:
112
  This model was converted to GGUF format from [`tiiuae/falcon-mamba-7b`](https://huggingface.co/tiiuae/falcon-mamba-7b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
113
  Refer to the [original model card](https://huggingface.co/tiiuae/falcon-mamba-7b) for more details on the model.
114
 
115
- ---
116
- Model Description
117
-
118
- Developed by: https://www.tii.ae
119
- Model type: Causal decoder-only
120
- Architecture: Mamba
121
- Language(s) (NLP): Mainly English
122
- License: TII Falcon-Mamba License 2.0
123
-
124
-
125
- Usage
126
-
127
- Find below some example scripts on how to use the model in transformers (Make sure to have the latest transformers, or the one built from source):
128
- Using the Pytorch model
129
- Running the model on a CPU
130
- Click to expand
131
-
132
- Running the model on a GPU
133
- Click to expand
134
-
135
- Running the model on a GPU using torch.compile
136
- Click to expand
137
-
138
- Running the model on a GPU using different precisions
139
- FP16
140
- Click to expand
141
-
142
- 4-bit
143
- Click to expand
144
-
145
-
146
- Training Details
147
- Training Data
148
-
149
- Falcon-Mamba has been trained with ~ 5,500 GT mainly coming from Refined-Web, a large volume web-only dataset filtered and deduplicated. Similar to the others Falcon suite models, Falcon-Mamba has been trained leveraging a multi-stage training strategy to increase the context-length from 2,048 to 8,192. Moreover, inspired by the concept of Curriculum Learning, we carefully selected data mixtures throughout the training stages, considering both data diversity and complexity. Note that at inference the context-length is not relevant as the Mamba architecture has no limit on long range dependency. At the last training stage, small portion of high-quality curated data was used to further enhance performance.
150
-
151
- Overall, the data sources included RefinedWeb-English, high quality technical data, code data and math data extracted from public sources. In particular, we used samples coming from Fineweb-edu during our last training stage.
152
-
153
- The data was tokenized with the Falcon-7B/11B tokenizer.
154
- Training Procedure
155
-
156
- Falcon-Mamba-7B was trained on 256 H100 80GB GPUs for the majority of the training, using a 3D parallelism strategy (TP=1, PP=1, DP=256) combined with ZeRO.
157
- Training Hyperparameters
158
- Hyperparameter Value Comment
159
- Precision bfloat16
160
- Optimizer AdamW
161
- Max learning rate 6.4e-4 Following a WSD (warmup-stable-decay) learning rate schedule
162
- Weight decay 1e-1
163
- Batch size 2048
164
-
165
- The model was trained AdamW optimizer, WSD (warmup-stable-decay) learning rate schedule, and a batch size rampup from bmin=128b_{\mathrm{min}}=128bmin​=128 to bmax=2048b_{\mathrm{max}}=2048bmax​=2048 during first 50 GT of training. In the stable phase we used maximal learning rate ηmax=6.4×10−4\eta_{\mathrm{max}}=6.4 \times 10^{-4}ηmax​=6.4×10−4, and decayed it to the minimal value ηmin=ηmax256\eta_{\mathrm{min}}=\frac{\eta_{\mathrm{max}}}{256}ηmin​=256ηmax​​ with exponential schedule over 500 GT. Also, we applied BatchScaling during the rampup — rescaling learning rate η\etaη so that the Adam noise temperature Tnoise≡ηbT_{\mathrm{noise}}\equiv\frac{\eta}{\sqrt{b}}Tnoise​≡b
166
-
167
- ​η​ is kept constant.
168
- Speeds, Sizes, Times
169
-
170
- The model training took roughly two months.
171
-
172
- Evaluation
173
- Benchmarks
174
-
175
- We evaluate our model on all benchmarks of the new leaderboard's version using the lm-evaluation-harness package, and then normalize the evaluation results with HuggingFace score normalization.
176
- model name IFEval BBH MATH LvL5 GPQA MUSR MMLU-PRO Average
177
- Pure SSM models
178
- FalconMamba-7B 33.36 19.88 3.63 8.05 10.86 14.47 15.04
179
- TRI-ML/mamba-7b-rw* 22.46 6.71 0.45 1.12 5.51 1.69 6.25
180
- Hybrid SSM-attention models
181
- recurrentgemma-9b 30.76 14.80 4.83 4.70 6.60 17.88 13.20
182
- Zyphra/Zamba-7B-v1* 24.06 21.12 3.32 3.03 7.74 16.02 12.55
183
- Transformer models
184
- Falcon2-11B 32.61 21.94 2.34 2.80 7.53 15.44 13.78
185
- Meta-Llama-3-8B 14.55 24.50 3.25 7.38 6.24 24.55 13.41
186
- Meta-Llama-3.1-8B 12.70 25.29 4.61 6.15 8.98 24.95 13.78
187
- Mistral-7B-v0.1 23.86 22.02 2.49 5.59 10.68 22.36 14.50
188
- Mistral-Nemo-Base-2407 (12B) 16.83 29.37 4.98 5.82 6.52 27.46 15.08
189
- gemma-7B 26.59 21.12 6.42 4.92 10.98 21.64 15.28
190
- RWKV models
191
- RWKV-v6-Finch-7B* 27.65 9.04 1.11 2.81 2.25 5.85 8.12
192
- RWKV-v6-Finch-14B* 29.81 12.89 1.13 5.01 3.16 11.3 10.55
193
-
194
- Also, we evaluate our model on the benchmarks of the first leaderboard using lighteval.
195
- model name ARC HellaSwag MMLU Winogrande TruthfulQA GSM8K Average
196
- Pure SSM models
197
- FalconMamba-7B* 62.03 80.82 62.11 73.64 53.42 52.54 64.09
198
- TRI-ML/mamba-7b-rw* 51.25 80.85 33.41 71.11 32.08 4.70 45.52
199
- Hybrid SSM-attention models
200
- recurrentgemma-9b** 52.00 80.40 60.50 73.60 38.60 42.60 57.95
201
- Zyphra/Zamba-7B-v1* 56.14 82.23 58.11 79.87 52.88 30.78 60.00
202
- Transformer models
203
- Falcon2-11B 59.73 82.91 58.37 78.30 52.56 53.83 64.28
204
- Meta-Llama-3-8B 60.24 82.23 66.70 78.45 42.93 45.19 62.62
205
- Meta-Llama-3.1-8B 58.53 82.13 66.43 74.35 44.29 47.92 62.28
206
- Mistral-7B-v0.1 59.98 83.31 64.16 78.37 42.15 37.83 60.97
207
- Mistral-Nemo-Base-2407 (12B)* 57.94 82.82 64.43 73.72 49.14 55.27 63.89
208
- gemma-7B 61.09 82.20 64.56 79.01 44.79 50.87 63.75
209
- RWKV models
210
- RWKV-v6-Finch-7B* 43.86 75.19 41.69 68.27 42.19 19.64 48.47
211
- RWKV-v6-Finch-14B* 47.44 78.86 52.33 71.27 45.45 38.06 55.57
212
-
213
- Mostly, we took evaluation results from both leaderboards. For the models marked by star we evaluated the tasks internally, while for the models marked by two stars the results were taken from paper or model card.
214
- Throughput
215
-
216
- This model can achieve comparable throughput and performance compared to other transformer based models that use optimized kernels such as Flash Attention 2. Make sure to install the optimized Mamba kernels with the following commands:
217
-
218
- pip install "causal-conv1d>=1.4.0" mamba-ssm
219
-
220
- Refer to our FalconMamba blogpost for more details about performance evaluation.
221
-
222
- Technical Specifications
223
- Model Architecture and Objective
224
-
225
- Falcon-Mamba-7B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token).
226
-
227
- The model is based on the Mamba architecture (Gu et al., 2023).
228
- Hyperparameter Value Comment
229
- Layers 64 Number of layers
230
- d_model 4096 Hidden dimension
231
- d_state 16 The SSM state dimension
232
- Vocabulary 65024 Vocabulary Size
233
- Sequence length 8192 During the last training stages
234
- Compute Infrastructure
235
- Hardware
236
-
237
- Falcon-Mamba-7B was trained on AWS SageMaker, using on average 256 H100 80GB GPUs in 32 p5 instances.
238
- Software
239
-
240
- Falcon-Mamba-7B was trained on an internal distributed training codebase, Gigatron. It uses a 3D parallelism approach combined with ZeRO, high-performance Triton kernels.
241
-
242
- Citation
243
-
244
- You can use the following bibtex citation:
245
-
246
- @misc{zuo2024falconmambacompetitiveattentionfree,
247
- title={Falcon Mamba: The First Competitive Attention-free 7B Language Model},
248
- author={Jingwei Zuo and Maksim Velikanov and Dhia Eddine Rhaiem and Ilyas Chahed and Younes Belkada and Guillaume Kunsch and Hakim Hacid},
249
- year={2024},
250
- eprint={2410.05355},
251
- archivePrefix={arXiv},
252
- primaryClass={cs.CL},
253
- url={https://arxiv.org/abs/2410.05355},
254
- }
255
-
256
- Open LLM Leaderboard Evaluation Results
257
-
258
- Detailed results can be found here
259
- Metric Value
260
- Avg. 15.04
261
- IFEval (0-Shot) 33.36
262
- BBH (3-Shot) 19.88
263
- MATH Lvl 5 (4-Shot) 3.63
264
- GPQA (0-shot) 8.05
265
- MuSR (0-shot) 10.86
266
- MMLU-PRO (5-shot) 14.47
267
-
268
- ---
269
  ## Use with llama.cpp
270
  Install llama.cpp through brew (works on Mac and Linux)
271
 
 
1
  ---
2
+ language:
3
+ - en
4
  datasets:
5
  - tiiuae/falcon-refinedweb
6
  - HuggingFaceFW/fineweb-edu
 
 
7
  license: other
8
  license_name: falcon-mamba-7b-license
9
  license_link: https://falconllm.tii.ae/falcon-mamba-7b-terms-and-conditions.html
10
  tags:
11
  - llama-cpp
12
  - gguf-my-repo
13
+ base_model: tiiuae/falcon-mamba-7b
14
  model-index:
15
  - name: falcon-mamba-7b
16
  results:
 
112
  This model was converted to GGUF format from [`tiiuae/falcon-mamba-7b`](https://huggingface.co/tiiuae/falcon-mamba-7b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
113
  Refer to the [original model card](https://huggingface.co/tiiuae/falcon-mamba-7b) for more details on the model.
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  ## Use with llama.cpp
116
  Install llama.cpp through brew (works on Mac and Linux)
117