Gemma-4-31B-Fable5-LittleBit-0.10bpw
extreme 0.10-bit compression experiment
2 min read
A research artifact from protoncracker: an attempt to compress the 31B language model TeichAI/Gemma-4-31B-Fable-5-Agent-Distill down to an extreme 0.10 bits per weight using LittleBit-2-style binary factorization (representing weights as products of binary matrices with +1/-1 signs). While this shrank the 60 decoder blocks from 59 GB to 369 MB, the model completely lost the ability to generate coherent text. The release serves as a documented negative result complete with open-source unpacking code and block-by-block degradation metrics—useful for engineers researching sub-bit LLM quantization.
Key features
- Honest negative benchmark: perplexity (a measure of model uncertainty) spiked from 28.4 to 7,819, while top-1 token agreement with the original model dropped to 20.7%.
- Dual-path binary factorization: each linear layer is decomposed into main and residual paths using binary matrices and float16 scales initialized via Dual-SVID and Joint-ITQ.
- Block-by-block distillation: instead of end-to-end training across the entire model, each of the 60 blocks was reconstructed independently on a calibration mix of WikiText-2 and coding dialogues.
- Ready-to-use Python tooling: the repo includes scripts to read packed
littlebit-packed-v1tensors and reassemble them back into a standard checkpoint.
What you can do
- Analyze layer-by-layer error accumulation under sub-bit quantization using the included
per_block_error.csvtables anderror_curve.pngchart. - Use the
lb_pack.pyandlb_quant.pyPython modules to inspect binary matrix packing and work with Q4_0 and Q6_K embedding formats. - Reconstruct a full-size bf16 checkpoint via
lb_dense.pyand run it inllama.cppto reproduce the speed and generation degradation benchmarks.
Example
import sys; sys.path.insert(0, "code")
import lb_pack
block = lb_pack.read_block_state("model-q6_k.safetensors", 0)
state = lb_pack.unpack_block_state(block)
embed = lb_pack.read_embedding("model-q6_k.safetensors")
Read more
DetailsMetrics: held-out perplexity of 7,819 (vs. 28.4 for the original), 20.7% top-1 token agreement, and 6.49 nats/token KL divergence.
Sizes: compressed blocks take up 369 MB (files with Q4_0 and Q6_K quantized embeddings weigh 1.16 GB and 1.53 GB); converting back to dense GGUF expands the model to 61.41 GB.
Training: 2.6 hours on a single NVIDIA A100 80 GB GPU (8 epochs per block, 503M tokens total).
Limitations: not intended for practical use as it outputs incoherent characters; standard engines like transformers and llama.cpp cannot run the packed format directly.










Comments