RTX 5060 Ti 16 GB: a large Qwen model runs, but at the cost of compromises

A test shows that a Qwen3.8-27B model can run on an RTX 5060 Ti 16 GB with llama.cpp. The memory margin remains tight, and performance strongly depends on the reasoning mode and context.

On an RTX 5060 Ti 16 GB, a deployment test shows that a Qwen3.8-27B quantified in UD-Q3_K_XL can run entirely on the GPU, with llama.cpp and CUDA 12.8. The exercise is possible, but the memory margin is narrow and the result depends as much on tuning as on the model itself. In short, it can be made to fit, not to be forgotten.

Un 27B qui passe, mais pas sans discipline

The scenario relies on a precise configuration: RTX 5060 Ti 16 GB, Ryzen 5 9600X, and 32 GB DDR5, with a recent build of llama.cpp on CUDA 12.8. The model used, Qwen3.8-27B-GGUF UD-Q3_K_XL, weighs 13.4 GB once quantified in dynamic 3 bits. This size allows a full load on the GPU but leaves little room for compute buffers and KV cache, which explains why the settings are so sensitive.

The reported measurements give about 980 tok/s in prefill on 4096 tokens and 28 tok/s in decoding at 128 tokens. The context batch varies depending on choices: 120,832 tokens without vision, 114,688 with another configuration, then 77,824 tokens with the visual module loaded. The observed memory peak reaches 15.6 GB out of 16 GB, a situation where every megabyte really counts.

Pourquoi le mode “thinking” change la donne

The major difference comes from the reasoning mode. With thinking on, the model achieves better scores on several benchmarks but consumes more tokens and slows execution. On LiveCodeBench v6, the test reports 0.5 with thinking on versus 0.367 with thinking off, with a lower throughput. On AIME26, the gain depends on the token budget: 9 out of 30 questions exceeded the 8192 token limit, then 4 were corrected with 16,384 tokens, a gain of 13.3 points according to the source score.

The observation is consistent with other cited metrics. With thinking on, Qwen3.8-27B outperforms the reference Qwen3.6-35B-A3B setup on the four compared benchmarks but at the cost of slower speed: 28 tok/s versus 50 tok/s for the MoE model, and a shorter context window, from 76K to 120K tokens depending on the mode, versus 200K with the comparison setup. The fastest model is therefore not necessarily the one that scores the most points.

Ce que le test dit de l’architecture Qwen3.8

The core issue is not only quantization but architecture. According to the note, the GGUF format relies on a qwen35 structure, with 65 layers in total: 48 SSM layers, 17 full attention layers, plus an MTP layer at the end. The KV cache only covers the 17 attention layers, limiting its consumption to about 20 KB per token in q4_0 for K and V. This makes a long context possible on a 16 GB card.

Another useful point for local deployments: the dense mode without experts offers less flexibility than a MoE, as each token passes through all 13.4 GB of weights. The test then estimates a theoretical limit around 33 tok/s, versus 28 tok/s measured. Any CPU offloading of part of the model further slows decoding, explaining why versions that are too heavy or poorly placed in memory are immediately discarded.

Les réglages qui font la différence

The presented deployment recommends enabling FlashAttention with -fa on, as the V cache in q4_0 depends on it. Without this step, context loading fails. The -ub parameter, which adjusts the prefill batch size, allows saving a few dozen megabytes without losing speed as long as it remains in a reasonable range. According to the provided table, ub 768 and ub 512 offer a good compromise, while 320, 384, or 128 bring little benefit.

The visual part requires even more caution. With the mmproj-F16 module and a context of 77,824 tokens, the first loading of a 1 MB image passes. At 86,016 tokens, startup still works, but the first visual encoding causes an OOM, i.e., a GPU memory overflow, followed by a crash. The test thus concludes that initialization capacity is not the same as actual inference capacity. A charming detail, but graphics cards rarely like surprises.

Key points

  • Qwen3.8-27B fits on 16 GB with UD-Q3_K_XL.
  • The test dates from August 15, 2026.
  • LiveCodeBench v6 reaches 0.5 with thinking on.
  • The off mode remains faster, at 28 tok/s.
  • The configuration cites RTX 5060 Ti and llama.cpp master.
  • The visual context drops to 77,824 tokens.

By the numbers

  • 13.4 GB — weight of the UD-Q3_K_XL model, according to the test note.
  • 15.6 GB / 16 GB — memory usage observed on the RTX 5060 Ti.
  • 980 tok/s — prefill at pp4096, local measurement reported.
  • 28 tok/s — decoding measured during generation, on the same machine.
  • 77,824 tokens — stable visual context before OOM at first encoding.

To read