Buckets:
321 GB
192 files
Updated 9 days ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .gitattributes | 1.52 kB xet | 818ba6de | |
| README.md | 2.24 kB xet | 39ad10b4 | |
| added_tokens.json | 41 Bytes xet | 8fef9194 | |
| config.json | 746 Bytes xet | fd02d78d | |
| configuration_bitnet.py | 9.57 kB xet | db129542 | |
| eval_ppl.py | 2.16 kB xet | f9c52c20 | |
| eval_task.py | 1.91 kB xet | 6bd9238f | |
| eval_utils.py | 4.27 kB xet | f033e695 | |
| generation_config.json | 132 Bytes xet | 13763620 | |
| model-00001-of-00003.safetensors | 4.99 GB xet | df991c9a | |
| model-00002-of-00003.safetensors | 5 GB xet | ab3c3fdf | |
| model-00003-of-00003.safetensors | 3.31 GB xet | 0111d9ef | |
| model.safetensors.index.json | 26.2 kB xet | f1c0123b | |
| modeling_bitnet.py | 64 kB xet | 15c386bc | |
| special_tokens_map.json | 604 Bytes xet | 02a2cc14 | |
| tokenization_bitnet.py | 22.5 kB xet | 22786db9 | |
| tokenizer.json | 1.84 MB xet | 9ad2a216 | |
| tokenizer.model | 500 kB xet | 91bf184a | |
| tokenizer_config.json | 1.39 kB xet | 6c204ed4 | |
| utils_quant.py | 1.33 kB xet | 0caffa91 |
This is a reproduction of the BitNet b1.58 paper. The models are trained with RedPajama dataset for 100B tokens. The hypers, as well as two-stage LR and weight decay, are implemented as suggested in their following paper. All models are open-source in the repo. We will train larger models and/or more tokens when resource is available.
Results
PPL and zero-shot accuracy:
| Models | PPL | ARCe | ARCc | HS | BQ | OQ | PQ | WGe | Avg |
|---|---|---|---|---|---|---|---|---|---|
| FP16 700M (reported) | 12.33 | 54.7 | 23.0 | 37.0 | 60.0 | 20.2 | 68.9 | 54.8 | 45.5 |
| BitNet b1.58 700M (reported) | 12.87 | 51.8 | 21.4 | 35.1 | 58.2 | 20.0 | 68.1 | 55.2 | 44.3 |
| BitNet b1.58 700M (reproduced) | 12.78 | 51.4 | 21.8 | 35.0 | 59.6 | 20.6 | 67.5 | 55.4 | 44.5 |
| FP16 1.3B (reported) | 11.25 | 56.9 | 23.5 | 38.5 | 59.1 | 21.6 | 70.0 | 53.9 | 46.2 |
| BitNet b1.58 1.3B (reported) | 11.29 | 54.9 | 24.2 | 37.7 | 56.7 | 19.6 | 68.8 | 55.8 | 45.4 |
| BitNet b1.58 1.3B (reproduced) | 11.19 | 55.8 | 23.7 | 37.6 | 59.0 | 20.2 | 69.2 | 56.0 | 45.9 |
| FP16 3B (reported) | 10.04 | 62.1 | 25.6 | 43.3 | 61.8 | 24.6 | 72.1 | 58.2 | 49.7 |
| BitNet b1.58 3B (reported) | 9.91 | 61.4 | 28.3 | 42.9 | 61.5 | 26.6 | 71.5 | 59.3 | 50.2 |
| BitNet b1.58 3B (reproduced) | 9.88 | 60.9 | 28.0 | 42.3 | 58.3 | 26.0 | 71.4 | 60.3 | 49.6 |
The differences between the reported numbers and the reproduced results are possibly variances from the training data processing, seeds, or other random factors.
Evaluation
The evaluation pipelines are from the paper authors. Here is the commands to run the evaluation:
pip install lm-eval==0.3.0
python eval_ppl.py --hf_path 1bitLLM/bitnet_b1_58-3B --seqlen 2048
python eval_task.py --hf_path 1bitLLM/bitnet_b1_58-3B \
--batch_size 1 \
--tasks \
--output_path result.json \
--num_fewshot 0 \
--ctx_size 2048
- Total size
- 321 GB
- Files
- 192
- Last updated
- Jul 31
- Pre-warmed CDN
- US EU US EU