Qwen4-35B-A3B vs Qwen3.8-27B on agent tasks

  1. Try Qwen4 without thinking first: 60 % less time and 69 % less cost than Qwen3.8, for about as many tasks.
  2. Leave thinking off: Qwen4 took 102 % longer and finished 26 % fewer tasks; Qwen3.8 took 87 % longer for about as many.
  3. Never trust an agent's "done": in 93 % of the failed tasks, the agent thought it had finished.

Qwen4-35B-A3B, released on 4 December 2026, uses about 3 billion of its 35 billion for each , while Qwen3.8-27B uses all 27 billion. With less work per token, Qwen4 should run an agent much faster on the same graphics card. But an agent that orders groceries or pays a friend back through an app's API has to get every call right, and one wrong field leaves the task undone. So the question is whether the faster model finishes as many tasks.

We ran both models on the same 100 tasks of AppWorld, a public benchmark of such everyday tasks in simulated apps, each with thinking off and at its default thinking level.

For developers building agents for clients, the runs show which model and setting to try first.

Each setup ran once, on 100 tasks of one benchmark on one card, on two days under different loads and server builds: the runs show how each model works on agent tasks, not a benchmark score, which would need more runs, other tasks and other loads. Our post on Ternary Bonsai 2.5 27B compared it with Qwen3.8 in the same setup.

Below: the two models, the setup, the tasks finished, then speed, time and cost, and how to test both on your own tasks.

Qwen4-35B-A3B reads each token with 3B of its 35B parameters

In Qwen4-35B-A3B, a , a router picks a few small expert networks for each token, so about 3 billion parameters do the work. As in Qwen3.8, most of its layers keep a summary of fixed size of the earlier text, which keeps a long text cheap in memory, and Qwen4 reads 1,048,576 tokens natively, four times Qwen3.8's context. Its extra 20 billion parameters, a table for pairs and triples of tokens, stay in the server's memory rather than the card's.

Qwen4-35B-A3BQwen3.8-27B
Parameters35B, 3B per token27B, all per token
Context1M tokens262K tokens
Memory, FP840 GB on the card, 20 GB in RAM31 GB on the card
A prompt of nearly 1M tokens on our H200988K of its tokens: first token after 31 s; 3 of 3 planted facts found967K of its tokens: first token after 9.5 min; 3 of 3 planted facts found, with its context stretched four times (we serve it at 262K)

Both models ran the same AppWorld tasks on one H200

AppWorld simulates nine everyday apps, such as a shop, email and payments, which an agent operates through 457 API endpoints. A task asks an agent, for example, to play a playlist long enough for today's workout, and the agent works by writing Python against the apps' APIs. AppWorld then checks the apps' data, both that the changes the task asked for were made and that nothing else changed, and a task counts as finished only when every check passes.

We used its challenge set of 417 tasks. Each needs at least one app the benchmark keeps out of its training tasks, so an agent has to read that app's documentation. A task starts with 5,000 to 14,000 tokens of instructions, two solved examples and the request, and grows to a median of about 20,000 tokens by its last call.

We drew 100 of the 417 tasks at random, and both models ran them in the same agent loop. It is a ReAct loop, in which the model writes one step, sees its output and writes the next, until the task ends or 50 model calls are spent. Each model ran on its own server in vLLM, open-source serving software, on one H200 NVL, where it worked on three tasks at a time at its model card's sampling settings.

Qwen3.8-27B ran with thinking off on 25 November 2026, taking turns with another agent setup's tasks. On 5 December 2026, Qwen4-35B-A3B ran with thinking off and at its default, "high", while Qwen3.8 was paused, then Qwen3.8 at its default, "xhigh", beside its API's other requests.

The loop did not send earlier reasoning back to the model, which both models' chat templates do by default. Both servers reused the part of a prompt they had already read, their , which matters when each call repeats the conversation so far. Both ran in Qwen's own builds:

ModelWeights, and who made the buildCacheDraft model
Qwen4-35B-A3BFP8, 8-bit floating point; Qwen's own4-bit (NVFP4), as vLLM's recipe sets itbuilt-in (multi-token prediction), three tokens
Qwen3.8-27BFP8, 8-bit floating point; Qwen's own8-bit (FP8)built-in (multi-token prediction), three tokens

The draft layer guesses three tokens ahead for each pass of the full model (). The prompts were written for the loop, not for either model, and a prompt tuned for one model could change its count. The loop takes code from the model's answer, not the API's tool calls, so the runs do not test the tool-call format.

Our loop reads the code in an answer that opens or closes with a sentence. AppWorld's prompt asks for bare Python, with thoughts as comments, and our first runs ran an answer without a code block as it stood. Qwen4 often opened with a sentence, in 17 % of its answers with thinking off and 28 % with it on, against Qwen3.8's 0 % and 4 %, so the answer failed and cost a call.

After reading those runs' logs, we reran the setups keeping such sentences as comments; Qwen3.8's answers with thinking off had none. The reruns gave Qwen4 70 and 52 tasks, against 68 and 42 in the first runs, gains that may be chance, and Qwen3.8 with thinking 78 against 77.

Qwen4 finished 70 of the 100 tasks against Qwen3.8's 74

AppWorld rates each task from 1 to 3 by how much planning and back-and-forth it needs:

Tasks finishedLevel 1, of 21Level 2, of 34Level 3, of 45All, of 100
Qwen4, thinking off16233170
Qwen4, thinking high15142352
Qwen3.8, thinking off19213474
Qwen3.8, thinking xhigh18253578

With thinking off, the gap of four tasks may be chance: Qwen4 alone finished 12 tasks and Qwen3.8 alone 16, and a coin splits 28 tasks at least that unevenly about three times in five.

Most failed tasks ended with the agent sure it had finished:

Failed tasksIn allReported doneGave upStopped at 50 calls
Qwen4, thinking off302604
Qwen4, thinking high484701
Qwen3.8, thinking off262303
Qwen3.8, thinking xhigh222110

With thinking on, Qwen4 often answered a question no task asked. AppWorld wants no answer when a task asks no question, and in 42 of Qwen4's 48 failures it gave one; in 34, that was the only check it missed. Counting only the checks of the apps' data gives:

Tasks with every data check passedThinking offThinking on
Qwen47586
Qwen3.88589

So with thinking on, Qwen4 may do the work about as often as Qwen3.8; with thinking off, the gap of ten may be chance. Qwen3.8 with thinking did the apps' work in 14 tasks that Qwen4 without thinking missed, and Qwen4 in none that Qwen3.8 missed.

Task performance

Output speed

The speeds in the table below are for one short request, but each agent call first reads a long prompt.

Density plot of each task's output tokens a second of model time, for Qwen4-35B-A3B and Qwen3.8-27B, each with thinking off and at its default thinking, on the same 100 AppWorld tasks
A task's speed is its output tokens divided by the model's own seconds in that task, the reading of each prompt included, so it sits below the speed of writing alone. Each curve counts every task, finished or not, smoothed on a log scale; each notch under the plot is one task. The line under each curve and the numbers above the plot are the means. Both models in FP8 in vLLM on one H200 NVL, three tasks at a time: Qwen3.8-27B with thinking off on 25 November 2026 from 00:07 UTC, its tasks taking turns with another agent setup's; Qwen4-35B-A3B on 5 December 2026 from 11:39 UTC, with Qwen3.8 paused; Qwen3.8-27B with thinking on from 12:04 UTC, beside its API's other requests.

Counting the reading in, Qwen4 wrote an average 134 output tokens a second with thinking off, and Qwen3.8 55. Timed on the same card on 4 December with a short prompt, they wrote:

Qwen4-35B-A3BQwen3.8-27B
One request354 tokens a second194 tokens a second
Eight requests at once, together1,456 tokens a second1,171 tokens a second

Time per task

Density plots of how long each of the same 100 AppWorld tasks took, for Qwen4-35B-A3B and Qwen3.8-27B, each with thinking off and at its default thinking
The higher a curve, the more tasks took that long. Each curve counts every task, finished or not, smoothed on a log scale; each notch under the plot is one task. The line under each curve and the numbers above the plot are the means. Both models in FP8 in vLLM on one H200 NVL, three tasks at a time: Qwen3.8-27B with thinking off on 25 November 2026 from 00:07 UTC, its tasks taking turns with another agent setup's; Qwen4-35B-A3B on 5 December 2026 from 11:39 UTC, with Qwen3.8 paused; Qwen3.8-27B with thinking on from 12:04 UTC, beside its API's other requests.

A task's time is its model calls times the time of each call, and thinking changes both:

Median a taskModel callsSeconds a callOutput tokens
Qwen4, thinking off220.51,357
Qwen4, thinking high24.50.84,057
Qwen3.8, thinking off241.11,435
Qwen3.8, thinking xhigh20.52.45,007

These times hold for three tasks at a time; more at once, or other work on the card, would stretch every call.

Cost per task

Density plots of what each of the same 100 AppWorld tasks cost at market prices, for Qwen4-35B-A3B and Qwen3.8-27B, each with thinking off and at its default thinking
The higher a curve, the more tasks cost that much: each task's input and output tokens at market prices per million tokens, the median of OpenRouter's sellers on 5 December 2026: Qwen4-35B-A3B $0.06 in and $0.36 out, Qwen3.8-27B $0.175 in and $1.98 out, no cache discount. Each curve counts every task, finished or not, smoothed on a log scale; each notch under the plot is one task. The line under each curve and the numbers above the plot are the means. The same runs as above.

At those prices, which OpenRouter lists before VAT, all 100 tasks with thinking off and at the default level cost $2.43 and $2.77 on Qwen4 and $7.90 and $7.51 on Qwen3.8. The prompts were 96 % of Qwen3.8's cost with thinking off, and Qwen4 read a few fewer tokens a task, a mean of 396K against 433K, so most of the gap in cost is the gap in price. Most sellers also list a lower price for input they have already cached, which would lower both bills.

What the results mean for your agent

Try Qwen4 first when a task's time and price matter most, and keep Qwen3.8 with thinking where a missed task costs more than a slower one. It did the apps' work in 14 tasks that Qwen4 without thinking missed. With thinking on, Qwen4 is worth a test where an extra answer does no harm.

If you build agents for clients, test Qwen4 vs Qwen3.8 on your own work:

  1. Collect 20 to 50 real tasks, and for each write a check that reads the record the task should change.
  2. Run each model on all of them twice, with thinking off and on, since thinking changes both the count and the cost, and one run cannot tell a gap of a few tasks from chance.
  3. Read a few failed runs: a model can lose tasks to format, as Qwen4 did to unasked answers.
  4. Set the step limit from the runs, a little above the calls your finished tasks needed, so a stuck run stops instead of spending.
  5. Compare the tasks finished first, and only then look at the mean time and cost of a task.

You know it worked when your pick finishes as many tasks as the best setup in your test and costs the least a task.

If you run models on your own card, plan for what Qwen4 took on our H200: 40 GB of the card for its weights, about 20 GB of the server's memory for its table and 7.6 GB of cache for one request of a full million tokens. Then time your agent's tasks at the load you expect. You know it worked when a task's time under your load stays within what your agent can wait.

Terms

Mixture of experts
A model whose layers hold many small sub-networks, the experts, of which only a few run for each token. It has many parameters but uses few at a time.
Parameters
The numbers a model learns in training. Their count gives the model's size: more parameters mean more work for every token it reads or writes.
Prompt cache
What the server keeps of a prompt it has read, so that a next request beginning with the same text skips reading it again.
Speculative decoding
A small draft guesses the next few tokens and the model checks them in one pass, keeping those it agrees with. The answer is the same, only faster.
Token
A token is a word piece. Models read and write tokens, and API prices count them.

Sources

  1. Qwen, Qwen4-35B-A3B-FP8, model card and configuration, revision 4d35041 (read 4 Dec 2026). https://huggingface.co/Qwen/Qwen4-35B-A3B-FP8
  2. Qwen, Qwen3.8-27B-FP8, model card, revision c3a462c (read 22 Nov 2026). https://huggingface.co/Qwen/Qwen3.8-27B-FP8
  3. vLLM, Qwen4-35B-A3B, vLLM recipes, the H200 settings (read 4 Dec 2026). https://recipes.vllm.ai/Qwen/Qwen4-35B-A3B
  4. H. Trivedi et al., AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents, ACL 2024: the abstract, sections 1 and 3 and Table 2 (read 25 Nov and 4 Dec 2026). https://doi.org/10.48550/arXiv.2407.18901
  5. OpenRouter, Qwen4-35B-A3B, the sellers' prices (read 5 Dec 2026). https://openrouter.ai/api/v1/models/qwen/qwen4-35b-a3b/endpoints
  6. OpenRouter, Qwen3.8-27B, the sellers' prices (read 5 Dec 2026). https://openrouter.ai/api/v1/models/qwen/qwen3.8-27b/endpoints
  7. OpenRouter, Pricing, "Are taxes (VAT/GST) included in prices?" (read 5 Dec 2026). https://openrouter.ai/pricing

Send an enquiry

Tell us what your agent has to do, and we reply which model fits it and how fast it would answer. To try Qwen3.8-27B now, sign in at ai.blixild.com for a key and $1 of free credit.

We respond within one business day.

contact@blixild.com

By submitting this form, you agree to be contacted regarding your enquiry.

← Back to the blog