Update README.md
#1
by
Dhia-GB
- opened
README.md
CHANGED
@@ -6,37 +6,30 @@ language:
|
|
6 |
- pt
|
7 |
tags:
|
8 |
- falcon3
|
9 |
-
license: other
|
10 |
-
license_name: falcon-llm-license
|
11 |
-
license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
|
12 |
-
library_name: transformers
|
13 |
---
|
14 |
|
15 |
-
<div align="center">
|
16 |
-
<img src="https://huggingface.co/datasets/tiiuae/documentation-images/resolve/main/general/falco3-logo.png" alt="drawing" width="500"/>
|
17 |
-
</div>
|
18 |
-
|
19 |
# Falcon3-3B-Base
|
20 |
|
21 |
-
**Falcon3** family of Open Foundation Models is a set of pretrained and instruct LLMs ranging from 1B to 10B
|
22 |
|
23 |
-
This repository contains the **Falcon3-3B-Base**. It achieves strong results on reasoning, language understanding, instruction following, code and mathematics tasks
|
24 |
-
Falcon3-3B-Base supports 4 languages (
|
25 |
-
|
|
|
|
|
26 |
|
27 |
-
⚠️ **This is a raw, pretrained model, which should be further finetuned
|
28 |
|
29 |
## Model Details
|
30 |
- Architecture
|
31 |
-
- Transformer
|
32 |
- 22 decoder blocks
|
33 |
-
- Grouped
|
34 |
- Wider head dimension: 256
|
35 |
- High RoPE value to support long context understanding: 1000042
|
36 |
-
-
|
37 |
-
-
|
38 |
-
|
39 |
-
- Pruned and healed from Falcon3-7B-Base on only 100 Gigatokens of datasets comprising of web, code, STEM, high quality and mutlilingual data using 1024 H100 GPU chips
|
40 |
- Supports EN, FR, ES, PT
|
41 |
- Developed by [Technology Innovation Institute](https://www.tii.ae)
|
42 |
- License: TII Falcon-LLM License 2.0
|
@@ -66,11 +59,8 @@ print(response[0]['generated_text'])
|
|
66 |
|
67 |
<br>
|
68 |
|
69 |
-
|
70 |
-
We report in the following table our internal pipeline benchmarks
|
71 |
-
- We use [lm-evaluation harness](https://github.com/EleutherAI/lm-evaluation-harness).
|
72 |
-
- We report **raw scores**.
|
73 |
-
- We use same batch-size across all models.
|
74 |
|
75 |
|
76 |
|
@@ -81,6 +71,7 @@ We report in the following table our internal pipeline benchmarks.
|
|
81 |
<col style="width: 7%;">
|
82 |
<col style="width: 7%;">
|
83 |
<col style="width: 7%;">
|
|
|
84 |
<col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
|
85 |
</colgroup>
|
86 |
<thead>
|
@@ -89,6 +80,7 @@ We report in the following table our internal pipeline benchmarks.
|
|
89 |
<th>Benchmark</th>
|
90 |
<th>Llama3.2-3B</th>
|
91 |
<th>Qwen2.5-3B</th>
|
|
|
92 |
<th>Minitron-4B</th>
|
93 |
<th>Falcon3-3B-Base</th>
|
94 |
</tr>
|
@@ -98,115 +90,121 @@ We report in the following table our internal pipeline benchmarks.
|
|
98 |
<td rowspan="3">General</td>
|
99 |
<td>MMLU (5-shot)</td>
|
100 |
<td>56.1</td>
|
101 |
-
<td
|
102 |
-
<td>
|
|
|
103 |
<td>55.5</td>
|
104 |
</tr>
|
105 |
<tr>
|
106 |
<td>MMLU-PRO (5-shot)</td>
|
107 |
<td>24.9</td>
|
108 |
-
<td
|
109 |
-
<td>
|
110 |
-
<td>
|
|
|
111 |
</tr>
|
112 |
<tr>
|
113 |
<td>IFEval</td>
|
114 |
-
<td>12.
|
115 |
<td>27</td>
|
116 |
-
<td>
|
117 |
-
<td
|
|
|
118 |
</tr>
|
119 |
<tr>
|
120 |
<td rowspan="2">Math</td>
|
121 |
<td>GSM8K (5-shot)</td>
|
122 |
-
<td>26.
|
123 |
-
<td
|
|
|
124 |
<td>25.7</td>
|
125 |
-
<td>63.
|
126 |
</tr>
|
127 |
<tr>
|
128 |
-
<td>MATH
|
129 |
-
<td>1.
|
130 |
-
<td>8.
|
131 |
-
<td>
|
132 |
-
<td
|
|
|
133 |
</tr>
|
134 |
<tr>
|
135 |
<td rowspan="4">Reasoning</td>
|
136 |
<td>Arc Challenge (25-shot)</td>
|
137 |
-
<td>50.
|
138 |
-
<td
|
139 |
-
<td>
|
140 |
-
<td>
|
|
|
141 |
</tr>
|
142 |
<tr>
|
143 |
<td>GPQA (0-shot)</td>
|
144 |
-
<td>27.
|
145 |
-
<td>27.
|
146 |
-
<td>
|
147 |
-
<td
|
|
|
148 |
</tr>
|
149 |
<tr>
|
150 |
<td>MUSR (0-shot)</td>
|
151 |
-
<td>35.
|
152 |
-
<td
|
153 |
-
<td>
|
|
|
154 |
<td>37.5</td>
|
155 |
</tr>
|
156 |
<tr>
|
157 |
<td>BBH (3-shot)</td>
|
158 |
-
<td>38.
|
159 |
-
<td
|
160 |
-
<td>
|
161 |
-
<td>
|
|
|
162 |
</tr>
|
163 |
<tr>
|
164 |
<td rowspan="4">CommonSense Understanding</td>
|
165 |
<td>PIQA (0-shot)</td>
|
166 |
-
<td>77.
|
167 |
-
<td
|
168 |
-
<td>
|
169 |
-
<td>
|
|
|
170 |
</tr>
|
171 |
<tr>
|
172 |
<td>SciQ (0-shot)</td>
|
173 |
<td>92.7</td>
|
174 |
<td>95.6</td>
|
175 |
-
<td
|
|
|
176 |
<td>93.1</td>
|
177 |
</tr>
|
178 |
<tr>
|
179 |
<td>Winogrande (0-shot)</td>
|
180 |
-
<td
|
181 |
-
<td>68.
|
182 |
-
<td>
|
183 |
-
<td>
|
|
|
184 |
</tr>
|
185 |
<tr>
|
186 |
<td>OpenbookQA (0-shot)</td>
|
187 |
-
<td
|
188 |
<td>42.2</td>
|
|
|
189 |
<td>43</td>
|
190 |
<td>39.4</td>
|
191 |
</tr>
|
192 |
</tbody>
|
193 |
</table>
|
194 |
|
195 |
-
## Useful links
|
196 |
-
- View our [release blogpost](https://huggingface.co/blog/falcon3).
|
197 |
-
- Feel free to join [our discord server](https://discord.gg/fwXpMyGc) if you have any questions or to interact with our researchers and developers.
|
198 |
|
199 |
-
|
200 |
-
|
201 |
|
202 |
-
## Citation
|
203 |
-
If the Falcon3 family of models were helpful to your work, feel free to give us a cite.
|
204 |
-
|
205 |
```
|
206 |
@misc{Falcon3,
|
207 |
-
title = {The Falcon 3
|
208 |
-
|
209 |
-
author = {Falcon-LLM Team},
|
210 |
month = {December},
|
211 |
year = {2024}
|
212 |
}
|
|
|
6 |
- pt
|
7 |
tags:
|
8 |
- falcon3
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
|
|
|
|
|
|
|
|
|
11 |
# Falcon3-3B-Base
|
12 |
|
13 |
+
**Falcon3** family of Open Foundation Models is a set of pretrained and instruct LLMs ranging from 1B to 10B.
|
14 |
|
15 |
+
This repository contains the **Falcon3-3B-Base**. It achieves strong results on reasoning, language understanding, instruction following, code and mathematics tasks.<br>
|
16 |
+
`Falcon3-3B-Base` supports 4 languages (english, french, spanish, portuguese) and a context length up to 8K.<br>
|
17 |
+
`Falcon3-3B-Base` was pruned from `Falcon3-7B-Base`, then trained on only **100 GT** using a knowledge distillation objective.<br>
|
18 |
+
This base version is world's top 2 among under 5B pretrained LLMs at release, which makes it an excellent choice for finetuning and deployment on edge devices. <br>
|
19 |
+
`Falcon3-3B-Base` comes with a whole package of quantized versions for further efficiency and a SOTA [instruct version](https://huggingface.co/tiiuae/Falcon3-3B-Instruct) for direct use.
|
20 |
|
21 |
+
⚠️ **This is a raw, pretrained model, which should be further finetuned for most usecases.**
|
22 |
|
23 |
## Model Details
|
24 |
- Architecture
|
25 |
+
- Transformer based causal decoder-only architecture
|
26 |
- 22 decoder blocks
|
27 |
+
- Grouped query attention (GQA) for faster inference: 12 query heads and 4 KV heads
|
28 |
- Wider head dimension: 256
|
29 |
- High RoPE value to support long context understanding: 1000042
|
30 |
+
- 8k context length
|
31 |
+
- 131k vocab size
|
32 |
+
- Pruned and Healed from Falcon3-7B-Base on only 100 Gigatokens of datasets comprising of web, code, STEM, high quality and mutlilingual data using 2048 H100 GPU chips
|
|
|
33 |
- Supports EN, FR, ES, PT
|
34 |
- Developed by [Technology Innovation Institute](https://www.tii.ae)
|
35 |
- License: TII Falcon-LLM License 2.0
|
|
|
59 |
|
60 |
<br>
|
61 |
|
62 |
+
# Benchmarks
|
63 |
+
We report in the following table our internal pipeline benchmarks:
|
|
|
|
|
|
|
64 |
|
65 |
|
66 |
|
|
|
71 |
<col style="width: 7%;">
|
72 |
<col style="width: 7%;">
|
73 |
<col style="width: 7%;">
|
74 |
+
<col style="width: 7%;">
|
75 |
<col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
|
76 |
</colgroup>
|
77 |
<thead>
|
|
|
80 |
<th>Benchmark</th>
|
81 |
<th>Llama3.2-3B</th>
|
82 |
<th>Qwen2.5-3B</th>
|
83 |
+
<th>Phi2-2.5B</th>
|
84 |
<th>Minitron-4B</th>
|
85 |
<th>Falcon3-3B-Base</th>
|
86 |
</tr>
|
|
|
90 |
<td rowspan="3">General</td>
|
91 |
<td>MMLU (5-shot)</td>
|
92 |
<td>56.1</td>
|
93 |
+
<td>65.6</td>
|
94 |
+
<td> - </td>
|
95 |
+
<td>58.6</td>
|
96 |
<td>55.5</td>
|
97 |
</tr>
|
98 |
<tr>
|
99 |
<td>MMLU-PRO (5-shot)</td>
|
100 |
<td>24.9</td>
|
101 |
+
<td>31.99</td>
|
102 |
+
<td> - </td>
|
103 |
+
<td>26.21</td>
|
104 |
+
<td>28.77</td>
|
105 |
</tr>
|
106 |
<tr>
|
107 |
<td>IFEval</td>
|
108 |
+
<td>12.83</td>
|
109 |
<td>27</td>
|
110 |
+
<td> - </td>
|
111 |
+
<td>22.81</td>
|
112 |
+
<td>27.67</td>
|
113 |
</tr>
|
114 |
<tr>
|
115 |
<td rowspan="2">Math</td>
|
116 |
<td>GSM8K (5-shot)</td>
|
117 |
+
<td>26.68</td>
|
118 |
+
<td>68.99</td>
|
119 |
+
<td> - </td>
|
120 |
<td>25.7</td>
|
121 |
+
<td>63.91</td>
|
122 |
</tr>
|
123 |
<tr>
|
124 |
+
<td>MATH(4-shot)</td>
|
125 |
+
<td>1.39</td>
|
126 |
+
<td>8.43</td>
|
127 |
+
<td> - </td>
|
128 |
+
<td>1.73</td>
|
129 |
+
<td>9.38</td>
|
130 |
</tr>
|
131 |
<tr>
|
132 |
<td rowspan="4">Reasoning</td>
|
133 |
<td>Arc Challenge (25-shot)</td>
|
134 |
+
<td>50.76</td>
|
135 |
+
<td>55.54</td>
|
136 |
+
<td> - </td>
|
137 |
+
<td>50.34</td>
|
138 |
+
<td>54.86</td>
|
139 |
</tr>
|
140 |
<tr>
|
141 |
<td>GPQA (0-shot)</td>
|
142 |
+
<td>27.49</td>
|
143 |
+
<td>27.53</td>
|
144 |
+
<td> - </td>
|
145 |
+
<td>38.6</td>
|
146 |
+
<td>31.15</td>
|
147 |
</tr>
|
148 |
<tr>
|
149 |
<td>MUSR (0-shot)</td>
|
150 |
+
<td>35.24</td>
|
151 |
+
<td>43.03</td>
|
152 |
+
<td> - </td>
|
153 |
+
<td>42.13</td>
|
154 |
<td>37.5</td>
|
155 |
</tr>
|
156 |
<tr>
|
157 |
<td>BBH (3-shot)</td>
|
158 |
+
<td>38.59</td>
|
159 |
+
<td>46.12</td>
|
160 |
+
<td> - </td>
|
161 |
+
<td>40.85</td>
|
162 |
+
<td>44.23</td>
|
163 |
</tr>
|
164 |
<tr>
|
165 |
<td rowspan="4">CommonSense Understanding</td>
|
166 |
<td>PIQA (0-shot)</td>
|
167 |
+
<td>77.42</td>
|
168 |
+
<td>78.89</td>
|
169 |
+
<td> - </td>
|
170 |
+
<td>78.29</td>
|
171 |
+
<td>75.62</td>
|
172 |
</tr>
|
173 |
<tr>
|
174 |
<td>SciQ (0-shot)</td>
|
175 |
<td>92.7</td>
|
176 |
<td>95.6</td>
|
177 |
+
<td> - </td>
|
178 |
+
<td>96.1</td>
|
179 |
<td>93.1</td>
|
180 |
</tr>
|
181 |
<tr>
|
182 |
<td>Winogrande (0-shot)</td>
|
183 |
+
<td>69.69</td>
|
184 |
+
<td>68.82</td>
|
185 |
+
<td> - </td>
|
186 |
+
<td>68.35</td>
|
187 |
+
<td>64.64</td>
|
188 |
</tr>
|
189 |
<tr>
|
190 |
<td>OpenbookQA (0-shot)</td>
|
191 |
+
<td>43.2</td>
|
192 |
<td>42.2</td>
|
193 |
+
<td> - </td>
|
194 |
<td>43</td>
|
195 |
<td>39.4</td>
|
196 |
</tr>
|
197 |
</tbody>
|
198 |
</table>
|
199 |
|
|
|
|
|
|
|
200 |
|
201 |
+
# Citation
|
202 |
+
If Falcon3 family were helpful to your work, feel free to give us a cite.
|
203 |
|
|
|
|
|
|
|
204 |
```
|
205 |
@misc{Falcon3,
|
206 |
+
title = {The Falcon 3 family of Open Models},
|
207 |
+
author = {TII Team},
|
|
|
208 |
month = {December},
|
209 |
year = {2024}
|
210 |
}
|