The engineering behind inference.Contact ↗
Batch & Release/Inference

Quark UINT4 Qwen3.8-Flash-Next on Ryzen AI Halo: Dropping the N-Gram Table

AMD shows how replacing the n-gram lookup table with a calibrated per-token replacement shrinks a Qwen3.8-Flash-Next checkpoint from 130 GB to 80 GB, freeing memory for KV cache on 128 GB unified-memory systems.

Quark UINT4 Qwen3.8-Flash-Next on Ryzen AI Halo: Dropping the N-Gram Table
Image: AMD ↗

AMD has published results for running Qwen3.8-Flash-Next on Ryzen AI Halo with 128 GB unified memory, where the checkpoint size becomes the binding constraint. The original BF16 checkpoint is about 360 GB, including a 102 GB n-gram table. Quantizing the routed experts to UINT4 with activation-aware weight quantization (AWQ) at group size 128 brings the checkpoint to about 181 GB while keeping the BF16 table. Quantizing the n-gram table to FP8 halves its size to about 51 GB, yielding a total of about 130 GB. That still leaves limited headroom for the OS, KV cache, and runtime buffers on a 128 GB system.

Replacing the table

AMD's Quark tooling introduces a calibrated per-token replacement table, called U, which occupies about 1.3 GB and provides a fixed vector per token regardless of context. Using U reduces the checkpoint to about 80 GB. A zero-lookup variant removes the n-gram table entirely and supplies zero vectors. All experiments ran on AMD Instinct MI355X GPUs with tensor-parallelism size 1, and the AWQ UINT4 expert weights were fixed across all lookup variants.

On MMLU-Pro with extended thinking enabled, the FP8 table scores 87.93 percent, slightly above the BF16 table's 87.79 percent. The U table scores 86.72 percent, and zero lookup scores 85.73 percent. Across 18 AWQ benchmark and preset combinations, the FP8 lookup changes the mean score by minus 1.53 to plus 1.01 percentage points relative to the BF16 table. The BFCL aggregate shows U improves the total score but reduces the non-live category from 78.98 percent to 62.93 percent. Zero lookup increases failures in non-live parallel tasks, accounting for 70 to 79 percent of additional errors.

With thinking disabled, the differences become larger. On MMLU-Pro, zero lookup drops 17.43 percentage points with round-to-nearest (RTN) quantization and 32.54 points with AWQ, while U recovers to within 1.61 to 2.12 points of the BF16 table. The BF16 table scores 85.75 percent, zero 72.47 percent, and U 84.00 percent. The FP8 table scores 85.40 percent, close to the BF16 85.35 percent. On non-thinking coding with LiveCodeBench, FP8 scores 65.04 percent, the original table 66.56 percent, and U 57.56 percent. RTN non-thinking MMLU-Pro responses without an extractable answer rise from 1.57 percent with BF16 to 19.54 percent with zero, while U brings it back to 1.89 percent. Across 45 non-thinking coding runs, only 5 of 5,895 submissions hit the 32,768-token limit, and none came from zero or U.

Memory trade-offs

Reducing or offloading the n-gram table frees memory for KV cache and runtime buffers on unified-memory systems. The FP8 table retains context-dependent information at lower precision, which explains its small quality delta. The calibrated U table is documented in the TokenPLE AWQ UINT4 model card, with dimensions and storage size in Appendix A and BF16 and RTN reference scores in Appendix B. For inference engineers, the practical takeaway is that the FP8 table offers a nearly free memory saving, while U trades some coding and non-thinking accuracy for a much smaller footprint. Zero lookup is only viable when thinking is enabled and quality loss is acceptable.

Sources & references

AMD: Beyond Embedding Quantization: Quark UINT4 Qwen3.8-Flash-Next on Ryzen AI Halo ↗Source consulted: 2026-11-16

Privacy choices

We remember your answer in this browser for 180 days. Come back here whenever you want to change it.

EssentialSaves your answer in this browser. No cookies, no third parties.Always active