Skip to main content
Back

Nari Labs Squeezes a 27B NariQ Model Into One 24GB GPU

Nari Labs squeezes Qwen3.8-27B from 53.8GB to 10.1GB using trellis-coded quantization, matching full-precision performance on coding agent benchmarks.

Pro

  • Nari Labs released NariQ GGUFs of Qwen3.8-27B at 3, 2.5, and 2 bits per weight
  • 3-bit file is 10.1GB vs 53.8GB BF16, matching or beating BF16 on DeepSWE and Terminal-Bench
  • Uses trellis-coded post-training quantization calibrated on real coding-agent traces
  • Fits 135K context on a single 24GB GPU at 3-bit, 160K at 2.5-bit
  • Requires the Nari Labs llama.cpp fork; stock llama.cpp and Ollama cannot load it yet
  • Optimized for Blackwell SM120; Ampere, Ada, Hopper and Apple Metal are slower than comparable GGUFs

Nari Labs has released NariQ files, a collection of 2-bit to 3-bit GGUF quantizations of Qwen3.8-27B. The release reduces the model’s 53.8GB BF16 weights to between 6.75GB and 10.1GB.

In Nari Labs’ evaluations, the 3-bit and 2.5-bit variants remained close to the BF16 model on coding-agent, terminal, math, and image-understanding tasks. The smaller weights leave enough memory for a context window of roughly 135K tokens on a 24GB GPU, although the specialized format currently requires Nari Labs’ llama.cpp fork.

Where 3 bits hold up

Nari Labs tested the variants through the Claude Code CLI, using the same agent harness for each model. DeepSWE measures software-engineering agents, Terminal-Bench covers command-line tasks, and AIME tests competition mathematics.

Benchmark results published by Nari Labs
Variant File size DeepSWE v1.1 Terminal-Bench 2.1 AIME 25+26
BF16 53.8GB 39.8% 62.6% 97.7%
NariQ 3-bit 10.1GB 41.0% 63.8% 98.3%
NariQ 2.5-bit 8.4GB 41.9% 60.2% 96.5%
NariQ 2-bit 6.8GB 28.6% 52.4% 86.0%

The 3-bit variant compresses the weights by about 5.3 times while matching or slightly exceeding BF16 in the published results. Nari Labs did not publish confidence intervals, so the small leads over BF16 do not establish that quantization improves the model. The 2-bit variant shows a clearer quality loss, trailing BF16 by 11.2 percentage points on DeepSWE, 10.2 points on Terminal-Bench, and 11.7 points on AIME.

Nari Labs also reports that the 3-bit and 2.5-bit versions remain close to BF16 on image-understanding tests. The vision encoder remains in BF16, so those results measure a system in which the language model is quantized while the image-processing component retains its original precision.

DeepSWE scores plotted against model file size
Published DeepSWE results compare task score with the size of each model file.
Terminal-Bench 2.1 scores plotted against model file size
Terminal-Bench 2.1 shows a larger decline at 2 bits than at 2.5 or 3 bits.

Inside the trellis-coded quantizer

NariQ applies post-training quantization, which compresses an already trained model without repeating the full training process. Its trellis coding generates candidate weight values with a shared pseudorandom generator, then uses a Viterbi-style search to select sequences that best reconstruct the original weights. Evaluating sequences together gives the method more flexibility than assigning each weight independently from a small fixed codebook.

The method builds on the QTIP paper by Tseng and colleagues, which demonstrated trellis-coded quantization at low bitrates. Nari Labs calibrated its variants with coding-agent traces, exposing the quantizer to activation patterns from the intended workload. The published benchmarks do not isolate the contribution of that calibration data from the quantization method itself.

One GPU, long contexts

The files require the runtime fork because upstream llama.cpp, Ollama, and LM Studio do not yet recognize NariQ’s tensor types. Nari Labs provides a Linux quick-start script for NVIDIA GPUs with driver 570 or newer. The script downloads the binaries, verifies the model files, and selects a context size based on available memory.

Approximate context capacity by quantization level
Variant Context on a 24GB GPU
3-bit About 135K tokens
2.5-bit About 160K tokens
2-bit About 184K tokens
Full context 262K tokens requires about 27GB to 30GB

Nari Labs measured decode throughput on an RTX PRO 6000 Blackwell GPU, which has more memory and different hardware characteristics than a typical 24GB consumer card. The 3-bit variant reached 88.9 tokens per second at 4K context and 70.7 tokens per second at 64K; the 2-bit version reached 111.7 and 85.0 tokens per second, respectively.

Compatibility gaps in the first release

The initial kernels target SM120 hardware, including the RTX PRO 6000 Blackwell used for Nari Labs’ speed tests. Ampere, Ada, and Hopper GPUs can run the files but are currently slower than comparable conventional GGUF models, while older NVIDIA architectures fall back to CPU execution.

Current hardware support
Platform Status
NVIDIA SM120 Optimized path
NVIDIA Ampere, Ada, and Hopper Supported with slower kernels
Pre-Ampere NVIDIA GPUs Slow CPU fallback
Apple M-series Experimental Metal support; about 3.8 tokens per second for 3-bit on an M3 Pro
AMD GPUs Experimental ROCm branch awaiting validation on RX 7900 XTX and RX 9070 XT
Intel GPUs Unsupported

Memory that remains in BF16

  • The vision encoder remains in BF16.
  • The multi-token prediction module is not quantized.
  • The KV cache and activations remain in BF16, limiting further context growth on memory-constrained GPUs.

The practical payoff

Sub-4-bit quantization often produces larger losses on long-running agent tasks because small prediction errors can compound across many tool calls. NariQ’s published results show that 3-bit and 2.5-bit weights can stay close to BF16 on the selected workloads, while the 2-bit results identify a more pronounced quality boundary.

On a 24GB GPU, the 3-bit release leaves room for both a 27B model and a six-figure context window, making local coding-agent experiments possible without splitting the model across multiple cards. Runtime compatibility remains the main deployment constraint until the tensor types and optimized kernels reach broader inference tools.

The model files and runtime fork use the Apache-2.0 license. Nari Labs has also published a technical report, giving developers enough implementation detail to study the method and adapt it to other base models.