Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: tiiuae/Falcon3-7B-Instruct
|
| 3 |
+
license: other
|
| 4 |
+
license_name: falcon-llm-license
|
| 5 |
+
license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
|
| 6 |
+
tags:
|
| 7 |
+
- bitnet
|
| 8 |
+
- falcon3
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+

|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
# Table of Contents
|
| 16 |
+
|
| 17 |
+
0. [TL;DR](#TL;DR)
|
| 18 |
+
1. [Model Details](#model-details)
|
| 19 |
+
2. [Training Details](#training-details)
|
| 20 |
+
3. [Usage](#usage)
|
| 21 |
+
4. [Evaluation](#evaluation)
|
| 22 |
+
5. [Citation](#citation)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# TL;DR
|
| 26 |
+
|
| 27 |
+
# Model Details
|
| 28 |
+
|
| 29 |
+
## Model Description
|
| 30 |
+
|
| 31 |
+
- **Developed by:** [https://www.tii.ae](https://www.tii.ae)
|
| 32 |
+
- **Model type:** Causal decoder-only - instruct / chat version
|
| 33 |
+
- **Architecture:** Pure-transformer - 1.58bit version
|
| 34 |
+
- **Language(s) (NLP):** Mainly English
|
| 35 |
+
- **License:** TII Falcon License 2.0
|
| 36 |
+
|
| 37 |
+
# Training details
|
| 38 |
+
|
| 39 |
+
The model has been trained following the training strategies from the recent [1-bit LLM HF blogpost](https://huggingface.co/blog/1_58_llm_extreme_quantization) and [1-bit LLM paper](https://github.com/microsoft/unilm/blob/master/bitnet/The-Era-of-1-bit-LLMs__Training_Tips_Code_FAQ.pdf).
|
| 40 |
+
For more details about the training protocol of this model, please refer to the Falcon-3 technical report, section *Compression*.
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# Usage
|
| 44 |
+
|
| 45 |
+
Currently to use this model you can on [BitNet](https://github.com/microsoft/BitNet) library. You can also play with the model using the [falcon-1.58bit playground](https://huggingface.co/spaces/tiiuae/falcon3-1.58bit-playground) (only for the 7B instruct version).
|
| 46 |
+
|
| 47 |
+
## BitNet
|
| 48 |
+
|
| 49 |
+
```
|
| 50 |
+
git clone https://github.com/microsoft/BitNet && cd BitNet
|
| 51 |
+
pip install -r requirements.txt
|
| 52 |
+
huggingface-cli download tiiuae/Falcon3-7B-Instruct-1.58bit-GGUF ggml-model-i2_s.gguf --local-dir models/Falcon3-7B-1.58bit/
|
| 53 |
+
python run_inference.py -m models/Falcon3-7B-1.58bit/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
# Evaluation
|
| 57 |
+
We report in the following table our internal pipeline benchmarks:
|
| 58 |
+
|
| 59 |
+
**Note evaluation results are normalized score from v2 leaderboard tasks - reported results of original models in the blogpost are raw scores**
|
| 60 |
+
|
| 61 |
+
<table border="1" style="width: 100%; text-align: center; border-collapse: collapse;">
|
| 62 |
+
<colgroup>
|
| 63 |
+
<col style="width: 10%;">
|
| 64 |
+
<col style="width: 10%;">
|
| 65 |
+
<col style="background-color: rgba(80, 15, 213, 0.5); width: 7%;">
|
| 66 |
+
</colgroup>
|
| 67 |
+
<thead>
|
| 68 |
+
<tr>
|
| 69 |
+
<th>Benchmark</th>
|
| 70 |
+
<th>Llama3-8B-1.58-100B-tokens</th>
|
| 71 |
+
<th>Falcon3-7B-Instruct-1.58bit </th>
|
| 72 |
+
</tr>
|
| 73 |
+
</thead>
|
| 74 |
+
<tbody>
|
| 75 |
+
<tr>
|
| 76 |
+
<td>IFEval</td>
|
| 77 |
+
<td>17.91</td>
|
| 78 |
+
<td><b>59.24</b></td>
|
| 79 |
+
</tr>
|
| 80 |
+
<tr>
|
| 81 |
+
<td>MUSR</td>
|
| 82 |
+
<td><b>4.87</b></td>
|
| 83 |
+
<td>1.76</td>
|
| 84 |
+
</tr>
|
| 85 |
+
<tr>
|
| 86 |
+
<td>GPQA</td>
|
| 87 |
+
<td>1.83</td>
|
| 88 |
+
<td><b>5.25</b></td>
|
| 89 |
+
</tr>
|
| 90 |
+
<tr>
|
| 91 |
+
<td>BBH</td>
|
| 92 |
+
<td>5.36</td>
|
| 93 |
+
<td><b>8.54</b></td>
|
| 94 |
+
</tr>
|
| 95 |
+
<tr>
|
| 96 |
+
<td>MMLU-PRO</td>
|
| 97 |
+
<td>2.78</td>
|
| 98 |
+
<td><b>8.44</b></td>
|
| 99 |
+
</tr>
|
| 100 |
+
<tr>
|
| 101 |
+
<td>MATH</td>
|
| 102 |
+
<td>0.26</td>
|
| 103 |
+
<td><b>2.93</b></td>
|
| 104 |
+
</tr>
|
| 105 |
+
<tr>
|
| 106 |
+
<td>Average</td>
|
| 107 |
+
<td>5.5</td>
|
| 108 |
+
<td><b>14.36</b></td>
|
| 109 |
+
</tr>
|
| 110 |
+
</tbody>
|
| 111 |
+
</table>
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
## Useful links
|
| 115 |
+
- View our [release blogpost](https://huggingface.co/blog/falcon3).
|
| 116 |
+
- Feel free to join [our discord server](https://discord.gg/fwXpMyGc) if you have any questions or to interact with our researchers and developers.
|
| 117 |
+
|
| 118 |
+
## Citation
|
| 119 |
+
If the Falcon3 family of models were helpful to your work, feel free to give us a cite.
|
| 120 |
+
|
| 121 |
+
```
|
| 122 |
+
@misc{Falcon3,
|
| 123 |
+
title = {The Falcon 3 Family of Open Models},
|
| 124 |
+
author = {Falcon-LLM Team},
|
| 125 |
+
month = {December},
|
| 126 |
+
year = {2024}
|
| 127 |
+
}
|
| 128 |
+
```
|