Instructions to use LittleBitLLM/littlebit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LittleBitLLM/littlebit with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LittleBitLLM/littlebit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
docs: 8B first run is a 0.5-epoch early checkpoint on 1x H200
Browse files
README.md
CHANGED
|
@@ -25,11 +25,15 @@ binarized latent factorization, recovered by distillation from the original mode
|
|
| 25 |
| Model | Base | Target bpw | Status |
|
| 26 |
|---|---|---|---|
|
| 27 |
| littlebit-qwen3-4b | Qwen/Qwen3-4B | 0.55 | planned |
|
| 28 |
-
| littlebit-qwen3-8b | Qwen/Qwen3-8B | 0.55 |
|
| 29 |
-
| littlebit-qwen3-14b | Qwen/Qwen3-14B | 0.55 | planned |
|
| 30 |
|
| 31 |
Bits per weight apply to linear layers. Embeddings and `lm_head` stay BF16.
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
## Method
|
| 34 |
|
| 35 |
Each linear layer `W` is approximated as `sign(U) · diag(h·g·ℓ) · sign(V)ᵀ`:
|
|
@@ -67,7 +71,7 @@ and their optimizer state alone exceeds the memory. Use a 141 GB GPU or ≥ 2 GP
|
|
| 67 |
|
| 68 |
```bash
|
| 69 |
bash recipe/setup.sh
|
| 70 |
-
MODEL_ID=Qwen/Qwen3-8B EFF_BIT=0.55 EPOCHS=1 bash recipe/train.sh
|
| 71 |
CKPT=/workspace/outputs/littlebit-qwen3-8b-0.55bpw bash recipe/eval.sh
|
| 72 |
```
|
| 73 |
|
|
|
|
| 25 |
| Model | Base | Target bpw | Status |
|
| 26 |
|---|---|---|---|
|
| 27 |
| littlebit-qwen3-4b | Qwen/Qwen3-4B | 0.55 | planned |
|
| 28 |
+
| littlebit-qwen3-8b | Qwen/Qwen3-8B | 0.55 | next: early checkpoint, 0.5 epoch |
|
| 29 |
+
| littlebit-qwen3-14b | Qwen/Qwen3-14B | 0.55 | planned (5 epochs, after the 8B eval) |
|
| 30 |
|
| 31 |
Bits per weight apply to linear layers. Embeddings and `lm_head` stay BF16.
|
| 32 |
|
| 33 |
+
The first sub-1-bit run is Qwen3-8B with half an epoch of distillation (about 10,350 steps,
|
| 34 |
+
~8.5 h on 1× H200). That is 10% of the paper's 5-epoch recipe, so expect quality below the
|
| 35 |
+
paper's numbers. It will be released as an early checkpoint.
|
| 36 |
+
|
| 37 |
## Method
|
| 38 |
|
| 39 |
Each linear layer `W` is approximated as `sign(U) · diag(h·g·ℓ) · sign(V)ᵀ`:
|
|
|
|
| 71 |
|
| 72 |
```bash
|
| 73 |
bash recipe/setup.sh
|
| 74 |
+
MODEL_ID=Qwen/Qwen3-8B EFF_BIT=0.55 EPOCHS=0.5 NUM_GPUS=1 bash recipe/train.sh
|
| 75 |
CKPT=/workspace/outputs/littlebit-qwen3-8b-0.55bpw bash recipe/eval.sh
|
| 76 |
```
|
| 77 |
|