
Qwen3.8-27B-UBTree vs Gemma 4 31B: A Draft Head vs a Full Model
- obsidianIN THIS ARTICLEQwen3.8 27B$0.40 / $4.21 per 1M tokens
- Newest
- OrcaNEWOrcaCyber: Inkling 2 Mini Abliterated / Uncensored2026-11-23$0.20 / $0.50 per 1M tokens · 187 tok/s
- thinkingmachinesNEWThinking Machines: Inkling 2 Mini2026-11-21$0.07 / $0.30 per 1M tokens · 271 tok/s
- OrcaNEWOrcaCyber: Hy4 Flash Abliterated / Uncensored2026-11-18$0.07 / $0.28 per 1M tokens · 225 tok/s
- openaiNEWOpenAI: GPT-6.2 Astra2026-11-17$8.00 / $40.00 per 1M tokens · 102 tok/s
- openaiNEWOpenAI: GPT-6.2 Sol2026-11-17$2.00 / $10.00 per 1M tokens · 95 tok/s
- tencentTencent: Hy4 Flash2026-11-16$0.07 / $0.28 per 1M tokens · 189 tok/s
- AlibabaQwen: Qwen4 Max2026-11-16$1.50 / $4.50 per 1M tokens · 113 tok/s
- OrcaOrcaCyber: Ling 3.2 Flash Abliterated / Uncensored2026-11-14$0.60 / $1.80 per 1M tokens · 111 tok/s
- OrcaOrcaCyber: Step 5 Preview Abliterated / Uncensored2026-11-14$2.00 / $5.40 per 1M tokens · 179 tok/s
- GoogleGoogle: Gemini 4 Carbon2026-11-10$4.00 / $20.00 per 1M tokens · 100 tok/s
- AnthropicAnthropic: Claude Fable 5.22026-11-09$8.00 / $40.00 per 1M tokens · 98 tok/s
- OrcaOrcaCyber: GLM 5.3 Abliterated / Uncensored2026-11-04$3.00 / $5.00 per 1M tokens · 118 tok/s
- OrcaOrcaCyber: Hy4 Abliterated / Uncensored2026-11-04$0.80 / $1.60 per 1M tokens · 157 tok/s
- OrcaOrcaCyber: Kimi K3.1 Pro Abliterated / Uncensored2026-11-04$2.00 / $5.00 per 1M tokens · 140 tok/s
- tencentTencent: Hy42026-11-04$0.83 / $2.50 per 1M tokens · 128 tok/s
- OrcaOrcaCyber: MiniMax M3.1 Flash Abliterated / Uncensored2026-10-29$0.80 / $1.60 per 1M tokens · 117 tok/s
- OrcaOrcaCyber: GLM 5.3 Flash Abliterated / Uncensored2026-10-27$0.80 / $1.60 per 1M tokens · 84 tok/s
- openaiOpenAI: GPT-6.1 Terra2026-10-26$1.00 / $5.00 per 1M tokens · 68 tok/s
- OrcaOrcaCyber: Qwen3.8 Flash Next Abliterated / Uncensored2026-10-26$0.80 / $1.60 per 1M tokens · 95 tok/s
At 11:35 UTC on 1 December 2026, a repository called Qwen3.8-27B-UBTree appeared on Hugging Face with no announcement attached to it. By mid-afternoon it had one like, zero downloads, and a model card that opens by explaining what it is not: a text generator. The checkpoint stores 1.84 billion parameters, needs the 27-billion-parameter target beside it to produce a single token, and exists only to make that target decode faster. Which means the matchup in the title — against Gemma 4 31B — is not a contest between two models. It is a question about whether a serving optimisation changes which open model you should pick.
Those are different questions, and they have different answers. If you are choosing a model, the comparison that matters is Qwen3.8-27B versus Gemma 4 31B, and the UBTree draft is an argument about the cost of running the left-hand side. If you have already chosen Qwen3.8-27B and want it faster on your own GPUs, Gemma 4 31B is irrelevant to you entirely. Most comparison pages blur the two, because most comparison pages were written before anyone had a draft head to blur them with.
The repo, and what is missing from it
What is knowable today comes almost entirely from the repository itself. It contains six files: a README, a licence, a config, a pipeline diagram, and a single 3.68-gigabyte safetensors blob. The licence is MIT, separate from the Apache 2.0 of the target model, and the card states plainly that the distributed weights are the “raw step 12,314 checkpoint” — a training checkpoint, not a polished release. The draft has five full-attention Transformer layers, a hidden size of 5,120, 24 query heads against 4 key-value heads, and it reads auxiliary features from layers 5, 19, 33, 47 and 61 of the 64-layer target. Its block size is 16, hence the B16 in the card title that the repository name drops.

What is not knowable is whether the lab intends this to be a release. inclusionAI has published two UBTree drafts before, for Ling-3.0-flash and Ling-3.0-tiny, and its project site lists exactly those two under “Released checkpoints.” Qwen3.8-27B appears on that same page only as a production-scale evaluation target, at 4.78× average speedup. As of this writing there is no blog post, no social announcement, no release note, and no entry on the project page. A repository with weights is a fact; a release is a claim about support, and only the first exists yet.
Qwen3.8-27B is the model, UBTree is not
The target is a 27-billion-parameter dense vision-language model that Alibaba shipped on 14 August 2026 under Apache 2.0, with a native context of 262,144 tokens extensible to one million, and a hybrid stack that interleaves Gated DeltaNet linear-attention blocks with full attention every fourth layer. Its own benchmark table is strong on the things agent builders care about: 73.0 on Terminal-Bench 2.1, 61.7 on SWE-bench Pro, 90.3 on LiveCodeBench v6, 89.2 on GPQA Diamond, 84.3 on OSWorld-Verified, 81.9 on AndroidWorld. Those are vendor numbers, run by the lab that built the model, and the card does not publish error bars.
The UBTree checkpoint adds nothing to any of them. It cannot. Speculative decoding is lossless by construction — a draft proposes tokens, the target verifies them, and anything the target would have rejected is thrown away — so the output distribution is the target's, unchanged. What changes is the number of target forward passes required to reach it. That is why the draft ships with acceptance-length and tokens-per-second numbers rather than benchmark scores, and why comparing its “quality” to Gemma 4 31B is a category error.
Gemma 4 31B is six months older
Google's model arrived on 2 April 2026, also under Apache 2.0, also dense, at 30.7 billion parameters and 60 layers, with a 256K context and text-plus-image input. It has no audio path at this size; the smaller E-series models carry that. Its vendor table is competitive on overlapping benchmarks — 85.2 on MMLU Pro, 89.2 on AIME 2026 without tools, 80.0 on LiveCodeBench v6, 84.3 on GPQA Diamond, 76.9 on Tau2 — and it is the cheaper model to call, at a median $0.17 input and $0.40 output per million tokens across providers.
Six months is a long time in this class, and the independent picture is harsher than the vendor tables suggest. On Artificial Analysis' current index, version 5.0.2, which folds nine evaluations including agentic ones into a single score, Qwen3.8-27B sits at 20 in its Xhigh reasoning configuration and ranks third of fifteen comparable open models. Gemma 4 31B sits at 4 and ranks thirteenth of fifteen, described on the page as at the lower end of its class against a median of 11. That is a large gap, and it is the number a buyer should weight most heavily, because it is the only one produced by a harness that ran both models itself.
Where the vendor numbers and AA disagree
The discrepancy is not a contradiction so much as a scope difference. Vendor tables report benchmark families the model was tuned against, and Gemma 4 31B's strongest rows are single-turn reasoning and knowledge — AIME, MMLU Pro, GPQA. Artificial Analysis' index weights multi-step, tool-using, long-horizon work far more heavily, and that is precisely where a 31-billion-parameter model from April loses to a 27-billion-parameter model from August with an agentic post-training pass. Read the two sources together and the shape is consistent: Gemma 4 31B is a capable reasoner and a weak agent; Qwen3.8-27B is a strong agent that also reasons well.
• Parameters — Qwen3.8-27B 27B dense vs Gemma 4 31B 30.7B dense
• Context — 262,144 tokens natively, extensible to 1M vs 256K tokens
• Inputs — text, image and video vs text and image
• Licence — Apache 2.0 vs Apache 2.0
• Released — 14 August 2026 vs 2 April 2026
• AA Intelligence Index v5.0.2 — 20 (Xhigh) vs 4 (reasoning)
• AA output speed — 67 tok/s vs 36 tok/s reasoning, 62 tok/s non-reasoning
• Median list price — $0.50 / $3.00 per 1M vs $0.17 / $0.40 per 1M

Throughput is the only real difference
Here is where the draft earns its place in the comparison. On the card's own protocol — eight L20X GPUs, tensor parallelism 8, concurrency 1, BF16, greedy xhigh-thinking decoding — UBTree averages an acceptance length of 6.548 tokens per verification round and 845.18 output tokens per second across six datasets. The baseline it is measured against, DFlash2 at block size 8 with an 8-node tree, averages 4.520 and 660.99. The per-dataset spread is wide and worth reading rather than skimming: 890.98 tok/s on GSM8K, 926.78 on MATH-500, 830.40 on AIME 2025, 882.16 on HumanEval, 804.58 on MBPP, 736.15 on LiveCodeBench.
Three caveats belong in the same breath as those numbers. They are vendor-run, one measured run per dataset, with an 8,192-token output cap, and no independent lab has reproduced them. They are also not comparable to a hosted API's tokens-per-second figure, because the hosted number usually describes one request on one provider's pool while this one describes one request spread across eight GPUs. And the project's own 4.78× headline for Qwen3.8-27B comes from a different configuration again — TP4, batch size 1, thinking disabled — so the two figures should not be multiplied or averaged together. What survives all three caveats is the relative claim: against the block-drafting baseline, this checkpoint accepts roughly 45% more tokens per round.
Gemma 4 31B has no equivalent. There is no published draft head for it from Google or from the UBTree authors, so a self-hosted Gemma 4 31B deployment is a plain autoregressive path at whatever throughput your hardware gives you. That asymmetry, not a benchmark row, is the one thing the UBTree repository genuinely changes about the choice between these two models.
Cost per token, and where each one runs
For most readers the hosted comparison settles it before the draft matters. Qwen3.8-27B is in OrcaRouter's catalogue at $0.33 per million input tokens and $2.40 per million output tokens, with 0% markup — the provider's list price passed through, so a vendor price change lands on our side the same day. The model runs self-hosted on our infrastructure, accepts text, image and video, serves a 262K context, and our model page for Qwen3.8-27B reports 113 output tokens per second with a p50 time to first token of 2.80 seconds and a p95 of 9.04 seconds over the last seven days.

Gemma 4 31B is not in our catalogue, and this piece is not going to pretend otherwise. If you want it, it is available through Google's own API and several third-party platforms, at a median provider rate around a third of what Qwen3.8-27B costs. That price gap is the strongest argument for Gemma 4 31B in this matchup, and it is roughly offset by the capability gap on agentic work. For teams already running multiple models, the practical version of the question is whether both belong behind one key with automatic failover, which is the case OrcaRouter is built for rather than a reason to pick a winner here.
Pick the model first, then the decoder
If the work is single-turn reasoning, document extraction or a cheap high-volume classification tier, Gemma 4 31B at a third of the price is a defensible pick, and nothing in this repository changes that. If the work is multi-step agents, terminal or browser automation, or long-horizon coding, the independent index and the vendor's own agentic rows both point to Qwen3.8-27B, and the price premium buys capability you would otherwise have to rent from a larger model.
The draft head is a second decision, and a narrower one. It matters if you self-host Qwen3.8-27B at low concurrency and your bottleneck is decode speed rather than memory or batching. It does not matter if you call a hosted API, because the draft is a server-side component you would never see. Right now it also does not matter much if you need a supported path: serving it requires installing the project's own SGLang build, pinned to a specific commit of a contributor's fork, and the upstream integration request has been open since 13 October 2026 without merging. A 1.84B draft that lifts acceptance from 4.5 to 6.5 is a real result. It is not yet a product, and the repository appearing quietly on a Tuesday afternoon is the most honest signal of that.
