Views
No views yet
IMPORTANT: Parameter Count DisplayHuggingFace displays "9B params" because it counts packed bytes, not actual parameters. This model has the full 32B parameter Qwen2.5-Coder architecture. The weights are stored as ternary values ({-1, 0, +1}) packed 4 per byte, which reduces storage to 9.6 GB but preserves all 32 billion parameters.
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-Coder-32B-Instruct |
| Architecture | Qwen2 (Qwen2ForCausalLM) |
| Parameters | 32B (full architecture preserved) |
| Quantization | BitNet 1.58-bit ternary |
| Bits per Weight | ~1.58 |
| Group Size | 64 |
| Original Size | 65.53 GB (BF16) |
| Quantized Size | 9.6 GB (SafeTensors) |
| GGUF Size | 11 GB (TQ2_0) |
| Compression | ~6.4x |
| Format | File | Description |
|---|---|---|
| SafeTensors | model-*.safetensors | Sharded quantized weights + scales |
| GGUF | qwen2.5-coder-32b-TQ2_0.gguf | llama.cpp TQ2_0 format (experimental) |
GGUF Compatibility Note: The GGUF conversion is experimental. Our BitNet quantization uses group size 64, while TQ2_0 uses 256-element blocks. This may cause compatibility issues with some inference engines. The SafeTensors format is the primary supported format.
scale = mean(|weights|)q = round(w / scale) clamped to {-1, 0, +1}v0 + v1*3 + v2*9 + v3*271# llama.cpp (GGUF format - experimental, may have issues)
2./llama-cli -m qwen2.5-coder-32b-TQ2_0.gguf -p "Write a Python function:"1def unpack_ternary(packed_byte):
2 """Unpack 4 ternary values from byte."""
3 values = []
4 val = packed_byte
5 for _ in range(4):
6 values.append((val % 3) - 1) # {0,1,2} → {-1,0,+1}
7 val //= 3
8 return values1@misc{qwen-coder-32b-bitnet-2025,
2 title={Qwen2.5-Coder-32B-BitNet-1.58b: Experimental BitNet Quantization},
3 author={Tzervas},
4 year={2025},
5 url={https://huggingface.co/tzervas/qwen2.5-coder-32b-bitnet-1.58b}
6}