<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qwen 3.8 27B at 50 tok/s with 100k Context on a 16GB GPU]]></title><description><![CDATA[<ul>
<li><a href="https://huggingface.co/jrell/Qwen3.8-27B-i1-IQ4_XS-GGUF-Smaller" target="_blank" rel="noopener noreferrer nofollow ugc">Qwen3.8-27B-i1-IQ4_XS-GGUF-Smaller</a> is a custom hybrid quantization specifically designed to fit Multi-Token Prediction (MTP) and long contexts into a 16GB VRAM budget.</li>
<li><a href="https://huggingface.co/peculiar-ragdoll/Qwen-Sharp-Chat-Templates" target="_blank" rel="noopener noreferrer nofollow ugc">Jinja chat template</a> helps use fewer thinking tokens without noticeably affecting quality, which is great for speed.</li>
<li>And the final ingridient is <a href="https://github.com/Anbeeld/beellama.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">beellama.cpp</a> engine which supports the <code>kvarn</code> KV cache types needed for this optimization.</li>
</ul>
<p dir="auto">Here's a command to start the server, the magic is in the <code>kvarn</code> cache settings and the tail precision:</p>
<pre><code class="language-bash">"$LLAMA_DIR"/llama-server \
    -m "$MODEL_PATH" \
    -a "$MODEL_NAME" \
    --port 11434 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --presence-penalty 0.0 \
    --repeat-penalty 1.0 \
    --parallel 1 \
    --n-gpu-layers 99 \
    --batch-size 1024 \
    --ubatch-size 256 \
    --flash-attn on \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --cache-type-k kvarn5 \
    --cache-type-v kvarn4 \
    --kv-tail-tokens 1024 \
    --ctx-size 100000 \
    --fit-ctx 100000 \
    --jinja \
    --chat-template-kwargs '{"preserve_thinking": true, "reasoning_effort": "medium"}' \
    --chat-template-file "$MODEL_JINJA" \
    --no-mmproj-offload \
    --threads 7 \
    --threads-batch 8 \
    --metrics \
    --verbosity 3 \
    --perf
</code></pre>
<p dir="auto">This should give you around 50 tok/sec using just under 16GB of VRAM.</p>
<p dir="auto">The <code>kvarn5</code> (K) / <code>kvarn4</code> use the <code>kvarn</code> types from beellama to balance memory and quality. Using speculative decoding <code>--spec-type draft-mtp</code> with 2 draft tokens gives another speed boost. The <code>--kv-tail-tokens 1024</code> precision tail is key for keeping recent tokens at higher precision to preserve output quality. Finally, the near-lossless <code>kvarn</code> quantization for the KV cache is the real star here. It delivers q5-class fidelity at q4-class memory usage, which is incredible.</p>
]]></description><link>https://citiverse.it/topic/a8b28247-6c5a-4a80-9415-73de57cdd1ee/qwen-3.8-27b-at-50-tok-s-with-100k-context-on-a-16gb-gpu</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 13:09:14 GMT</lastBuildDate><atom:link href="https://citiverse.it/topic/a8b28247-6c5a-4a80-9415-73de57cdd1ee.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Aug 2026 22:13:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qwen 3.8 27B at 50 tok/s with 100k Context on a 16GB GPU on Tue, 01 Sep 2026 11:57:27 GMT]]></title><description><![CDATA[<p dir="auto">I saw the guide posted on reddit originally, so not sure which card it was tested with unfortunately.</p>
]]></description><link>https://citiverse.it/post/https://lemmy.ml/comment/27569524</link><guid isPermaLink="true">https://citiverse.it/post/https://lemmy.ml/comment/27569524</guid><dc:creator><![CDATA[yogthos@lemmy.ml]]></dc:creator><pubDate>Tue, 01 Sep 2026 11:57:27 GMT</pubDate></item><item><title><![CDATA[Reply to Qwen 3.8 27B at 50 tok/s with 100k Context on a 16GB GPU on Tue, 01 Sep 2026 06:17:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi, thanks for posting this guide!</p>
<p dir="auto">I tried it on a modern laptop with 32GB of unified memory. It starts at 40 tok/s when loading the context, but the output drops to 3 tok/s.</p>
<p dir="auto">Could I ask you which GPU you are using for these tests? What context size would a 16GB GPU give?</p>
]]></description><link>https://citiverse.it/post/https://lemmy.ml/comment/27566106</link><guid isPermaLink="true">https://citiverse.it/post/https://lemmy.ml/comment/27566106</guid><dc:creator><![CDATA[bruce965@lemmy.ml]]></dc:creator><pubDate>Tue, 01 Sep 2026 06:17:15 GMT</pubDate></item></channel></rss>