Qwen3.8 27B vs Gemma 4 26B: Which Model to Run on One GPU

Pick Qwen3.8-27B Uncensored for coding and hard reasoning: the makers report 90.3 against 77.1 on LiveCodeBench v6. Pick Gemma4-26B-A4B Uncensored when speed matters: on the same RTX 5090 pod it generates 175 tokens per second against Qwen's 79. Both serve a 256K context with image input and tool calls, and both cost the same on OpenLLM Buddy.
That makes this an unusual comparison. Budget and hardware do not separate the two, so the decision comes down to one question: is your workload limited by how good each answer is, or by how quickly answers arrive? The sections below show where every number comes from and what it does not prove.
Qwen3.8-27B vs Gemma4-26B-A4B side by side
| Qwen3.8-27B Uncensored | Gemma4-26B-A4B Uncensored | |
|---|---|---|
| Maker of the base model | Alibaba's Qwen team | Google DeepMind |
| Architecture | 27B parameters, dense, 64 layers | Mixture-of-experts: 25.2B total, about 3.8B active per token |
| Input and output | Text and images in, text out | Text and images in, text out |
| Context on our pods | 256K tokens (262,144) | 256K tokens (262,144) |
| Build on OpenLLM Buddy | Refusals removed, tuned to spend fewer thinking tokens, 4-bit with an MTP head | Refusals removed, 4-bit quantization-aware trained, MTP draft head |
| Served by | llama.cpp | llama.cpp |
| GPUs on OpenLLM Buddy | One RTX 5090, one RTX PRO 6000 or one H100 | One RTX 5090 or one RTX PRO 6000 |
| Speed on one RTX 5090 (measured on our pods) | 79 tokens per second | 175 tokens per second |
| Memory at 256K on an RTX 5090 (our estimate) | about 29 GB | about 21.5 GB |
| LiveCodeBench v6 (maker, base model) | 90.3 | 77.1 |
| GPQA Diamond (maker, base model) | 89.2 | 82.3 |
| Tool calls | Yes | Yes |
| Licence of the base model | Apache 2.0 | Apache 2.0 |
| Price | From about $19 for 11 hours (November 2026) | From about $19 for 11 hours (November 2026) |
Three rows carry the decision: architecture, speed and the coding score. Almost everything else is equal.
Speed: Gemma is more than twice as fast
On our RTX 5090 pods, Gemma4-26B-A4B Uncensored generates 175 tokens per second and Qwen3.8-27B Uncensored generates 79 tokens per second, single stream. That is a ratio of 2.2 to 1 on the same card. In reading terms it is roughly 130 words a second against roughly 60. A 600-token answer, about 450 words, takes around 3.4 seconds from Gemma and around 7.6 seconds from Qwen.
Most of the gap comes from how the two models are built. Qwen is dense: all 27 billion parameters take part in every token. Gemma is a mixture-of-experts model with 128 experts, of which 8 are used per token, so only about 3.8 billion of its 25.2 billion parameters do work for any one token. Less arithmetic per token means more tokens per second on the same GPU.
Both builds also carry a multi-token-prediction (MTP) head, a small extra component that drafts the next few tokens so the main model can confirm several at once. The author of the Gemma build reports about 35% faster generation with it and identical output. The author of the Qwen build reports over 90 tokens per second with MTP on an RTX 5090; our measured figure on a production pod is 79.
Two more data points help you size the difference:
- Gemma on a smaller card still wins on speed. We also measured Gemma at 112 tokens per second on an RTX 4090. That card is not on Gemma's pod list, but it shows the margin: Gemma on a 24 GB card is faster than Qwen on a 32 GB RTX 5090.
- Qwen thinks first. Qwen reasons before it answers by default. Thinking tokens come out at the same 79 tokens per second, and you wait for them before the visible answer starts. This build was tuned to spend fewer of them, and setting
reasoning_efforttolowormediumshortens the wait on easy tasks.
Both figures are for a fresh, single conversation. Any model slows down as its context window fills, because each new token has to take account of everything before it. Why token speed matters shows what these rates feel like in a chat window and in an agent loop.
Quality: Qwen leads on the makers' coding benchmark
The one coding benchmark both makers publish is LiveCodeBench v6. Alibaba reports 90.3 for the Qwen base model and Google reports 77.1 for the Gemma base model. That 13.2-point gap is the main reason to accept Qwen's lower speed.
| Benchmark (reported by each maker for its base model) | Qwen | Gemma |
|---|---|---|
| LiveCodeBench v6 | 90.3 | 77.1 |
| GPQA Diamond | 89.2 | 82.3 |
| SWE-bench Pro | 61.7 | no figure in our data |
| Terminal-Bench 2.1 | 73.0 | no figure in our data |
| MMLU Pro | no figure in our data | 82.6 |
| MMMU Pro | no figure in our data | 73.8 |
How to read the table:
- Coding. Qwen leads the shared benchmark clearly. Its maker also reports 61.7 on SWE-bench Pro and 73.0 on Terminal-Bench 2.1, two tests built around repository fixes and terminal tasks. We hold no Gemma figure for either, so those rows do not rank the two models. They only tell you Qwen has been measured on agent-style coding work.
- Science reasoning. On GPQA Diamond, a graduate-level science test, Qwen is 6.9 points ahead.
- General knowledge and images. Google reports 82.6 on MMLU Pro and 73.8 on MMMU Pro, a multimodal benchmark. We hold no Qwen figure on either, so this page does not say which model reads images better.
Three caveats keep these numbers honest.
First, each score was published by the model's own maker, not by one independent lab running both. A shared benchmark version removes one source of mismatch, not all of them.
Second, the scores describe the base models, not the uncensored 4-bit builds on the pods. For Qwen there is a partial check: the build's author measured it against the base at 8-bit and reports 0.735 against 0.591 on ARC-Challenge and 0.882 against 0.782 on ARC-Easy, so on those two reasoning tests the build scored above the base. We hold no equivalent before-and-after score for the Gemma build.
Third, quantization treats the two differently. Google trained Gemma for 4-bit use (quantization-aware training), so the maker describes the 4-bit file as the intended one, not a compromise. Qwen runs at 4-bit because that is the size that fits 256K of context on a 32 GB card, and a 4-bit file is generally a little less precise than larger quants.
Context and memory: the same window at a different cost
Both models have a native context of 262,144 tokens, and our pods serve all of it. That is around 190,000 words: a mid-sized codebase, a book, or a long thread of documents in one prompt. Why context length matters covers what fits.
What differs is how much GPU memory that window costs. These are our estimates for one RTX 5090 at the full 256K:
| Part | Qwen3.8-27B Uncensored | Gemma4-26B-A4B Uncensored |
|---|---|---|
| Model file | 18.5 GB (4-bit weights with the MTP head) | 16.8 GB |
| MTP head | included above | about 0.5 GB |
| Vision projector | 0.9 GB | 1.2 GB |
| Context cache at 256K | about 9.5 GB (8-bit) | about 3 GB |
| Total | about 29 GB of 32 GB | about 21.5 GB of 32 GB |
Gemma's context cache is about a third the size of Qwen's because only 5 of its 30 layers keep the full context. Qwen has 64 layers and its cache, even stored at 8-bit, takes about 9.5 GB.
The practical effect: Qwen uses nearly the whole card. Its larger quants, 5-bit and up, do not fit 256K on 32 GB, which is why the pod runs the 4-bit file. Gemma leaves about 10 GB unused on the same card. For the full breakdown by quant and GPU, see Qwen3.8 27B VRAM and GPU requirements and Gemma 4 26B VRAM requirements.
Hardware and price: identical on our pods
Both models run on one RTX 5090 or one RTX PRO 6000. Qwen can also be deployed on one H100. Both start from about $19 for 11 hours (November 2026). Prices follow GPU rental rates, so check the live figure before you buy.
You rent the pod by time: 11 hours, 24 hours, 1 week or 1 month. There is no per-token billing, and the pod stops when the pack's time ends. Nobody else shares the GPU.
Because the price is the same, the speed difference turns directly into output per dollar. Run flat out for 11 hours on a single stream and the ceiling is about 6.9 million generated tokens for Gemma and about 3.1 million for Qwen, for the same pack. Real workloads sit below that ceiling, since pods wait for requests and spend time reading prompts, but the ratio holds.
So for bulk jobs such as classifying, extracting or summarising thousands of documents, Gemma gets through more than twice the volume per pack. For a coding agent, where a wrong patch costs a retry and a review, the better coding score is usually worth more than raw throughput.
Deploy Qwen3.8-27B Uncensored or deploy Gemma4-26B-A4B Uncensored.
Uncensored: both builds, different published tests
"Uncensored" means the same thing for both: the refusal behaviour trained into the base model was removed from the weights, and no provider content filter sits in front of the model on your pod. Prompts and outputs stay on the pod.
The published refusal tests are not the same test, so read them separately:
- Qwen. On a 100-prompt set, the base model refused 99. After refusal removal the build refused none, and after the final tune it refuses 11. It refuses far less often than the base, not never.
- Gemma. The author of the build reports 0 refusals on a 465-prompt test. That figure is self-reported.
Different prompt sets and different authors mean you should not read 0 against 11 as a strict ranking. Both builds are useful for the same work: security research, fiction with dark themes, medical and legal questions answered directly, red-teaming your own filters, and adult creative writing. You remain responsible for using either lawfully. AI chatbot guardrails vs your own GPU explains the difference a private pod makes.
Licence: Apache 2.0 on both
The Qwen base model is released under Apache 2.0. The Gemma base model is Apache 2.0 as Google publishes it. Licence is therefore not a reason to choose one over the other. Read the licence text yourself before you build a product on either.
Calling them: one API, different sampling
Each pod exposes the same OpenAI-compatible API, with chat completions, streaming, tool calls and image input. Gemma's maker describes its function calling as native. Neither build takes audio: Google states there is no audio input on the 26B, and Qwen is images in, text out.
The same client code works for both pods. Only the base URL, the key and the model id change:
from openai import OpenAI
# Same code for either pod: swap the base URL, key and model id.
client = OpenAI(base_url="https://YOUR-POD-ENDPOINT/v1", api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
model="YOUR_MODEL_ID", # copy the model id from your console
messages=[{"role": "user", "content": "Write a function that merges overlapping intervals, with tests."}],
temperature=0.6,
)
print(reply.choices[0].message.content)
print(reply.usage.completion_tokens, "output tokens")
The recommended sampling settings differ:
| Model and use | temperature | top_p | top_k | Source |
|---|---|---|---|---|
| Qwen, thinking on | 1.0 | 0.95 | 20 | maker |
| Qwen, thinking off | 0.7 | 0.80 | 20 | maker |
| Gemma, build author's suggestion | 0.6 | 0.9 | 64 | build author |
| Gemma, Google's default | 1.0 | 0.95 | 64 | maker |
For precise coding, Qwen's maker recommends a temperature of 0.6. Qwen also accepts reasoning_effort at low, medium or xhigh; AI effort levels explained covers when each is worth the extra tokens.
The cheapest reliable test is your own: rent an 11-hour pack of each, send both the same twenty prompts from your real workload, and compare the answers and the wait.
Which is the best model for coding on one GPU?
Between these two, Qwen3.8-27B Uncensored. It has the higher LiveCodeBench v6 score, it is the one with published SWE-bench Pro and Terminal-Bench 2.1 results, and it supports the standard tool-call format a coding agent needs. How to build a coding agent with Qwen3.8 27B and OpenCode walks through the setup.
Gemma still has a place in a coding workflow. When the task is small and frequent, such as boilerplate, quick explanations, commit messages or log triage, answers that arrive in half the time matter more than the last points of benchmark score. Some teams will want both: Gemma for the fast loop, Qwen for the hard change. For agent workflows on Gemma, see build an AI agent with Gemma 4 and n8n.
If neither is strong enough for your hardest tasks, the larger multi-GPU models in the best uncensored open AI models you can deploy score higher on the makers' benchmarks at a much higher hourly cost.
Which one to pick
Pick Qwen3.8-27B Uncensored if:
- Coding is the main job, especially an agent that edits files and runs commands.
- You want the stronger maker-reported scores on LiveCodeBench v6 and GPQA Diamond.
- You want control over reasoning depth with
reasoning_effort. - A wait of several seconds per answer is acceptable.
Full details are in the Qwen3.8-27B Uncensored guide.
Pick Gemma4-26B-A4B Uncensored if:
- Response time matters: live chat, voice pipelines, interactive tools.
- You process volume: extraction, classification, summarising, tagging.
- You want the most generated tokens per pack at the same price.
- You prefer a model whose 4-bit file is the one its maker trained it for.
Full details are in the Gemma4-26B-A4B Uncensored guide.
FAQ
Is Qwen3.8 27B better than Gemma 4 26B?
It is better on the coding and science benchmarks both makers publish: 90.3 against 77.1 on LiveCodeBench v6 and 89.2 against 82.3 on GPQA Diamond. Gemma is better on speed, at 175 against 79 tokens per second on the same RTX 5090 pod.
Which is faster, Gemma 4 26B or Qwen3.8 27B?
Gemma. On OpenLLM Buddy pods it generates 175 tokens per second on one RTX 5090, against 79 for Qwen on the same card, which is more than twice as fast.
Gemma 4 vs Qwen 3.8: which is better for coding?
Qwen. Its maker reports 90.3 on LiveCodeBench v6 against Google's 77.1 for Gemma, plus 61.7 on SWE-bench Pro and 73.0 on Terminal-Bench 2.1. Gemma suits quick, small coding tasks where the faster answer matters more.
Can both models run on one RTX 5090 with the full 256K context?
Yes. By our estimate Qwen needs about 29 GB and Gemma about 21.5 GB at 256K, and the RTX 5090 has 32 GB. Qwen fits only at 4-bit; its larger quants do not leave room for the full window.
Do Qwen3.8 27B and Gemma 4 26B cost the same to run?
On OpenLLM Buddy, yes. Both start from about $19 for 11 hours in November 2026, billed by pod time with no per-token billing. Because Gemma is faster, it produces more tokens for that price.
Are both models uncensored?
Both builds had their built-in refusals removed and run with no provider filter on your pod. The Qwen build refuses 11 of 100 prompts on its published test, against 99 for the base, and the Gemma build's author reports 0 refusals on a 465-prompt test.


