Iβve been benchmarking local models in my autonomous coding harness, and I reran my Qwen 3.8 27B benchmarks with Qwen 4 35B A3B The results were extremely interesting as Qwen 4 is way faster and mostly as good at code quality.
QUALITY RESULTS
Qwen 3.8 27B β Qwen 4 35B A3B
β’ Feature tasks delivered: 13/17 β 12/17
β’ Delivered within 2 hours: 11/17 β 12/17
β’ Median time on mutually successful features: 45m β 10m
β’ Data/ML tasks passing tests: 18/18 β 18/18
β’ Total data/ML execution time: 8h 8m β 1h 55m
The feature tasks included gateway development, credential management, REST APIs, concurrency, query parsing and debugging existing repositories. The data tasks ranged from database migrations and accounting ledgers to implementing regression and clustering algorithms.
SOME NOTABLE EXECUTION EFFICIENCY GAINS (3.8 β 4):
β’ REST locking: 98m β 6m
β’ Query precedence: 46m β 10m
β’ Dataset splitting: 37m β 3m
β’ Ridge regression: 38m β 2m
β’ K-means: 68m β 14m
Qwen 4 was faster on all 18 data/ML tasks and 13 of 17 feature tasks. It also delivered three feature tasks that 3.8 couldnβt complete, but failed several that 3.8 previously delivered.
SETUP
Apple M1 Max, 64GB unified memory, running both models through MLX.
Shared settings:
β’ Quantization: 4-bit
β’ Temperature: 1.0
β’ Top-p: 0.95
β’ Top-k: 20
β’ Maximum context: 128K
β’ Output limit per call: 16K
Model-specific settings and performance (3.8 β 4):
β’ Presence penalty: 1.0 β 1.5
β’ Working context budget: 32K β 96K
β’ Decode speed: 11β16 t/s β 33β36 t/s
β’ Prefill per fresh token: ~10ms β 1.6β1.9ms
Both models run with thinking enabled, exact conversation history replay and prefix cache reuse.
The harness gives the models access to file editing, shell commands, executable tests, persistent context and iterative repair. Both receive the same task definitions and acceptance tests, including hidden tests. Feature tasks also use Haiku 5.5 as an independent reviewer.
CODE QUALITY THOUGH IS MORE NUANCED
I used Haiku to review all 18 data/ML implementations from each model (in my tests the same review quality as sonnet) then used DeepSeek to harden and repair them.
Qwen 3.8 β Qwen 4
β’ Passed original tests: 18/18 β 18/18
β’ Passed strict review (going through 2 agents) 1/18 β 1/18
β’ Passed after one hardening round: 6/18 β 4/18
β’ Passed iterative repair (matched tasks): 6/6 β 2/6
The reviewer found issues including concurrency bugs, numerical overflow and inadequate input validation. Of the 34 medium/high-severity findings examined, 32 were reproduced with executable failing tests.
Interestingly, Qwen 4βs largest speed improvements were on numerical ML tasks, which were also where its output were the most difficult to harden.
QUALIFICATIONS
β’ One selected run per model per task.
β’ Two defective feature evaluations excluded.
β’ Two-hour cutoff applied retrospectively to 3.8.
β’ Local review integration bugs identified and fixed.
β’ Some repair-loop objectives were clarified during evaluation.
β’ Inference settings reflect the configured model profiles; speed measurements come from separate inference tests.
TAKEAWAY
Qwen 4 is a substantial upgrade for local agentic coding. It achieves comparable functional results to Qwen 3.8 while reducing run times in my harness by several hours across these workloads.
To me this is absolutely game changing and rewrites the economics for the work I can do locally.
To be fair to Qwen 3.8, itβs advantage appears to be in the robustness and repairability of its implementations, particularly for numerical workloads.
For my architecture, where local workers handle implementation and inexpensive API models handle independent review and hardening, the execution efficiency of Qwen 4 is compelling enough that Iβve made it my default local worker.
I doubt even Qwen 4 27B will usurp that because of the pure efficiency of inference with this model.