Views
No views yet

tiiuae/Falcon3-10B-Base-1.58bit where model weight scales have been injected into ternary model weights in order to make the model compatible with fine-tuning1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "tiiuae/Falcon3-10B-Base-1.58bit"
5
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 torch_dtype=torch.bfloat16,
9).to("cuda")
10
11# Perform text generationgit clone https://github.com/microsoft/BitNet && cd BitNet
pip install -r requirements.txt
python setup_env.py --hf-repo tiiuae/Falcon3-10B-Base-1.58bit -q i2_s
python run_inference.py -m models/Falcon3-10B-1.58bit/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv| Benchmark | Llama3-8B-1.58-100B-tokens | Falcon3-10B-Base-1.58bit |
|---|---|---|
| IFEval | 17.91 | 24.89 |
| MUSR | 4.87 | 4.6 |
| GPQA | 1.83 | 1.83 |
| BBH | 5.36 | 4.44 |
| MMLU-PRO | 2.78 | 1.36 |
| MATH | 0.26 | 0.48 |
| Average | 5.5 | 6.27 |