Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Artificial Intelligence
4 min read

8-Bit Beats 4-Bit: 220B MoE Achieves 6x Context & Higher Quality on 128GB

Running Tencent's 220B Hy4 Flash MoE model on a 128GB DGX Spark using EXLR8 8-bit weights and gr8 8-bit KV cache yields 1.88M total tokens across 8 streams (6x llama.cpp 4-bit) and improves quality from 57 to 65 on a 75-task benchmark, because 8-bit preserves routing accuracy in sparse expert models while drastically reducing KV cache memory per token.

An X post by @JRB_AI (Nov 30) reports that a 220B-parameter Hy4 Flash mixture-of-experts model, quantized with EXLR8 8-bit weights and served via KindlingAI's gr8 engine with 8-bit KV cache, runs on a single DGX Spark (128GB unified memory) with three striking results:

Context capacity: 8 concurrent streams hold a combined 1.88 million tokens — over 6× the capacity of the standard llama.cpp SPARK 4-bit configuration.

Quality: On the author's 75-question benchmark, the 8-bit setup scores 65/75 versus 57/75 for the 4-bit baseline.

Speed: Prefill latency is roughly halved; decode throughput stays comparable across most concurrency levels.

All figures are self-reported and not independently verified; Hy4 Flash has no official Artificial Analysis scores on OpenRouter. Nevertheless, the memory-accounting logic behind the gains is sound and worth examining.

What Is Actually Quantized: Weights vs. KV Cache

Hy4 Flash (released Nov 16 by Tencent) is a 220B total-parameter MoE with ~12B active parameters per token, 42 layers, 512 experts per layer, top-16 routing plus shared experts, and a claimed 1M-token context window. Fitting it into 128GB requires quantizing two distinct components:

Model weights (parameters): Mostly reside on SSD; only a small sliding window stays in RAM. EXLR8+gr8 uses 8-bit weights; llama.cpp SPARK uses 4-bit weights.

KV context cache (attention "scratchpad"): Lives in RAM, one copy per concurrent session. EXLR8+gr8 uses 8-bit KV cache; llama.cpp SPARK uses 4-bit KV cache.

Per-token KV cache size: EXLR8+gr8 achieves 8.5 KB ; llama.cpp SPARK uses 32 KB .

The key insight: weights are streamed from SSD, so they never dominate RAM. The real memory consumer is the KV cache, which grows linearly with context length and concurrency. gr8's 8-bit KV cache cuts per-token footprint from 32 KB to 8.5 KB — a 3.8× reduction — directly translating into 6× more total context when combined with doubled concurrency.

Why Higher Precision (8-bit) Saves Memory and Improves Quality

For dense models, lower-bit quantization saves space at the cost of accuracy. For massive MoE models like Hy4 Flash, the story differs:

Each token activates only 16 of 512 experts. Most weights are idle most of the time, so their quantization error is negligible compared to the routing decision.

4-bit quantization degrades routing precision : the router picks wrong experts, effectively "asking the wrong person."

Moving weights to 8-bit restores routing accuracy. The quality jump from 57 to 65 stems from (a) genuine precision gains in dense layers and (b) prevented routing errors. The DFly2 draft model's 0.858 acceptance rate (≈8.5 of 10 drafted tokens accepted) also contributes to the 2× prefill speedup.

Boundary condition: This trade-off favors models with huge expert counts (Hy4 Flash: 512/layer; Kimi K3.1: 800+/layer). Dense models lack the routing bottleneck, so 4-bit remains preferable for them.

Three Practical Takeaways for Local LLM Users

Budget memory in three buckets: resident weights → per-token KV cache × desired context × concurrency → headroom. KV cache efficiency (KB/token) is now a mandatory spec alongside total and active parameters.

SSD-backed weight streaming is not a Mac strategy. DGX Spark's 128GB unified memory + 4TB NVMe has no direct Mac equivalent. Mac users rely on MLX/llama.cpp-MLX; the transferable lesson is that cache precision and weight precision are independent knobs.

For large MoE, check expert count before bit-width. When a quantized MoE scores poorly, suspect routing degradation first, not model inadequacy.

The experiment demonstrates that "lower bits always save more" has a counterexample on desktop-class hardware, and it comes from a 220B Chinese open-source model.

X post screenshot showing benchmark comparison
X post screenshot showing benchmark comparison

For attribution, corrections or content rights, contactadmin@besthub.dev

Report an issue with this article

Discussion 0

Write a comment

Sign in to join the discussion

No public comments on this page. Sign in to comment