Prince-1 commited on
Commit
a95a1ed
·
verified ·
1 Parent(s): 8626d6c

Add files using upload-large-folder tool

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +229 -0
  3. config.json +28 -0
  4. model_w8a8_rk3588.rkllm +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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
 
 
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
+ model_w8a8_rk3588.rkllm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - fr
5
+ - es
6
+ - pt
7
+ tags:
8
+ - falcon3
9
+ - rkllm
10
+ license: other
11
+ license_name: falcon-llm-license
12
+ license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
13
+ library_name: rkllm
14
+ base_model:
15
+ - tiiuae/Falcon3-7B-Base
16
+ ---
17
+
18
+ <div align="center">
19
+ <img src="https://huggingface.co/datasets/tiiuae/documentation-images/resolve/main/general/falco3-logo.png" alt="drawing" width="500"/>
20
+ </div>
21
+
22
+ # Falcon3-7B-Base
23
+
24
+ **Falcon3** family of Open Foundation Models is a set of pretrained and instruct LLMs ranging from 1B to 10B.
25
+
26
+ This repository contains the **Falcon3-7B-Base**. It achieves state of art results (at the time of release) on reasoning, language understanding, instruction following, code and mathematics tasks.
27
+ Falcon3-7B-Base supports 4 languages (english, french, spanish, portuguese) and a context length up to 32K.
28
+
29
+ ⚠️ **This is a raw, pretrained model, which should be further finetuned for most usecases.**
30
+
31
+ ## Model Details
32
+ - Architecture
33
+ - transformer based causal decoder only architecture
34
+ - 28 decoder blocks
35
+ - grouped query attention (GQA) for faster inference: 12 query heads and 4 KV heads
36
+ - wider head dimension: 256
37
+ - high RoPE value to support long context understanding: 1000042
38
+ - 32k context length
39
+ - 131k vocab size
40
+ - Pretrained on 14 Teratokens of datasets comprising of web, code, STEM, high quality and mutlilingual data using 1024 H100 GPU chips
41
+ - Supports EN, FR, ES, PT
42
+ - Developed by [Technology Innovation Institute](https://www.tii.ae)
43
+ - License: TII Falcon-LLM License 2.0
44
+ - Model Release Date: December 2024
45
+
46
+
47
+ ## Getting started
48
+
49
+ <details>
50
+ <summary> Click to expand </summary>
51
+
52
+ ```python
53
+ import torch
54
+ from transformers import pipeline
55
+
56
+ pipe = pipeline(
57
+ "text-generation",
58
+ model="tiiuae/Falcon3-7B-Base",
59
+ torch_dtype=torch.bfloat16,
60
+ device_map="auto"
61
+ )
62
+ response = pipe("Question: How many hours in one day? Answer: ")
63
+ print(response[0]['generated_text'])
64
+ ```
65
+
66
+ </details>
67
+
68
+ <br>
69
+
70
+ ## Benchmarks
71
+ We report in the following table our internal pipeline benchmarks.
72
+ - We use [lm-evaluation harness](https://github.com/EleutherAI/lm-evaluation-harness).
73
+ - We report **raw scores**.
74
+ - We use same batch-size across all models.
75
+
76
+
77
+
78
+ <table border="1" style="width: 100%; text-align: center; border-collapse: collapse;">
79
+ <colgroup>
80
+ <col style="width: 10%;">
81
+ <col style="width: 10%;">
82
+ <col style="width: 7%;">
83
+ <col style="width: 7%;">
84
+ <col style="width: 7%;">
85
+ <col style="width: 7%;">
86
+ <col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
87
+ </colgroup>
88
+ <thead>
89
+ <tr>
90
+ <th>Category</th>
91
+ <th>Benchmark</th>
92
+ <th>Llama3.1-8B</th>
93
+ <th>Qwen2-7B</th>
94
+ <th>Qwen2.5-7B</th>
95
+ <th>gemma-2-9b</th>
96
+ <th>Falcon3-7B-Base</th>
97
+ </tr>
98
+ </thead>
99
+ <tbody>
100
+ <tr>
101
+ <td rowspan="3">General</td>
102
+ <td>MMLU (5-shot)</td>
103
+ <td>65.2</td>
104
+ <td>70.4</td>
105
+ <td>74.2</td>
106
+ <td>-</td>
107
+ <td>67.5</td>
108
+ </tr>
109
+ <tr>
110
+ <td>MMLU-PRO (5-shot)</td>
111
+ <td>32.7</td>
112
+ <td>42.1</td>
113
+ <td>43.5</td>
114
+ <td>-</td>
115
+ <td>39.2</td>
116
+ </tr>
117
+ <tr>
118
+ <td>IFEval</td>
119
+ <td>12.0</td>
120
+ <td>30.6</td>
121
+ <td>33.9</td>
122
+ <td>-</td>
123
+ <td>34.3</td>
124
+ </tr>
125
+ <tr>
126
+ <td rowspan="2">Math</td>
127
+ <td>GSM8K (5-shot)</td>
128
+ <td>49.4</td>
129
+ <td>77.9</td>
130
+ <td>82.9</td>
131
+ <td>-</td>
132
+ <td>76.2</td>
133
+ </tr>
134
+ <tr>
135
+ <td>MATH(4-shot)</td>
136
+ <td>4.1</td>
137
+ <td>17.5</td>
138
+ <td>15.5</td>
139
+ <td>-</td>
140
+ <td>18.0</td>
141
+ </tr>
142
+ <tr>
143
+ <td rowspan="4">Reasoning</td>
144
+ <td>Arc Challenge (25-shot)</td>
145
+ <td>53.4</td>
146
+ <td>57.4</td>
147
+ <td>59.0</td>
148
+ <td>-</td>
149
+ <td>59.6</td>
150
+ </tr>
151
+ <tr>
152
+ <td>GPQA (0-shot)</td>
153
+ <td>31.0</td>
154
+ <td>31.9</td>
155
+ <td>33.0</td>
156
+ <td>-</td>
157
+ <td>35.5</td>
158
+ </tr>
159
+ <tr>
160
+ <td>MUSR (0-shot)</td>
161
+ <td>38.0</td>
162
+ <td>44.1</td>
163
+ <td>44.2</td>
164
+ <td>-</td>
165
+ <td>47.3</td>
166
+ </tr>
167
+ <tr>
168
+ <td>BBH (3-shot)</td>
169
+ <td>46.5</td>
170
+ <td>53.3</td>
171
+ <td>54.0</td>
172
+ <td>-</td>
173
+ <td>51.0</td>
174
+ </tr>
175
+ <tr>
176
+ <td rowspan="4">CommonSense Understanding</td>
177
+ <td>PIQA (0-shot)</td>
178
+ <td>80.3</td>
179
+ <td>79.8</td>
180
+ <td>78.7</td>
181
+ <td>-</td>
182
+ <td>77.7</td>
183
+ </tr>
184
+ <tr>
185
+ <td>SciQ (0-shot)</td>
186
+ <td>96.3</td>
187
+ <td>95.9</td>
188
+ <td>96.6</td>
189
+ <td>-</td>
190
+ <td>95.3</td>
191
+ </tr>
192
+ <tr>
193
+ <td>Winogrande (0-shot)</td>
194
+ <td>74.0</td>
195
+ <td>72.1</td>
196
+ <td>72.9</td>
197
+ <td>-</td>
198
+ <td>71.0</td>
199
+ </tr>
200
+ <tr>
201
+ <td>OpenbookQA (0-shot)</td>
202
+ <td>33.4</td>
203
+ <td>35.2</td>
204
+ <td>33.6</td>
205
+ <td>-</td>
206
+ <td>31.4</td>
207
+ </tr>
208
+ </tbody>
209
+ </table>
210
+
211
+ ## Useful links
212
+ - View our [release blogpost](https://huggingface.co/blog/falcon3).
213
+ - Feel free to join [our discord server](https://discord.gg/fwXpMyGc) if you have any questions or to interact with our researchers and developers.
214
+
215
+ ## Technical Report
216
+
217
+ Coming soon....
218
+
219
+ ## Citation
220
+ If Falcon3 family were helpful to your work, feel free to give us a cite.
221
+
222
+ ```
223
+ @misc{Falcon3,
224
+ title = {Falcon 3 family of Open Foundation Models},
225
+ author = {TII Team},
226
+ month = {December},
227
+ year = {2024}
228
+ }
229
+ ```
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "eos_token_id": 11,
8
+ "head_dim": 256,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 3072,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 23040,
13
+ "max_position_embeddings": 32768,
14
+ "mlp_bias": false,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 28,
18
+ "num_key_value_heads": 4,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000042,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.46.1",
26
+ "use_cache": true,
27
+ "vocab_size": 131072
28
+ }
model_w8a8_rk3588.rkllm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f96664403d9ff3e34c28c9e472db5b6da33ec61a8926b75bab33a84e2027ec3e
3
+ size 14948336404