Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,58 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
library_name: transformers
|
6 |
+
datasets:
|
7 |
+
- budecosystem/intellecta
|
8 |
---
|
9 |
+
|
10 |
+
<div align="center"><img src=https://raw.githubusercontent.com/BudEcosystem/boomer/main/assets/boomer-logo.png" width=200></div>
|
11 |
+
|
12 |
+
|
13 |
+
<p align="center"><i>Democratizing access to LLMs for the open-source community.<br>Let's advance AI, together. </i></p>
|
14 |
+
|
15 |
+
----
|
16 |
+
|
17 |
+
## Introduction 🎉
|
18 |
+
|
19 |
+
We are open-sourcing one of our early experiments of <a href="https://arxiv.org/abs/2402.17764"> BitNet b1.58</a> paper. This 634m parameter model is pre-trained from scratch using a custom synthetic dataset of 5B tokens. The model's architecture experiments contain the modification of using higher depth and shallow configuration
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
## Run the model
|
24 |
+
|
25 |
+
Please note that, at the moment, `trust_remote_code=True` is required for running the model.
|
26 |
+
|
27 |
+
```python
|
28 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
29 |
+
|
30 |
+
model = AutoModelForCausalLM.from_pretrained("budecosystem/boomer-bitnet-634m",
|
31 |
+
trust_remote_code=True)
|
32 |
+
tokenizer = AutoTokenizer.from_pretrained("budecosystem/boomer-bitnet-634m")
|
33 |
+
|
34 |
+
input_ids = tokenizer("In the recent Super Bowl LVIII,", return_tensors='pt').to(model.device)["input_ids"]
|
35 |
+
|
36 |
+
outputs = model.generate(input_ids, max_new_tokens=216)
|
37 |
+
|
38 |
+
print(tokenizer.batch_decode(outputs))
|
39 |
+
```
|
40 |
+
|
41 |
+
## Evaluations
|
42 |
+
|
43 |
+
We have evaluated the pre-trained model on few of the benchmarks
|
44 |
+
|
45 |
+
| Model Name | ARC | MMLU | Winogrande | Hellaswag | MathQA | DROP | GSM8K |
|
46 |
+
|:----------:|:--------:|:----:|:----------:|:---------:|:-----: |:-----:|:----:|
|
47 |
+
| Boomer1B | 22.35 | 25.92| 6.1 | 31.66 | 28.65 | 6.13 | 1.5 |
|
48 |
+
| budecosystem/boomer-bitnet-634m | | | | | | | |
|
49 |
+
|
50 |
+
|
51 |
+
### Final thought on Boomer!
|
52 |
+
|
53 |
+
This isn't the end. It's just the beginning of a journey towards creating more advanced, more efficient, and more accessible language models. We invite you to join us on this exciting journey.
|
54 |
+
|
55 |
+
|
56 |
+
### Aknowledgements
|
57 |
+
|
58 |
+
We'd like to thank the open-source community and the researchers whose foundational work laid the path for BOOMER. Special shoutout to team who published BitNet b1.58 paper.
|