Ternary Weights, Compression, and Efficient Intelligence A technical analysis of low-bit quantization for local LLM inference reports that ternary GGUF checkpoints for a 27B-parameter dense model shrink on-disk weights to 5.95 GB (PTQ1_0) and 7.21 GB (PQ2_0), versus roughly 54.0 GB in BF16 and 21.92 GB for a mixed NVFP4+FP8 build, per HIP-0904 from hanzoai. The analysis attributes the gains to batch-1 autoregressive decode being memory-bandwidth-bound, where throughput is capped by memory bandwidth divided by active model bytes, so cutting bytes per weight speeds decode directly while prefill still requires fast tiled matrix kernels. It also flags remaining kernel and accuracy limitations for 1.58-bit ternary weights and 1-bit BitDelta compression on Apple Silicon, NVIDIA GB10 and AMD Strix Halo (gfx1151). Ternary Weights, Compression, and Efficient Intelligence Why autoregressive LLM decode is memory-bandwidth-bound, how 1.58-bit ternary weights and 1-bit BitDelta compression shrink memory traffic on Apple Silicon, GB10, and Strix Halo, and the real kernel and accuracy limits we still have to solve. On this page If you want to understand why frontier intelligence is escaping hyperscale datacenters onto local unified-memory workstations, ignore peak TFLOPs on GPU spec sheets and look at one number instead: memory bandwidth . During interactive token generation batch-1 autoregressive decode , a transformer is almost never compute-bound. It is starved waiting for weights to stream out of memory. Low-bit quantization—pushing from 16-bit floats down through 4-bit formats NVFP4 , MXFP4 , Q4 K , AFQ4 toward 1.58-bit ternary weights {-1, 0, +1} and 1-bit behavioral deltas BitDelta —directly attacks that physical bottleneck. Here is the first-principles physics, what hanzoai/engine and zenlm actually ship on local unified-memory hardware today, and an honest accounting of the kernel and accuracy limitations that remain. 1. The roofline physics of LLM inference Generating a single output token at batch size 1 requires reading every active weight matrix from DRAM or HBM into registers once and performing roughly 2 floating-point operations one multiply, one accumulate per parameter. - In BF16 / FP16 2 bytes per parameter , that yields an arithmetic intensity of roughly 1 FLOP per byte . - Modern accelerators—Apple Silicon unified memory, NVIDIA GB10, AMD Ryzen AI Max+ 395 "Strix Halo", gfx1151 , and datacenter H100s—have compute-to-bandwidth ridge points of tens to hundreds of FLOPs per byte. Because 1 FLOP/byte sits far to the left of the hardware ridge point, decode throughput is bounded directly by: decode tok per s <= memory bandwidth bytes per s / active model bytes Prefill behaves differently: processing a 4,096-token prompt multiplies each weight across thousands of tokens in parallel, raising arithmetic intensity by orders of magnitude and flipping execution into the compute-bound regime. That split is the defining engineering tension of low-bit inference: cutting bytes per weight speeds up decode immediately, while prefill demands fast tiled matrix kernels so unpacking does not stall compute. Look at the real artifact sizes for a single 27B-parameter dense architecture Qwen3.8-27B family , verified directly from the file manifests in HIP-0904 https://github.com/hanzoai/hips/blob/main/HIPs/hip-0904-zen6.md Zen6 — Dense, Coder and Ternary Checkpoints : | Representation | Verified checkpoint / artifact | On-disk weight size | Relative to BF16 ~54 GB | Notes from HIP-0904 & hanzoai/engine | |---|---|---|---|---| | Dense BF16 baseline | 27B params × 2 bytes | ~54.0 GB | 1.00× | Exceeds 32–48 GB laptops; saturates decode bandwidth | | Mixed NVFP4 + FP8 | zenlm/zen6 3 safetensors shards, HIP-0904 §2 | 21.92 GB | 0.41× | 193 NVFP4 modules + 208 FP8 attention modules; packed 4-bit loads in ~31 GB RAM vs. ~104 GB dequant-at-load | | Ternary GGUF PQ2 0 | Ternary-Bonsai-2-27B-PQ2 0.gguf HIP-0904 §4 | 7.21 GB | 0.13× | 402 GGML type-142 tensors + Walsh–Hadamard pre-rotation block 1024 | | Ternary GGUF PTQ1 0 | Ternary-Bonsai-2-27B-PTQ1 0.gguf HIP-0904 §4 | 5.95 GB | 0.11× | Sub-6 GB footprint for a 27B-class dense backbone | Dropping a 27B backbone from ~54 GB to 6–7 GB does two things at once: it fits comfortably inside consumer unified memory with room left for long-context KV caches, and it reduces the memory bytes streamed per generated token by roughly an order of magnitude. 2. How ternary weights {-1, 0, +1} and 1-bit deltas work A binary weight {-1, +1} carries 1 bit of information per parameter, leaving no way to zero out an inactive connection. Adding zero produces a ternary alphabet {-1, 0, +1} , carrying log2 3 ≈ 1.585 bits of entropy per weight popularized in BitNet b1.58 . In a ternary linear layer, each weight block is scaled by a shared high-precision factor γ , and each element w ij takes a value in {-1, 0, +1} . The inner dot product with an activation vector x changes character completely: Standard FP16 GEMV: y i = sum j w ij x j // multiply-accumulate Ternary GEMV: y i = gamma sum j s ij ? x j : 0 // conditional add / subtract / skip Two properties make ternary compression compelling for systems engineering: 1. No floating-point multipliers in the inner loop: Multiplication collapses into integer addition, subtraction, or zero-skipping—cutting both memory traffic and arithmetic energy per token when hardware or SIMD kernels natively exploit it. 2. Packing density + outlier rotation: Five ternary trits have 3^5 = 243 < 256 states, so five weights pack cleanly into a single byte 1.6 bits/weight before block-scale overhead . Because real transformer weights contain outlier channels that distort aggressive quantization, modern ternary checkpoints—like zenlm/zen6-flash Ternary-Bonsai-2-27B-PQ2 0 documented in HIP-0904 §4—apply an orthogonal Walsh–Hadamard pre-rotation prism.hadamard. , block size 1,024 across 401 weight matrices to spread outlier energy uniformly before quantizing. This sits on the exact same compression continuum as BitDelta , which we already ship in hanzo-quant and documented in BitDelta: Serving 14 Zen Models from One GPU Cluster https://hanzo.blog/2026-02-28-bitdelta-multi-tenant/ . BitDelta keeps a shared base model and compresses each fine-tuned variant's behavioral delta Δ = W ft - W base into 1-bit signs plus a per-matrix scale α W ft ≈ W base + α · sign Δ —cutting 14 fine-tuned 70B variants from ~1.96 TB to ~262 GB. Ternary weights push extreme compression down from the fine-tuning delta into the base weights themselves . 3. What hanzoai/engine runs on unified-memory hardware today Unified-memory machines—Apple Silicon Macs, NVIDIA GB10 spark , and AMD Strix Halo evo , Ryzen AI Max+ 395 / Radeon 8060S iGPU, gfx1151 —give local models a single large pool of GPU-accessible memory 64 GB to 512 GB without PCIe offload penalties. Here is what hanzoai/engine actually implements in production source today docs/QUANTS.md , hanzo-quant/src/lib.rs , and docs/src/content/docs/guides/perf/rocm-apu-gguf.md : - AMD Strix Halo gfx1151 , ROCm : 22 native-resident GGUF quant types decode directly in quantized form no dequant-to-FP16 round trip through a single templated compute core qmatvec core