Skip to content
VRAM Lab

Qwen3.8-27B NariQ fits 8 GB GPUs, but 2.5-bit is the real floor

Compare 2.0-bit, 2.5-bit, and 3.0-bit NariQ GGUFs of Qwen3.8-27B on 8-16 GB NVIDIA GPUs, build nari-llama.cpp, size KV cache, and weigh fork trade-offs.

7 minutes read Czytaj po polsku

Share
On this page (8)
  1. Key takeaways
  2. Why NariQ changes the 8-16 GB math for Qwen3.8-27B
  3. VRAM budgets on 8 GB, 12 GB, and 16 GB GPUs
  4. NariQ vs. standard Q4 and IQ3: quality and agentic trade-offs
  5. Getting and building nari-labs/nari-llama.cpp
  6. Running llama-server with thinking, tools, and right-sized context
  7. The operational trade-offs of leaving mainline llama.cpp and Ollama
  8. FAQ

Key takeaways

  • NariQ 2.5-bit fits 12 GB GPUs and 3.0-bit fits 16 GB cards while keeping near-BF16 agent scores.
  • The 2.0-bit quant (6.75 GB) fits 8 GB cards text-only but drops sharply on DeepSWE and Terminal-Bench.
  • You must run the nari-labs/nari-llama.cpp fork on Linux with an NVIDIA GPU and driver 570 or newer.
  • Omitting the 0.93 GB BF16 mmproj recovers nearly a gigabyte of VRAM for text-only coding setups.

Fitting a 27B coding model onto an 8 GB, 12 GB, or 16 GB GPU usually forces an ugly compromise: standard 4-bit GGUFs spill into system RAM once you add KV cache, while conventional 2-bit and 3-bit quantizations tend to degrade multi-step coding and tool calling. Nari Labs released a trellis-coded alternative for Qwen3.8-27B on November 20, 2026, claiming near-BF16 agentic accuracy down to 2.5 bits per weight. This guide walks through the VRAM math for 8-16 GB NVIDIA cards, how to run nari-labs/nari-llama.cpp on Linux, and what you trade away by stepping outside mainline llama.cpp and Ollama.

Why NariQ changes the 8-16 GB math for Qwen3.8-27B

As covered in our Qwen3.8-27B sizing breakdown and GGUF VRAM math guide, a 27B parameter model in standard Q4-class weights sits too close to 16 GB to leave healthy room for KV cache and compute buffers. Dropping to conventional IQ3 or Q2 GGUFs solves the footprint issue, yet generic low-bit quantization tends to degrade multi-turn reasoning and tool schemas.

Nari Labs addressed that gap with nari-labs/Qwen3.8-27B-NariQ-GGUF, an Apache-2.0 release based on Qwen/Qwen3.8-27B and documented in technical report arXiv:2611.26157 (with discussion on Hacker News). Rather than conventional per-block GGUF quantization, NariQ uses trellis-coded post-training quantization calibrated on real coding-agent traces and packed into a single-GPU tensor layout.

The Hugging Face repository ships four artifacts alongside the 53.8 GB BF16 baseline:

ArtifactBit width / roleFile sizeVision support
Qwen3.8-27B-NariQ-2.0bpw.gguf2.00 bpw weights6.75 GBOptional (--mmproj)
Qwen3.8-27B-NariQ-2.5bpw.gguf2.50 bpw weights8.44 GBOptional (--mmproj)
Qwen3.8-27B-NariQ-3.0bpw.gguf3.00 bpw weights (default)10.12 GBOptional (--mmproj)
Qwen3.8-27B-NariQ-mmproj-BF16.gguf16-bit vision projector0.93 GBShared across all three

Because the image-text-to-text vision projector lives in its own 0.93 GB BF16 file, you can treat vision as an optional toggle instead of a permanent VRAM tax.

VRAM budgets on 8 GB, 12 GB, and 16 GB GPUs

Weight file size is only the baseline. Real VRAM allocation follows a simple sum:

Total VRAM = model weights + optional mmproj (0.93 GB) + KV cache + CUDA scratch + display overhead

On text-only coding workflows where you never attach screenshots or UI mockups, omitting --mmproj immediately recovers 0.93 GB for context or desktop compositing.

With an 8 GB GPU, Qwen3.8-27B-NariQ-2.0bpw.gguf at 6.75 GB (6,753,954,304 bytes) is the only weight file that fits inside VRAM. It leaves roughly 1.25 GB for KV cache, CUDA scratch buffers, and display overhead, restricting you to text-only inference, modest context lengths, and ideally a headless Linux node or minimal display use.

With a 12 GB card such as an NVIDIA GeForce RTX 3060 12 GB, Qwen3.8-27B-NariQ-2.5bpw.gguf (8.44 GB) hits the sweet spot. Text-only setups keep roughly 3.5 GB of headroom, while adding the 0.93 GB vision projector brings weights to 9.37 GB and leaves around 2.6 GB for shorter multimodal contexts. By contrast, 3.0-bit at 10.12 GB (11.05 GB with mmproj) sits too tight on 12 GB once CUDA scratch and display memory are included.

With a 16 GB card such as an ASUS GeForce RTX 5060 Ti Dual OC 16 GB, both 2.5-bit and 3.0-bit work comfortably. Loading 2.5-bit with mmproj consumes 9.37 GB, leaving well over 6 GB for KV cache and compute buffers. Moving to 3.0-bit (10.12 GB text-only, or 11.05 GB with mmproj) still leaves roughly 5 to 6 GB for KV cache and compute buffers.

For reference on larger cards, Nari Labs reports that -c 131072 (128K context) with mmproj loaded barely fits a 24 GB GPU like an NVIDIA GeForce RTX 3090, and must be lowered if a display shares the GPU. Running the full 262,144-token context window requires 32 GB or more of VRAM.

NariQ Qwen3.8-27B GGUF file sizes vs. GPU VRAM

Weight file sizes only; add 0.93 GB for the vision projector (mmproj) plus KV cache.

051015208 GB GPU12 GB GPU16 GB GPUNariQ 2.0-bit6.75 GBNariQ 2.5-bit8.44 GBNariQ 3.0-bit10.12 GB

Source: nari-labs/Qwen3.8-27B-NariQ-GGUF

Show data
NariQ 2.0-bit6.75 GB
NariQ 2.5-bit8.44 GB
NariQ 3.0-bit10.12 GB

NariQ vs. standard Q4 and IQ3: quality and agentic trade-offs

Nari Labs benchmarked all three NariQ variants against the 53.8 GB BF16 baseline (with DeepSWE v1.1 and Terminal-Bench 2.1 run via Claude Code CLI 2.1.309: thinking on, max effort, 262,144 context, temperature 1.0, top-p 0.95, top-k 20):

Benchmark (Nari Labs setup)BF16 (53.8 GB)NariQ 3-bit (10.12 GB)NariQ 2.5-bit (8.44 GB)NariQ 2-bit (6.75 GB)
DeepSWE v1.1 (113 tasks x 3, mean pass@1)39.8% (45.0)41.0% (46.3)41.9% (47.3)28.6% (32.3)
Terminal-Bench 2.1 (82 tasks x 3)62.6% (154)63.8% (157)60.2% (148)52.4% (129)
AIME 25+26 (60 x 8)97.7% (469)98.3% (472)96.5% (463)86.0% (413)
MGSM (250 x 11 languages)94.0% (2584)93.1% (2561)91.8% (2525)90.6% (2491)
RealWorldQA (765 x 3)82.4% (1890)82.4% (1890)81.3% (1866)80.9% (1856)

On DeepSWE v1.1 (338 of 339 BF16 runs graded due to one verifier timeout; 83.1% mean new tests passed for BF16 vs. 82.9% for 3-bit and 83.2% for 2.5-bit), both 3.0-bit and 2.5-bit match or edge past BF16. They also match or stay within 2.4 percentage points of BF16 across Terminal-Bench 2.1, AIME 25+26, MGSM, and RealWorldQA.

The sharp cliff sits at 2.0-bit. Dropping from 2.5-bit to 2.0-bit pulls DeepSWE v1.1 down to 28.6% (with 77.2% mean new tests passed), Terminal-Bench 2.1 to 52.4%, and AIME 25+26 to 86.0%. Whenever you have 12 GB or more of VRAM, treat 2.5-bit as the practical floor for agentic work.

Comparing NariQ against standard IQ3 or Q4 GGUFs is a trade between agent fidelity and runtime compatibility. Standard IQ3 and Q4 files run natively in mainline llama.cpp and Ollama across diverse hardware, whereas NariQ targets higher coding-agent preservation at 2.5-3.0 bpw. Also note Nari Labs' caveat: their published charts compare Claude Code CLI runs against Unsloth Dynamic V3.1 numbers measured on mini-swe-agent, so judge any quantization against the BF16 baseline of its own harness rather than across harnesses.

DeepSWE v1.1 pass@1 by NariQ precision (%)

Nari Labs measurements (113 tasks x 3 rounds, Claude Code CLI, 262K context).

01020304050BF16 baselineBF16 (53.8 GB)39.8 %NariQ 3-bit41 %NariQ 2.5-bit41.9 %NariQ 2-bit28.6 %

Source: nari-labs/Qwen3.8-27B-NariQ-GGUF

Show data
BF16 (53.8 GB)39.8 %
NariQ 3-bit41 %
NariQ 2.5-bit41.9 %
NariQ 2-bit28.6 %

Getting and building nari-labs/nari-llama.cpp

Mainline llama.cpp and Ollama cannot load NariQ's trellis-coded layout. You must use the nari-labs/nari-llama.cpp fork (release b12431-nariv0) on Linux with an NVIDIA GPU and driver 570 or newer.

The official quickstart uses a single bootstrap script for 3.0, 2.5, or 2.0:

curl -fsSLO https://github.com/nari-labs/nari-llama.cpp/releases/download/b12431-nariv0/run.sh && bash run.sh 3.0

run.sh downloads the fork's release binaries and the matching GGUF files, verifies them, and sizes context automatically for your GPU.

If you prefer compiling locally rather than executing release scripts on a homelab host, confirm that the CUDA toolkit and NVIDIA driver 570+ are present, inspect the fork's README for any NariQ-specific CMake options, and build llama-server with the standard llama.cpp CUDA configuration:

nvidia-smi
nvcc --version
git clone https://github.com/nari-labs/nari-llama.cpp.git
cd nari-llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --target llama-server -j

Running llama-server with thinking, tools, and right-sized context

When managing files yourself in Docker or systemd, pull the exact GGUFs with the Hugging Face CLI:

hf download nari-labs/Qwen3.8-27B-NariQ-GGUF Qwen3.8-27B-NariQ-3.0bpw.gguf Qwen3.8-27B-NariQ-mmproj-BF16.gguf --local-dir .

Swap 3.0bpw for 2.5bpw or 2.0bpw on 12 GB or 8 GB cards, and omit Qwen3.8-27B-NariQ-mmproj-BF16.gguf on text-only setups to save 0.93 GB.

Nari Labs' reference llama-server invocation enables Jinja templating and Qwen3.8-27B sampling defaults:

llama-server -m Qwen3.8-27B-NariQ-3.0bpw.gguf --mmproj Qwen3.8-27B-NariQ-mmproj-BF16.gguf -ngl 99 -c 131072 --jinja --port 8080 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0

The --jinja flag is mandatory. The model's Jinja template controls enable_thinking, reasoning_effort (xhigh default, medium, low), <think>...</think> blocks, XML <tool_call><function=...>...</function></tool_call> calls, and vision tags (<|vision_start|><|image_pad|><|vision_end|> and <|video_pad|>).

The operational trade-offs of leaving mainline llama.cpp and Ollama

Before committing to a fork, compare the workflow against our inference server comparison and Ollama with Open WebUI setup guide. Stepping outside mainline llama.cpp and Ollama means giving up ollama pull convenience, unified model lifecycle management, and instant upstream fixes.

In a homelab, maintaining nari-llama.cpp adds four practical costs:

  • Release pinning: You need to pin b12431-nariv0 inside a Docker image, systemd unit, or VM (see our Proxmox GPU passthrough guide if you isolate GPU workloads per guest).
  • Binary auditing: You must either inspect and compile the source yourself or trust third-party release binaries.
  • Side-by-side ports: Most setups run this llama-server on its own port (such as 8080) alongside Ollama or Open WebUI rather than replacing everything.
  • Single-vendor lock-in: The fork targets single-GPU Linux nodes with NVIDIA driver 570+, offering no Apple Silicon Metal or AMD ROCm portability unless NariQ is merged upstream.

FAQ

Can Ollama or mainline llama.cpp load NariQ GGUF files?

No. NariQ uses a custom trellis-coded tensor layout that mainline llama.cpp and Ollama do not support, so you must run the nari-labs/nari-llama.cpp fork (release b12431-nariv0).

Is NariQ 2.0-bit worth running for coding agents on an 8 GB GPU?

Only for lightweight experiments. At 6.75 GB it is the only variant that fits text-only on an 8 GB card, but Nari Labs reports DeepSWE v1.1 drops from 41.9% at 2.5-bit to 28.6% at 2.0-bit.

How much VRAM does the vision projector add to Qwen3.8-27B NariQ?

The shared Qwen3.8-27B-NariQ-mmproj-BF16.gguf file adds 0.93 GB on top of whichever bit-width you choose. Skipping --mmproj frees that 0.93 GB immediately for KV cache in text-only coding setups.

Found it useful? Pass it on.

Share
Esc
↑↓ select↵ openCtrl K or / to search