Qwen4 came out today: I tested it on Basalt, vLLM and Strata (and it's all in beta)

Less than a week ago I published the Frankenstein article, where I went through the tests I'd run with several local models on my inference server. For my use case, a freelancer running a few agents at a time, I settled on Qwen3.8-Flash-Next running on Basalt.

Today, December 4th, Qwen4-35B-A3B came out. And on the same day three engines already supported it: Basalt, vLLM and Strata. So I asked Claude to set up a container in Proxmox for each one and repeat the same tests as last time.

What I'm after is simple: figure out which engine to stick with for this model, and whether it's worth replacing the one I'm using now.

First things first

This is a first approach, not a serious benchmark. The model is a few hours old, and so is the software running it. We're measuring alpha or beta stuff, and in a few weeks everything will most likely work better than it does now.

On top of that, the test is focused on what I do, which is Drupal development, and it's very simple: generate the migration of a content type from Drupal 7 to Drupal 11. It's the same task as in the previous article, so I can compare. Take it as a rough guide to decide whether it's worth running your own tests.

The hardware is the same as last time: the RTX PRO 6000 with 96 GB and the server with 256 GB of RAM. Each engine in its own container and one at a time, so they don't fight over the GPU.

These are the versions and model files I used on each engine:

EngineVersionModel fileQuantizationSize
Basaltmain branch (upcoming 0.7.0), compiled by handits own .basalt packNVFP4 (4-bit) on the experts, Q6_K and Q8_0 for the rest46 GB
vLLMDocker image vllm/vllm-openai:qwen4Qwen's official FP8FP8 (8-bit)60 GB
Strata0.2.26, strata-q4-lite engine 0.1.74its own .strata format, Ultra tier4-bit, with the n-gram table in Q8_050 GB

None of them is a stable release. Basalt doesn't have a release with Qwen4 support yet: the stable version used the same architecture identifier, but for the shape of Qwen3.8-Flash-Next, so I had to pull the main branch and recompile. Its own author warns that the support is provisional. vLLM put out an image specifically for this model, which isn't a numbered version either, although it's by far the most mature of the three. And the Strata version that supports it was published today.

The models are in a similar situation. Basalt and Strata don't load the model as Qwen publishes it, but a version converted and optimized for each of them, in their own format. vLLM is the only one using the official weights.

That also means I didn't use the same quantization on all three. vLLM runs most of the model at 8 bits and the other two at 4, so the comparison isn't entirely fair: in theory vLLM plays with a bit more precision and Basalt and Strata with a lighter model. Keep that in mind when reading the tables.

How long it takes to do the task

This is the table I care about most, because tokens per second don't tell you how long you'll be waiting.

BasaltvLLMStrata
high effort147 s193 s297 s
xhigh effort159 s205 s322 s
Generation speed343 tok/s193 tok/s175 tok/s

Basalt does the task 1.3 times faster than vLLM and twice as fast as Strata. And something I didn't expect: going from high to xhigh on Basalt only costs 8% more time. In the previous tests, giving the model more reasoning made it slower without improving the code. Here it pays off, as you'll see later.

Something else that repeats: between 85 and 86% of what the model generates is reasoning. What you read at the end is a small part of it.

Reading the prompt

vLLM wins here, with some nuances.

Prompt tokensBasaltvLLMStrata
~4,7005,316 tok/s15,300 tok/s677 tok/s
~18,70010,729 tok/s20,160 tok/s2,837 tok/s
~62,30014,304 tok/s14,786 tok/s2,664 tok/s

With short prompts vLLM is almost three times faster than Basalt, but the advantage fades and at 62,000 tokens they're practically tied. Strata is way behind at every size.

I also tried firing several requests at once. With a single one Basalt wins, and with 16 vLLM gets 36% more tokens per second in total. Strata gets stuck from 4 requests on and doesn't go past about 160 tok/s.

Is it better than the model I was using?

This is the comparison I was really interested in. Same engine (Basalt), same task and three different reasoning limits:

Reasoning limitQwen3.8-Flash-NextQwen4-35BImprovement
No limit211 s147 s1.44×
20,000 tokens111 s74 s1.50×
8,000 tokens51 s42 s1.22×

Qwen4 is faster in all three cases. And the most striking thing is the last row: with reasoning capped at 8,000 tokens, the task drops to 42 seconds and the answer comes out even longer than with no limit. With the previous model, cutting that much meant losing whole sections. I haven't reviewed that answer by hand, so I won't claim it's just as good, but it looks promising.

I also see an improvement in the code. I went through the six answers by hand (three engines and two effort levels) looking for the typical mistakes of previous models. All six use static_map properly for text formats, instead of making up a d7_text_format plugin that doesn't exist, and they handle the author and the images correctly with migration_lookup. There were only two errors, both with high effort: a badly written namespace in Basalt and a staticmap without the underscore in vLLM, which would make the migration fail. With xhigh, all three engines came out clean on what I checked.

That said, all six forget to apply format_date to the date field. Since it fails the same way on all three engines, that's down to the model.

What I'm sticking with

Basalt. It's the one that finishes the task first, the one that takes up the least GPU memory (it loads about 19 GiB of weights and leaves the rest for context) and, for someone working with a few agents at a time, its weak points don't really affect me.

The VRAM side deserves a bit more detail. With this quantization, Basalt starts out using 21.5 GiB of GPU memory: about 19 for the weights and just enough to get going. The context cache grows as the agents use it, and in this model it grows slowly, because only 10 of its 40 layers need it. Everything the weights don't take is free for context, and more free context means more agents working at the same time before the card fills up. On my RTX PRO 6000 that's about 74 GiB for context, compared to the 51 that vLLM reserves, since its weights alone already take about 40.

And that opens the door to much more modest machines. Doing the maths, and mind you, I haven't tested it: on a 16 GB card it doesn't fit with this setup. With 24 GB it would fit, but with a couple of gigs for context, so it'd be enough for one agent and not much more. With 32 GB, like an RTX 5090, you'd have about 10 GB left for context, which might be enough for a freelancer with one or two agents.

Two caveats. Basalt doesn't put everything on the GPU: it also uses about 23 GB of RAM and reads the n-gram table from disk, so the machine needs plenty of RAM and a fast SSD. And NVFP4 is a format designed for Blackwell cards (the RTX 50 series and the RTX PRO), so I'm not sure it would work as well on a 3090 or a 4090. The speeds in this article come from an RTX PRO 6000 and don't carry over as-is to another card.

If I were an agency with lots of developers hitting the same server, or if the work were mostly reading short prompts, I'd consider vLLM. It's also by far the most mature of the three. Strata came last on everything speed-related, but its support for this model is less than a day old and I wouldn't write it off yet.

Mind the RAM if you're thinking about vLLM, though. Qwen4 ships with an n-gram table of about 20 GB that all three engines keep off the GPU, each in its own way, and vLLM sends it to the server's RAM. The result: it eats about 56 GB of RAM, compared to 23 for Basalt and less than 1 GB for Strata. It's not a configuration mistake, it's how it works with this model. But if, like me, you have the same server doing other things, those 56 GB add up.

As for the model, yes, Qwen4 looks better to me than Qwen3.8-Flash-Next: faster in every configuration and, on this particular task, with code that gets fewer things wrong. That's why I'm keeping it to test it properly.

Next up is optimizing Basalt for this model: tuning the reasoning limit, the number of agents in parallel and the rest of the parameters, and bringing it into my workflow with real tasks. There are things I haven't tested yet, like contexts of hundreds of thousands of tokens or long agent sessions, and that's where we'll see whether it really holds up.

Today everything is fresh out of the oven, so in a few weeks the numbers will be different, probably better. If you're testing it too, I'd love to hear what you're getting.

Before it was a ticket. Now it's a prompt.

Does your Drupal leak?

Tell me what you are working on and what worries you. I'll reply personally and, if I'm not the right person, I'll tell you too.