add scores for 1B
#3
by
wdevazelhes
- opened
- README.md +90 -137
- tokenizer_config.json +1 -1
README.md
CHANGED
|
@@ -7,21 +7,16 @@ language:
|
|
| 7 |
tags:
|
| 8 |
- falcon3
|
| 9 |
base_model: tiiuae/Falcon3-7B-Base
|
| 10 |
-
license: other
|
| 11 |
-
license_name: falcon-llm-license
|
| 12 |
license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
|
| 13 |
-
library_name: transformers
|
| 14 |
---
|
| 15 |
|
| 16 |
-
<div align="center">
|
| 17 |
-
<img src="https://huggingface.co/datasets/tiiuae/documentation-images/resolve/main/general/falco3-logo.png" alt="drawing" width="500"/>
|
| 18 |
-
</div>
|
| 19 |
-
|
| 20 |
# Falcon3-7B-Instruct
|
| 21 |
|
| 22 |
**Falcon3** family of Open Foundation Models is a set of pretrained and instruct LLMs ranging from 1B to 10B.
|
| 23 |
|
| 24 |
-
This repository contains the **Falcon3-7B-Instruct**. It achieves state of art results (at
|
| 25 |
Falcon3-7B-Instruct supports 4 languages (english, french, spanish, portuguese) and a context length up to 32K.
|
| 26 |
|
| 27 |
## Model Details
|
|
@@ -34,7 +29,7 @@ Falcon3-7B-Instruct supports 4 languages (english, french, spanish, portuguese)
|
|
| 34 |
- Uses SwiGLU and RMSNorm
|
| 35 |
- 32K context length
|
| 36 |
- 131K vocab size
|
| 37 |
-
- Pretrained on 14 Teratokens of datasets comprising of web, code, STEM, high quality and mutlilingual data using
|
| 38 |
- Postrained on 1.2 million samples of STEM, conversations, code, safety and function call data
|
| 39 |
- Supports EN, FR, ES, PT
|
| 40 |
- Developed by [Technology Innovation Institute](https://www.tii.ae)
|
|
@@ -48,6 +43,8 @@ Falcon3-7B-Instruct supports 4 languages (english, french, spanish, portuguese)
|
|
| 48 |
<summary> Click to expand </summary>
|
| 49 |
|
| 50 |
```python
|
|
|
|
|
|
|
| 51 |
|
| 52 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 53 |
|
|
@@ -56,7 +53,7 @@ model_name = "tiiuae/Falcon3-7B-Instruct"
|
|
| 56 |
model = AutoModelForCausalLM.from_pretrained(
|
| 57 |
model_name,
|
| 58 |
torch_dtype="auto",
|
| 59 |
-
device_map="auto"
|
| 60 |
)
|
| 61 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 62 |
|
|
@@ -89,66 +86,7 @@ print(response)
|
|
| 89 |
<br>
|
| 90 |
|
| 91 |
## Benchmarks
|
| 92 |
-
We report the
|
| 93 |
-
<table border="1" style="width: 100%; text-align: center; border-collapse: collapse;">
|
| 94 |
-
<colgroup>
|
| 95 |
-
<col style="width: 10%;">
|
| 96 |
-
<col style="width: 7%;">
|
| 97 |
-
<col style="width: 7%;">
|
| 98 |
-
<col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
|
| 99 |
-
</colgroup>
|
| 100 |
-
<thead>
|
| 101 |
-
<tr>
|
| 102 |
-
<th>Benchmark</th>
|
| 103 |
-
<th>Llama-3.1-8B-Instruct</th>
|
| 104 |
-
<th>Qwen2.5-7B-Instruct</th>
|
| 105 |
-
<th>Falcon3-7B-Instruct</th>
|
| 106 |
-
</tr>
|
| 107 |
-
</thead>
|
| 108 |
-
<tbody>
|
| 109 |
-
<tr>
|
| 110 |
-
<td>IFEval</td>
|
| 111 |
-
<td><b>78.56</b></td>
|
| 112 |
-
<td>75.85</td>
|
| 113 |
-
<td>76.12</td>
|
| 114 |
-
</tr>
|
| 115 |
-
<tr>
|
| 116 |
-
<td>BBH (3-shot)</td>
|
| 117 |
-
<td>29.89</td>
|
| 118 |
-
<td>34.89</td>
|
| 119 |
-
<td><b>37.92</b></td>
|
| 120 |
-
</tr>
|
| 121 |
-
<tr>
|
| 122 |
-
<td>MATH Lvl-5 (4-shot)</td>
|
| 123 |
-
<td>19.34</td>
|
| 124 |
-
<td>0.00</td>
|
| 125 |
-
<td><b>31.87</b></td>
|
| 126 |
-
</tr>
|
| 127 |
-
<tr>
|
| 128 |
-
<td>GPQA (0-shot)</td>
|
| 129 |
-
<td>2.35</td>
|
| 130 |
-
<td>5.48</td>
|
| 131 |
-
<td><b>8.05</b></td>
|
| 132 |
-
</tr>
|
| 133 |
-
<tr>
|
| 134 |
-
<td>MUSR (0-shot)</td>
|
| 135 |
-
<td>8.41</td>
|
| 136 |
-
<td>8.45</td>
|
| 137 |
-
<td><b>21.17</b></td>
|
| 138 |
-
</tr>
|
| 139 |
-
<tr>
|
| 140 |
-
<td>MMLU-PRO (5-shot)</td>
|
| 141 |
-
<td>30.68</td>
|
| 142 |
-
<td><b>36.52</b></td>
|
| 143 |
-
<td>34.30</td>
|
| 144 |
-
</tr>
|
| 145 |
-
</tbody>
|
| 146 |
-
</table>
|
| 147 |
-
|
| 148 |
-
Also, we report in the following table our internal pipeline benchmarks.
|
| 149 |
-
- We use [lm-evaluation harness](https://github.com/EleutherAI/lm-evaluation-harness).
|
| 150 |
-
- We report **raw scores** obtained by applying chat template and fewshot_as_multiturn.
|
| 151 |
-
- We use same batch-size across all models.
|
| 152 |
|
| 153 |
<table border="1" style="width: 100%; text-align: center; border-collapse: collapse;">
|
| 154 |
<colgroup>
|
|
@@ -156,139 +94,154 @@ Also, we report in the following table our internal pipeline benchmarks.
|
|
| 156 |
<col style="width: 10%;">
|
| 157 |
<col style="width: 7%;">
|
| 158 |
<col style="width: 7%;">
|
|
|
|
| 159 |
<col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
|
| 160 |
</colgroup>
|
| 161 |
<thead>
|
| 162 |
<tr>
|
| 163 |
<th>Category</th>
|
| 164 |
<th>Benchmark</th>
|
| 165 |
-
<th>Llama-3.
|
| 166 |
-
<th>Qwen2.5-
|
| 167 |
-
<th>
|
|
|
|
| 168 |
</tr>
|
| 169 |
</thead>
|
| 170 |
<tbody>
|
| 171 |
<tr>
|
| 172 |
<td rowspan="3">General</td>
|
| 173 |
<td>MMLU (5-shot)</td>
|
| 174 |
-
<td>
|
| 175 |
-
<td><b>
|
| 176 |
-
<td>
|
|
|
|
| 177 |
</tr>
|
| 178 |
<tr>
|
| 179 |
<td>MMLU-PRO (5-shot)</td>
|
| 180 |
-
<td>
|
| 181 |
-
<td><b>
|
| 182 |
-
<td>
|
|
|
|
| 183 |
</tr>
|
| 184 |
<tr>
|
| 185 |
<td>IFEval</td>
|
| 186 |
-
<td><b>
|
| 187 |
-
<td>
|
| 188 |
-
<td>
|
|
|
|
| 189 |
</tr>
|
| 190 |
<tr>
|
| 191 |
<td rowspan="3">Math</td>
|
| 192 |
<td>GSM8K (5-shot)</td>
|
| 193 |
-
<td
|
| 194 |
-
<td>
|
| 195 |
-
<td>
|
|
|
|
| 196 |
</tr>
|
| 197 |
<tr>
|
| 198 |
<td>GSM8K (8-shot, COT)</td>
|
| 199 |
-
<td
|
| 200 |
-
<td>
|
| 201 |
-
<td>
|
|
|
|
| 202 |
</tr>
|
| 203 |
<tr>
|
| 204 |
<td>MATH Lvl-5 (4-shot)</td>
|
| 205 |
-
<td>
|
| 206 |
-
<td
|
| 207 |
-
<td
|
|
|
|
| 208 |
</tr>
|
| 209 |
<tr>
|
| 210 |
-
<td rowspan="
|
| 211 |
<td>Arc Challenge (25-shot)</td>
|
| 212 |
-
<td>
|
| 213 |
-
<td>
|
| 214 |
-
<td><b>
|
|
|
|
| 215 |
</tr>
|
| 216 |
<tr>
|
| 217 |
<td>GPQA (0-shot)</td>
|
| 218 |
-
<td
|
| 219 |
-
<td>
|
| 220 |
-
<td>
|
|
|
|
| 221 |
</tr>
|
| 222 |
<tr>
|
| 223 |
<td>GPQA (0-shot, COT)</td>
|
| 224 |
-
<td>
|
| 225 |
-
<td>
|
| 226 |
-
<td
|
|
|
|
| 227 |
</tr>
|
| 228 |
<tr>
|
| 229 |
<td>MUSR (0-shot)</td>
|
| 230 |
-
<td>
|
| 231 |
-
<td>
|
| 232 |
-
<td
|
|
|
|
| 233 |
</tr>
|
| 234 |
<tr>
|
| 235 |
<td>BBH (3-shot)</td>
|
| 236 |
-
<td>
|
| 237 |
-
<td><b>
|
| 238 |
-
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
</tr>
|
| 240 |
<tr>
|
| 241 |
-
<td rowspan="
|
| 242 |
<td>PIQA (0-shot)</td>
|
| 243 |
-
<td
|
| 244 |
-
<td>73.
|
| 245 |
-
<td>
|
|
|
|
| 246 |
</tr>
|
| 247 |
<tr>
|
| 248 |
<td>SciQ (0-shot)</td>
|
| 249 |
-
<td>
|
| 250 |
-
<td>
|
| 251 |
-
<td
|
|
|
|
| 252 |
</tr>
|
| 253 |
<tr>
|
| 254 |
<td>Winogrande (0-shot)</td>
|
| 255 |
<td>-</td>
|
| 256 |
<td>-</td>
|
| 257 |
-
<td
|
|
|
|
| 258 |
</tr>
|
| 259 |
<tr>
|
| 260 |
<td>OpenbookQA (0-shot)</td>
|
| 261 |
-
<td
|
| 262 |
-
<td>
|
| 263 |
-
<td>
|
|
|
|
| 264 |
</tr>
|
| 265 |
<tr>
|
| 266 |
-
<td rowspan="2">Instructions following</td>
|
| 267 |
<td>MT-Bench (avg)</td>
|
| 268 |
-
<td>
|
| 269 |
-
<td><b>
|
| 270 |
-
<td>
|
|
|
|
| 271 |
</tr>
|
| 272 |
<tr>
|
| 273 |
-
<td>
|
| 274 |
-
<td>
|
| 275 |
-
<td><b>
|
| 276 |
-
<td>
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
<td>Tool use</td>
|
| 280 |
-
<td>BFCL AST (avg)</td>
|
| 281 |
-
<td>90.6</td>
|
| 282 |
-
<td><b>91.4</b></td>
|
| 283 |
-
<td>89.5</td>
|
| 284 |
</tr>
|
| 285 |
</tbody>
|
| 286 |
</table>
|
| 287 |
|
| 288 |
-
## Useful links
|
| 289 |
-
- View our [release blogpost](https://huggingface.co/blog/falcon3).
|
| 290 |
-
- Feel free to join [our discord server](https://discord.gg/fwXpMyGc) if you have any questions or to interact with our researchers and developers.
|
| 291 |
-
|
| 292 |
## Technical Report
|
| 293 |
Coming soon....
|
| 294 |
|
|
|
|
| 7 |
tags:
|
| 8 |
- falcon3
|
| 9 |
base_model: tiiuae/Falcon3-7B-Base
|
| 10 |
+
license: other
|
| 11 |
+
license_name: falcon-llm-license
|
| 12 |
license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
|
|
|
|
| 13 |
---
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Falcon3-7B-Instruct
|
| 16 |
|
| 17 |
**Falcon3** family of Open Foundation Models is a set of pretrained and instruct LLMs ranging from 1B to 10B.
|
| 18 |
|
| 19 |
+
This repository contains the **Falcon3-7B-Instruct**. It achieves state of art results (at release's time) on reasoning, language understanding, instruction following, code and mathematics tasks.
|
| 20 |
Falcon3-7B-Instruct supports 4 languages (english, french, spanish, portuguese) and a context length up to 32K.
|
| 21 |
|
| 22 |
## Model Details
|
|
|
|
| 29 |
- Uses SwiGLU and RMSNorm
|
| 30 |
- 32K context length
|
| 31 |
- 131K vocab size
|
| 32 |
+
- Pretrained on 14 Teratokens of datasets comprising of web, code, STEM, high quality and mutlilingual data using 2048 H100 GPU chips
|
| 33 |
- Postrained on 1.2 million samples of STEM, conversations, code, safety and function call data
|
| 34 |
- Supports EN, FR, ES, PT
|
| 35 |
- Developed by [Technology Innovation Institute](https://www.tii.ae)
|
|
|
|
| 43 |
<summary> Click to expand </summary>
|
| 44 |
|
| 45 |
```python
|
| 46 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 47 |
+
|
| 48 |
|
| 49 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 50 |
|
|
|
|
| 53 |
model = AutoModelForCausalLM.from_pretrained(
|
| 54 |
model_name,
|
| 55 |
torch_dtype="auto",
|
| 56 |
+
device_map="auto"]
|
| 57 |
)
|
| 58 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 59 |
|
|
|
|
| 86 |
<br>
|
| 87 |
|
| 88 |
## Benchmarks
|
| 89 |
+
We report in the following table our internal pipeline benchmarks:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
<table border="1" style="width: 100%; text-align: center; border-collapse: collapse;">
|
| 92 |
<colgroup>
|
|
|
|
| 94 |
<col style="width: 10%;">
|
| 95 |
<col style="width: 7%;">
|
| 96 |
<col style="width: 7%;">
|
| 97 |
+
<col style="width: 7%;">
|
| 98 |
<col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
|
| 99 |
</colgroup>
|
| 100 |
<thead>
|
| 101 |
<tr>
|
| 102 |
<th>Category</th>
|
| 103 |
<th>Benchmark</th>
|
| 104 |
+
<th>Llama-3.2-1B</th>
|
| 105 |
+
<th>Qwen2.5-1.5B</th>
|
| 106 |
+
<th>SmolLM2-1.7B</th>
|
| 107 |
+
<th>Falcon3-1B-Instruct</th>
|
| 108 |
</tr>
|
| 109 |
</thead>
|
| 110 |
<tbody>
|
| 111 |
<tr>
|
| 112 |
<td rowspan="3">General</td>
|
| 113 |
<td>MMLU (5-shot)</td>
|
| 114 |
+
<td>23.4</td>
|
| 115 |
+
<td><b>58.4</b></td>
|
| 116 |
+
<td>48.4</td>
|
| 117 |
+
<td>43.9</td>
|
| 118 |
</tr>
|
| 119 |
<tr>
|
| 120 |
<td>MMLU-PRO (5-shot)</td>
|
| 121 |
+
<td>11.3</td>
|
| 122 |
+
<td><b>21.3</b></td>
|
| 123 |
+
<td>17.2</td>
|
| 124 |
+
<td>18.6</td>
|
| 125 |
</tr>
|
| 126 |
<tr>
|
| 127 |
<td>IFEval</td>
|
| 128 |
+
<td><b>55.8</b></td>
|
| 129 |
+
<td>44.4</td>
|
| 130 |
+
<td>53.0</td>
|
| 131 |
+
<td>54.4</td>
|
| 132 |
</tr>
|
| 133 |
<tr>
|
| 134 |
<td rowspan="3">Math</td>
|
| 135 |
<td>GSM8K (5-shot)</td>
|
| 136 |
+
<td>37.4</td>
|
| 137 |
+
<td><b>57.2</b></td>
|
| 138 |
+
<td>43.4</td>
|
| 139 |
+
<td>38.6</td>
|
| 140 |
</tr>
|
| 141 |
<tr>
|
| 142 |
<td>GSM8K (8-shot, COT)</td>
|
| 143 |
+
<td>35.6</td>
|
| 144 |
+
<td><b>62.2</b></td>
|
| 145 |
+
<td>47.2</td>
|
| 146 |
+
<td>41.8</td>
|
| 147 |
</tr>
|
| 148 |
<tr>
|
| 149 |
<td>MATH Lvl-5 (4-shot)</td>
|
| 150 |
+
<td><b>3.9</b></td>
|
| 151 |
+
<td>0.2</td>
|
| 152 |
+
<td>0.1</td>
|
| 153 |
+
<td>1.0</td>
|
| 154 |
</tr>
|
| 155 |
<tr>
|
| 156 |
+
<td rowspan="6">Reasoning</td>
|
| 157 |
<td>Arc Challenge (25-shot)</td>
|
| 158 |
+
<td>34.1</td>
|
| 159 |
+
<td>47.0</td>
|
| 160 |
+
<td><b>47.6</b></td>
|
| 161 |
+
<td>45.9</td>
|
| 162 |
</tr>
|
| 163 |
<tr>
|
| 164 |
<td>GPQA (0-shot)</td>
|
| 165 |
+
<td>25.3</td>
|
| 166 |
+
<td><b>29.6</b></td>
|
| 167 |
+
<td>28.7</td>
|
| 168 |
+
<td>26.5</td>
|
| 169 |
</tr>
|
| 170 |
<tr>
|
| 171 |
<td>GPQA (0-shot, COT)</td>
|
| 172 |
+
<td>13.2</td>
|
| 173 |
+
<td>9.2</td>
|
| 174 |
+
<td>16.0</td>
|
| 175 |
+
<td><b>21.3</b></td>
|
| 176 |
</tr>
|
| 177 |
<tr>
|
| 178 |
<td>MUSR (0-shot)</td>
|
| 179 |
+
<td>32.4</td>
|
| 180 |
+
<td>36.8</td>
|
| 181 |
+
<td>33.0</td>
|
| 182 |
+
<td><b>40.7</b></td>
|
| 183 |
</tr>
|
| 184 |
<tr>
|
| 185 |
<td>BBH (3-shot)</td>
|
| 186 |
+
<td>30.3</td>
|
| 187 |
+
<td><b>38.5</b></td>
|
| 188 |
+
<td>33.1</td>
|
| 189 |
+
<td>35.1</td>
|
| 190 |
+
</tr>
|
| 191 |
+
<tr>
|
| 192 |
+
<td>BBH (3-shot, COT)</td>
|
| 193 |
+
<td>0.0</td>
|
| 194 |
+
<td>20.3</td>
|
| 195 |
+
<td>0.8</td>
|
| 196 |
+
<td><b>30.5</b></td>
|
| 197 |
</tr>
|
| 198 |
<tr>
|
| 199 |
+
<td rowspan="5">CommonSense Understanding</td>
|
| 200 |
<td>PIQA (0-shot)</td>
|
| 201 |
+
<td>72.1</td>
|
| 202 |
+
<td>73.2</td>
|
| 203 |
+
<td><b>74.4</b></td>
|
| 204 |
+
<td>72.0</td>
|
| 205 |
</tr>
|
| 206 |
<tr>
|
| 207 |
<td>SciQ (0-shot)</td>
|
| 208 |
+
<td>61.8</td>
|
| 209 |
+
<td>69.5</td>
|
| 210 |
+
<td>71.4</td>
|
| 211 |
+
<td><b>86.8</b></td>
|
| 212 |
</tr>
|
| 213 |
<tr>
|
| 214 |
<td>Winogrande (0-shot)</td>
|
| 215 |
<td>-</td>
|
| 216 |
<td>-</td>
|
| 217 |
+
<td>-</td>
|
| 218 |
+
<td><b>60.2</b></td>
|
| 219 |
</tr>
|
| 220 |
<tr>
|
| 221 |
<td>OpenbookQA (0-shot)</td>
|
| 222 |
+
<td>40.2</td>
|
| 223 |
+
<td>40.4</td>
|
| 224 |
+
<td><b>42.8</b></td>
|
| 225 |
+
<td>40.0</td>
|
| 226 |
</tr>
|
| 227 |
<tr>
|
|
|
|
| 228 |
<td>MT-Bench (avg)</td>
|
| 229 |
+
<td>5.4</td>
|
| 230 |
+
<td><b>7.1</b></td>
|
| 231 |
+
<td>6.1</td>
|
| 232 |
+
<td>5.5</td>
|
| 233 |
</tr>
|
| 234 |
<tr>
|
| 235 |
+
<td rowspan="1">Instructions following</td>
|
| 236 |
+
<td>Alapaca (WC)</td>
|
| 237 |
+
<td><b>8.6</b></td>
|
| 238 |
+
<td><b>8.6</b></td>
|
| 239 |
+
<td>5.4</td>
|
| 240 |
+
<td>6.1</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
</tr>
|
| 242 |
</tbody>
|
| 243 |
</table>
|
| 244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
## Technical Report
|
| 246 |
Coming soon....
|
| 247 |
|
tokenizer_config.json
CHANGED
|
@@ -16219,7 +16219,7 @@
|
|
| 16219 |
">>PASSWORD<<",
|
| 16220 |
">>KEY<<"
|
| 16221 |
],
|
| 16222 |
-
"chat_template": "{
|
| 16223 |
"clean_up_tokenization_spaces": true,
|
| 16224 |
"eos_token": "<|endoftext|>",
|
| 16225 |
"extra_special_tokens": {},
|
|
|
|
| 16219 |
">>PASSWORD<<",
|
| 16220 |
">>KEY<<"
|
| 16221 |
],
|
| 16222 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|system|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'user' %}{{ '<|user|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{% if not loop.last %}{{ '<|assistant|>\n' + message['content'] + eos_token + '\n' }}{% else %}{{ '<|assistant|>\n' + message['content'] + eos_token }}{% endif %}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}{% endfor %}",
|
| 16223 |
"clean_up_tokenization_spaces": true,
|
| 16224 |
"eos_token": "<|endoftext|>",
|
| 16225 |
"extra_special_tokens": {},
|