SmolLM2-360M SiliQuant A16 Adaptive Zero-Cal Router (4.5 bpw)
A zero-text (0 real calibration text — uniform random token IDs only) adaptive 1-bit/layer quantization of HuggingFaceTB/SmolLM2-360M that dynamically routes 97 layers to A_16 Block-H4 and 127 layers to A_16 axis-wise (g=32, use_colscale=False).
This release introduces the following key architectural and empirical highlights:
- Zero-Text 1-Bit Adaptive Router – Requires zero natural-language calibration text, choosing
A_16 Block-H4(97layers) vsA_16axis-wise (127layers) cleanly (1routing bit/layer) and eliminating permutation gathers. - Beats Both
A_16Axis andE_8 + H_8Across Splits – Delivers-5.47%lower WikiText-2 KL (0.061608vs0.065173axis;-13.98%vs0.071621E_8 + H_8) and-7.69%lower CPython KL (0.052364vs0.056725). - Zero-Spill Ampere
sm_86PTX Microkernels – Companion4.5 bpwPTX GEMV kernels (20–40regs,0 Bspill) achieve324.1–325.8 GB/s(90.6–91.1%STREAM Triad) at24.09–36.75 WNVML on2048x11008down_proj.
Models Overview
Every quantized weight vector $y \in A_{16} = 2\mathbb{Z}^{16} + C_{[16,11,4]}$ is algebraically encoded via Extended Hamming [16, 11, 4] systematic bits (qham11, 0.6875 bpw reconstructing the 5 parity coordinates {0, 1, 2, 4, 8}), minimum-byte packed quotients (qquot, k_bits in {2, 3, 4}), sparse CSR overflow tuples (qov_rowptr, qov_col, qov_val), and exact IEEE-754 integer bit patterns for block scales (scales_fp16_bits, colscale_fp32_bits) immune to BF16 mantissa truncation. Embeddings, lm_head, RMSNorm weights, and biases remain in untouched bfloat16.
| Property | Specification |
|---|---|
| Base Model & Architecture | HuggingFaceTB/SmolLM2-360M (llama, tie_word_embeddings=True) |
| Format & Recipe | siliquant-hf-v1 (A16_AdaptZeroCal_1bit, group size g=32, target 4.5 bpw) |
| Quantized Linear Layers | 224 layers (314,572,800 weights; Adaptive per-layer minimum-byte quotient packing) |
| Rotation & Permutation | 1-bit adaptive routing (97 A_16 Block-H4 + 127 A_16 axis layers; 0 permutations, use_colscale=False) |
| Effective Quantized Bitwidth | 5.4037 bpw (2.9609x quantized / 2.3561x total vs BF16) |
| SECDED Verification | 0 syndrome errors across 19,660,800 A_16 blocks (max_abs_roundtrip_diff=0.0) |
| Checkpoint Footprint | 307,134,746 B (292.9 MiB, model.safetensors) |
| Calibration Protocol | Zero-text (uniform random token IDs only; A16_AdaptZeroCal_1bit) |
model.safetensors SHA-256 | 127403f69eb510b8686c75c82823c401a180c74098d06ad0f8577c27017a9a80 |
Benchmark Results & Pareto Evaluations
All quantized perplexity and token-distribution divergence metrics below are measured directly against the untouched HuggingFaceTB/SmolLM2-360M BF16 reference under identical evaluation splits:
| Evaluation Metric | BF16 Reference | This Release | Comparison vs Prior Baselines |
|---|---|---|---|
| WikiText-2 Validation PPL | 16.394834 | 17.178503 | 0.061608 KL (-5.47% vs A_16 axis, -13.98% vs E_8 + H_8) |
| WikiText-2 Top-1 Agreement | 100.0% | 86.4971% | Zero natural-language calibration text used (g=32) |
| CPython Held-Out PPL | 5.044993 | 5.316584 | 0.052364 KL (-7.69% vs A_16 axis, -7.80% vs E_8 + H_8) |
| CPython Top-1 Agreement | 100.0% | 90.0685% | 292.9 MiB checkpoint (2.9609x quant compression) |
Energy Efficiency & Power Profile
| Hardware Target | Workload / Telemetry Scope | Avg Power (W) | Energy / Token (J/tok) | Efficiency (tok/J) | Run Energy (Wh/run) | Measurement Status |
|---|---|---|---|---|---|---|
RTX 3080 Laptop GPU (sm_86) | PTX down_proj 2048x11008 (a16_axis) | 24.09 W (NVML) | 0.000974 J/call (GPU) | 1,027 call/J (GPU) | — | Verified NVML microkernel telemetry (325.82 GB/s, 578.36 Gw/s) |
RTX 3080 Laptop GPU (sm_86) | PTX down_proj 2048x11008 (block_h4) | 36.75 W (NVML) | 0.001480 J/call (GPU) | 676 call/J (GPU) | — | Verified NVML microkernel telemetry (324.10 GB/s, 575.31 Gw/s) |
RTX 3080 Laptop GPU (8 GiB) | Full E2E SmolLM2-360M serving | Not recorded | Not recorded | Not recorded | Not recorded | Not recorded (NVML active 360M E2E serving absent; sweep GPU 55 -> 73 °C) |
[!NOTE] Energy readings are not guaranteed to be consistent due to uncontrollable variables (thermal state, ambient temperature, fan curve, and dynamic power limits).
(Note: PTX kernel NVML metrics above measure standalone 2048x11008 down_proj GEMV kernels compiled at <= 40 regs / 0 B spill; full end-to-end SmolLM2-360M serving energy/token was not separately logged.)
Getting Started
Install dependencies:
pip install -U torch transformers safetensors accelerate
Run standard Hugging Face inference with transformers from_pretrained (zero custom CUDA/C++ compilation required):
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
MODEL_ID = "ahrazzle/SmolLM2-360M-Siliquant-A16-BlockH4-AdaptZeroCal-4.5bpw"
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
trust_remote_code=True,
dtype="auto",
# Optional (requires `accelerate`): device_map="auto",
).to(device)
inputs = tokenizer("The exact identity of the Hadamard matrix is", return_tensors="pt").to(device)
with torch.inference_mode():
outputs = model.generate(**inputs, max_new_tokens=48, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
hf download ahrazzle/SmolLM2-360M-Siliquant-A16-BlockH4-AdaptZeroCal-4.5bpw --local-dir ./SmolLM2-360M-Siliquant-A16-BlockH4-AdaptZeroCal-4.5bpw
cd ./SmolLM2-360M-Siliquant-A16-BlockH4-AdaptZeroCal-4.5bpw
python3 -B siliquant_dequant.py verify .
python3 -B siliquant_dequant.py unpack . --out unpacked_bf16.safetensors --dtype bfloat16
siliquant_dequant.py verify .checks every file SHA-256 listed insiliquant_verification_receipt.json(rejecting tampered, missing, unlisted, or symlinked files) and verifies[16, 11, 4]codec parity across 100% ofA_16blocks.
kernels/sm86_a16_blockh4.cu— standalone reference zero-spill Amperesm_86PTX fused4-bit nibble-packedA_16+Block-H4dp4a.s32.s32GEMV kernel.kernels/avx512_a16_blockh4.c— standalone reference IntelAVX-512(vpermb+vpopcntq+vpdpbusd) CPUA_16+Block-H4GEMV decoder.- Note: The shipped checkpoint uses lossless packed
qham11+qquot+ CSR containers for bit-exact distribution; dense BF16 unpacking or nibble re-packing converts between archive and streaming kernel layouts.
Custom Infrastructure Stack & Source Repositories
Every open-source component used to design, quantize, compile, verify, and execute this release is publicly available below:
| Stack Layer | Component | Role in This Release | Public Repository |
|---|---|---|---|
| Lattice Quantization & ECC | SiliQuant | [16, 11, 4] Extended Hamming A_16 + Block-H4 quantization, QuadSnake/QuadLPT recipes, & lossless siliquant-hf-v1 packing/verification | Moissanite-Labs/siliquant |
| Bare-Metal Silicon Kernels | SiliKernels | Zero-spill Ampere sm_86 PTX CUDA (sm86_a16_blockh4.cu) & Intel AVX-512 VBMI/VNNI C11 (avx512_a16_blockh4.c) dequant/GEMV kernels | Moissanite-Labs/silikernels |
| Verified Zero-Spill Compiler | HoloEmit | Formally verified pure-Init Lean 4.36.0 compiler targeting zero-spill sm_86 PTX & AVX-512 C11 [16, 11, 4] SECDED decoders | Moissanite-Labs/holoemit |
| Metrology & Telemetry | SiliSense | Pure-stdlib silicon physics metrology, contention sentinel, & .sys hardware fault-canary telemetry | Moissanite-Labs/silisense |
| Workbench OS | ML-OS | Research workbench OS providing deterministic run stamping, CPU/GPU lease discipline, & environment hygiene | Moissanite-Labs/ml-os |
| Verification & Audit Harness | Aletheia | 3-mode isolated -I parity, fail-closed receipt verification, mutation auditing, & secret/path leak scanning | Foundation-0/aletheia |
| Five-Layer Stack Blueprint | Siliconcordat | Open L1–L5 stack specification (loom · weft · warp · exo · mde) | siliconcordat/.github |
Usage, Scope & Honest Limitations
- Intended Usage – Research evaluation and quantized inference of
HuggingFaceTB/SmolLM2-360Mvia Hugging Facetransformersfrom_pretrained, or dense weight inspection viasiliquant_dequant.py. - Observed Limitations & Format Boundaries – Loading with
transformersfrom_pretraineddequantizes layers in PyTorch rather than dispatching directly to the bundled fixed-4-bit PTX/AVX-512 reference GEMV kernels. Smallg=32scale granularity trades slightly higher packed bitrate (5.4037 bpw) for stability on360Mweights without natural-language calibration. - Hardware & Telemetry Scope – Where full E2E serving NVML telemetry was not separately captured at quantization time, GPU power/energy fields explicitly report
Not recorded (NVML active inference telemetry absent in run receipt)rather than extrapolating. - License Inheritance – Apache License 2.0 (inherited from
HuggingFaceTB/SmolLM2-360M; upstream notice preserved inNOTICE_UPSTREAM_LICENSE.txt).
Citation
@misc{moissanitelabs2026smollm2360msiliquanta16block,
title={SmolLM2-360M SiliQuant A16 Adaptive Zero-Cal Router (4.5 bpw)},
author={Moissanite Labs and Foundation-0},
year={2026},
howpublished={\url{https://huggingface.co/ahrazzle/SmolLM2-360M-Siliquant-A16-BlockH4-AdaptZeroCal-4.5bpw}}
}