2.1x smaller. +8.0% PPL. Pure Mamba2 SSM scales with compression.Mamba2-1.3B compressed from 2.9 GB to 1.4 GB with +8.0% perplexity. Down from +18.4% at 130M — SSM compression quality improves with model size. No calibration data. Justpip installandfrom_pretrained().
pip install "helix-substrate[hf]"1import helix_substrate # registers the HXQ quantizer with HuggingFace
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model = AutoModelForCausalLM.from_pretrained("EchoLabs33/mamba2-1.3b-helix")
5tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/mamba2-1.3b-helix")
6
7inputs = tokenizer("The future of artificial intelligence", return_tensors="pt")
8outputs = model.generate(**inputs, max_new_tokens=64)
9print(tokenizer.decode(outputs[0], skip_special_tokens=True))import helix_substrate registers the quantizer. from_pretrained() handles the rest automatically.| Dense (BF16) | HXQ | |
|---|---|---|
| Size | 2.9 GB | 1.4 GB |
| Perplexity (WikiText-2) | 9.26 | 10.00 (+8.0%) |
| Compression ratio | — | 2.1x |
| Compressed modules | — | 98 (in_proj + out_proj + embedding) |
| Architecture | Mamba2 (48 layers, pure SSM) | unchanged |
HelixLinear layer via HelixLinearSTE. See helix-substrate for training infrastructure.helix-substrate — the quantizer is not built into transformers. You need pip install "helix-substrate[hf]".mamba-ssm recommended — without it, falls back to a slower sequential code path.transformers >= 4.45 — for Mamba2 architecture support.HelixLinear performs codebook[indices] @ x directly, no decompression stepnn.Linear regardless of architecture (Transformer, Mamba, MLP, CNN)import helix_substrate registers the hxq quantizer with HuggingFacefrom_pretrained() reads quantization_config.quant_method = "hxq" from config.jsonHelixLinear shells before weight loadingCompressed modules: 98 (in_proj + out_proj + embedding)
Exact tensors: 337 (A_log, D, dt_bias, conv1d, norms)
Total keys: 736
Output size: 1,388 MB
Weight ratio: 2.1x
PPL delta: +8.0% (10.00 vs 9.26 dense)
Eval: WikiText-2 test, 2048 tokens, stride=512pip install, multiple architectures:| Model | Architecture | Ratio | PPL Delta |
|---|---|---|---|
| qwen2.5-14b-instruct-helix | Transformer | 3.4x | pending |
| qwen2.5-7b-instruct-helix | Transformer | 2.2x | +6.34% |
| qwen2.5-3b-instruct-helix | Transformer | 1.6x | +0.69% |
| qwen2.5-coder-3b-helix | Transformer (code) | 1.6x | +1.92% |
| qwen2.5-coder-1.5b-instruct-helix | Transformer (code) | 2.4x | +1.63% |
| tinyllama-1.1b-helix | Transformer | 4.0x | +0.78% |
| zamba2-2.7b-instruct-helix | Hybrid (Mamba2+Transformer) | 1.8x | +6.59% |
| zamba2-1.2b-helix | Hybrid (Mamba2+Transformer) | 1.7x | +2.90% |
| mamba-130m-helix | Pure SSM | 3.8x | +18.4% |
1@software{helix_substrate_2026,
2 title={Helix Substrate: Universal Weight Compression via HelixCode},
3 author={EchoLabs},
4 year={2026},
5 url={https://github.com/echo313unfolding/helix-substrate}
6}