
I Ran Qwen4-35B-A3B on an NVIDIA DGX Spark and Compared Four Levels of Reasoning Intensity
This page has been translated by machine translation. View original
Introduction
Hello, I'm Morishige from the Manufacturing Business Technology Department at Classmethod.
Alibaba's Qwen team released Qwen4-35B-A3B on December 4. It is a multimodal model: a 35B MoE with a vision encoder, licensed under Apache 2.0. The official post says it "runs on a single GPU once quantized," so I suspect many of you are curious about it.
What caught my attention is that the reasoning effort can be switched among 4 levels on a per-request basis. Switching thinking on and off or specifying a maximum token count has been possible for a while, but I had two reasons for deliberately comparing the levels this time.
First, unlike a mechanism that cuts off at a token limit, this setting is an instruction that the model interprets. The model looks at the task and decides how much to think, so you can't tell its nature without actually measuring it.
Second, it relates to the LLM Routing I usually work with. I deal with setups that send easy requests to a small model and hard requests to a large model. If a thinking-amount dial can adjust speed and quality while keeping a single set of weights, it might replace part of the routing between models. I wanted to verify that.
To state the conclusion first: the NVFP4 version runs on a single DGX Spark, and on 15 tasks × 3 runs the correct answers were 35/45 without thinking and 39–41/45 with thinking. Among the three thinking levels, I could not confirm a difference with this number of runs. Japanese output sometimes contains Simplified Chinese characters and the like, and the advertised 1M context was only usable up to 512K tokens of input on a single DGX Spark with this setup.
This article introduces the steps to run Qwen4-35B-A3B on DGX Spark on its release day, and what I learned from actually trying reasoning effort and context length.
About Qwen4-35B-A3B
First, let's cover the primary information. The numbers are taken from the model card and config.json.
| Item | Value |
|---|---|
| Provider | Alibaba Qwen (released 2026-12-04) |
| Parameters | 35B (3B active). Separately, 20B n-gram embeddings and 2B MTP |
| MoE | Selects 8 out of 256 experts, plus 1 shared expert |
| Layer structure | 40 layers. Repeats 3 Gated DeltaNet layers and 1 sparse attention layer 10 times |
| Input | Text, images, video |
| Context | 1,048,576 tokens |
| Reasoning effort | xhigh, high (default), low, off |
| License | Apache 2.0 |
| Distributed weights | BF16 113.66 GB, official FP8 60.18 GB |
| Quantized (NVFP4) | RadixArk/Qwen4-35B-A3B-NVFP4, 46.91 GB |
The name says 35B, but adding the n-gram table (20B) and MTP (2B) described below brings the total to about 57B. On the other hand, the weights used per token (active parameters) are 3B.

The top shows the flow of producing one token. Blue is a Gated DeltaNet layer and orange is a sparse attention layer, each paired with MoE. The bottom lines up the 40 layers; attention is used in only 10 of them, one in every 4 layers. The n-gram table (PLE) is added on the input side, and MTP looks ahead to the next token on the output side.
There are three features. The first is the layer structure: of the 40 layers, only 10 use attention. The remaining 30 layers are Gated DeltaNet layers, which fold past context into a fixed-size state. The attention side is also a sparse method that limits the referenced range to 2,048 tokens. It is a design in which computation and memory are unlikely to balloon even with long inputs.
The second is the n-gram table. It is a huge lookup table that is indexed by a sequence of 3 tokens, and the SGLang documentation calls it PLE. It has 20B parameters, but since it is a table lookup rather than computation, you can choose to place it in GPU memory (VRAM) or in CPU main memory or on SSD. This placement affects the settings when running on DGX Spark.
The third is MTP (Multi-Token Prediction). It is a 1-layer lookahead head distributed together with the main body and is used for speculative decoding. Overall, it is built by combining a huge lookup table with small computation.
Reasoning effort is specified with reasoning_effort. off means no thinking, and if unspecified it is high. The sampling recommended by the model card is temperature 1.0 with thinking, and temperature 0.7 with presence_penalty 1.5 without thinking.
I'll also cite one external benchmark as a reference. In Artificial Analysis's own measurement (as of 2026-12-04), xhigh had an Intelligence Index v5.0.2 of 25. On the same page, the median of open-weight models from 4B to 40B is given as 11 (this is a different yardstick from my own measurements below).
Getting it running on DGX Spark
Development-version SGLang and choosing the NVFP4 version
The BF16 weights are 113.66 GB, which realistically won't fit on a 128GB DGX Spark. A quantized version is a prerequisite. This time I chose RadixArk's NVFP4 version. It is a mixed-precision build at 46.91 GB: only the MoE routed experts are shrunk to 4-bit with NVFP4, the n-gram table is FP8, and everything else stays BF16.
I chose SGLang as the engine. A procedure for running GGUF with llama.cpp has also been published. However, the SGLang cookbook had a recipe for DGX Spark × NVFP4, so I went with that this time.
The SGLang used here is not a release version but a development version built from the Qwen4-support PR branch. I used the dedicated-tag image lmsysorg/sglang:qwen4, and the SGLang inside was 0.5.24.dev1+gcd1dc28. Behavior may change until it is included in a release, so if you try the same thing, it's a good idea to note the image tag and version.
Launch command
I passed the DGX Spark × NVFP4 × MTP arguments from the cookbook as is. The only things I added were the path to my local weights and --served-model-name.
docker run -d --name q4-sglang --gpus all --shm-size 32g -p 30000:30000 \
-v "$HOME/models:/models:ro" lmsysorg/sglang:qwen4 \
sglang serve --model-path /models/Qwen4-35B-A3B-NVFP4 \
--served-model-name RadixArk/Qwen4-35B-A3B-NVFP4 \
--trust-remote-code --tp 1 \
--no-ple-offload-embedding --mem-fraction-static 0.65 \
--qsa-indexer-dtype fp8_e4m3 \
--linear-attn-prefill-backend flashinfer --linear-attn-decode-backend flashinfer \
--mamba-ssm-dtype bfloat16 \
--speculative-algorithm NEXTN --speculative-num-steps 3 \
--speculative-eagle-topk 1 --speculative-num-draft-tokens 4 \
--reasoning-parser qwen4 --tool-call-parser qwen4 \
--host 0.0.0.0 --port 30000
--no-ple-offload-embedding specifies where the n-gram table is placed; in the NVFP4 recipe it is placed directly on the GPU side. Since the CPU and GPU share memory on DGX Spark, total usage is the same wherever it is placed. The four --speculative-* options are the MTP settings; if you remove them, it starts without speculation.
As a result, it started up with the recipe as is.
| Item | Value |
|---|---|
| Startup time | 9 min 43 s |
| Context length | 1,048,576 tokens |
| KV cache | FP4, 2,256,448 tokens |
| Resident (GPU process) | 79,636 MiB (about 77.8 GiB) |
| Minimum free memory during measurement | 31.65 GiB (before feeding long inputs) |
The weights are 47 GB, but the resident size is close to 80 GiB. This is because SGLang allocates the KV cache and the Gated DeltaNet state pools all at once at startup. The room left to coexist with other processes is about 30 GiB, which matters later in the context length discussion.
Changes in accuracy and thinking amount by reasoning effort
From here is the main topic. When specifying reasoning effort in a request, writing it inside chat_template_kwargs was the reliable way. A top-level reasoning_effort also works, but the name of the value that turns off thinking differs between engines.
{ "chat_template_kwargs": { "reasoning_effort": "low" } }
As I mentioned in the introduction, reasoning_effort is an instruction passed to the model. The SGLang cookbook also says that if the model judges a task to be easy, it may finish thinking immediately regardless of the setting. In fact, on a simple arithmetic problem I tried right after startup, thinking was 38 tokens at low and only 54 tokens even at xhigh. You can't read the thinking amount or the waiting time from the level names, so I'll have it solve the same tasks at all 4 levels to check.
I prepared 15 tasks: 5 practical Japanese tasks, 5 math and logic tasks, and 5 code-fix tasks, and had each solved 3 times at each of the 4 levels. That is 180 runs in total, with a budget (output token limit) of 32,768, and all scoring was done by machine.
| Reasoning effort | Correct | Median thinking tokens | Median time |
|---|---|---|---|
| off | 35/45 | 0 | 10.2 s |
| low | 41/45 | 562 | 17.4 s |
| high | 39/45 | 988 | 28.3 s |
| xhigh | 40/45 | 1,087 | 30.3 s |

Totals from solving the 15 tasks 3 times each. The top is correct answers, the bottom is the median thinking tokens. There is a difference in correct answers between off (gray, no thinking) and the three thinking levels, but low, high, and xhigh all fall within 39–41.
A difference appeared between no thinking and thinking. Against 35/45 for off, thinking gave 39–41/45.
On the other hand, I could not confirm a difference in correct answers among the three levels low, high, and xhigh. They line up as 41, 39, 40, and the score does not rise as the effort gets stronger. Since each task and condition was measured only 3 times, the accurate statement is that a difference of this size cannot be distinguished from noise. Thinking tokens rose from 562 at low to 988 at high, but from high to xhigh it went from 988 to 1,087, a smaller increase.
Looking at the tasks where differences appeared reveals their character. In a task that extracts assignees and deadlines from meeting notes, for a deadline phrased as "the business day before the next regular meeting," 6 of the 9 thinking runs in total (3 levels × 3 runs) answered with a Sunday date. The correct answer was the Friday two days earlier. The same mistake was made even with stronger thinking, and it looks like a kind of error that can't be fixed by thinking more.
Another thing that caught my attention was the variation in thinking length. In a conditional counting task, the median thinking tokens were 16,916 even at low. Once each at low and xhigh, the model used up the entire 32,768-token limit on thinking alone, and finished after about 11 minutes with an empty body. Even if you specify low, it can think for a long time depending on the task. This is behavior that would not occur with a method that cuts off at a limit, and it shows the nature of a method interpreted as an instruction. For uses where you need to predict the waiting time, it seems you need to set an upper limit with the output token budget.
Note that 10 of the 15 tasks scored 3/3 at all 4 levels. Many tasks could be solved even without thinking, so seeing the differences between levels would require somewhat harder tasks.
Contamination of Japanese output by other languages
The first thing I noticed after running it was that characters from other languages get mixed into Japanese answers. For example, sentences like these:
During the rainy season when it's damp outside, it is effective to run a dehumidifier with the windows closed rather than 开窗 (opening them).
Because the two play different roles like this, even if you have large storage, when memory runs short the 电脑 (computer) becomes slow.
The sentences are understandable, but Simplified Chinese characters remain as they are (in the original Japanese output, the words 开窗 and 电脑 appeared in Simplified Chinese in the middle of Japanese sentences). To isolate whether 4-bit quantization is the cause, I ran the official FP8 version on the same SGLang for comparison. I collected 40 answers per condition from 8 Japanese writing tasks of about 300 characters. What I counted were answers containing any of: Hangul, kanji that cannot be represented in Japanese character encodings, or characters other than kana, kanji, and Latin letters.
| Condition | NVFP4 | Official FP8 |
|---|---|---|
| Thinking high, temperature 1.0 | 6/40 | 7/40 |
| Thinking high, temperature 0.7 | 6/40 | 5/40 |
| Thinking off, recommended no-thinking values | 14/40 | 13/40 |
| Total | 26/120 | 25/120 |
The official FP8 also showed contamination at the same rate (NVFP4 26/120, FP8 25/120). This result does not suggest that NVFP4 quantization is the main cause. Even lowering temperature to 0.7 made no large difference on a per-answer basis. In terms of the number of sentences containing contamination, it decreased slightly from 9 to 6 sentences for NVFP4 and from 11 to 6 for FP8, but did not reach 0.
It was surprising that no-thinking produced more. However, for no-thinking I also changed sampling settings such as presence_penalty 1.5 at the same time, as recommended by the model card, so I can't separate it from the effect of whether thinking is on.
I also tabulated existing logs to check the relationship with thinking. Neither a breakdown by effort level nor a correlation with thinking token count was supported, and the direction "the longer the thinking, the more contamination" did not appear. The view that the language of the thinking process is carried over and leaks into the answer was not supported either. Since it can be explained by neither quantization nor thinking length, it seems closest at this point to regard it as an innate quirk of the model.
This counting method cannot catch Chinese words that use the same kanji as Japanese (such as "超出") with machine judgment, so the actual count should be somewhat higher. For uses where Japanese text is shown to people as is, you'll want to check the output or insert a downstream inspection.
Speed and context length
Concurrency and with/without MTP
I had it generate long Japanese text and measured while changing the concurrency. Thinking was off, with 2 measurements each.
| Concurrency | With MTP: total tok/s | Without MTP: total tok/s |
|---|---|---|
| 1 | 33.7, 34.1 | 35.2, 35.4 |
| 4 | 105.5, 108.1 | 126.9, 127.4 |
| 8 | 163.3, 167.5 | 218.8, 218.8 |

The top 3 sets are the total tok/s for long Japanese text generation (thinking off), averaged over 2 measurements. The bottom set is the value when running the first 12 of the evaluation tasks used for the reasoning effort comparison (10 of them with thinking) at concurrency 1. For long Japanese text, no-MTP is faster, and for tasks including thinking, with-MTP is faster.
Single-stream generation speed was 34–35 tok/s for long Japanese text, and the total for 8 concurrent streams was 218.8 tok/s without MTP. On the other hand, in the 15 tasks × 3 runs of the previous chapter (with MTP, concurrency 1), the overall average came to about 47–50 tok/s.
What was interesting was how MTP works. For long Japanese text generation, adding MTP did not make it faster, and at 8 concurrent streams, no-MTP was actually about 30% faster. On the other hand, for the first 12 of the tasks used in the reasoning effort comparison (10 of them with thinking), the direction reverses. With MTP it was 46.8 tok/s and without MTP 34.1 tok/s.
Looking at the server logs, the average number of tokens whose lookahead was accepted per inference was 2.55 for the evaluation tasks including thinking, and 1.74 when running long Japanese text in parallel. For long Japanese text where lookahead is unlikely to hit, MTP seems to merely add computation. It looks like the usage should be split: without MTP if several people share it for Japanese text, and with MTP if one person uses it for tasks with thinking or for code.
Input length and time to first response
Next is how far the advertised 1M context can be used. I embedded passphrases in 3 places in a long text listing warehouse records and had the model answer while extending the input.
| Input tokens | Time to first response (TTFT) | Passphrases | Free memory after finishing |
|---|---|---|---|
| 8,127 | 2.2 s | 3/3 | 31.6 GiB |
| 32,049 | 8.0 s | 3/3 | 31.6 GiB |
| 127,718 | 43.9 s | 3/3 | 31.1 GiB |
| 255,293 | 78.3 s | 3/3 | 30.2 GiB |
| 510,504 | 216.2 s | 3/3 | 5.9 GiB |

The horizontal axis is input token count (log scale) and the vertical axis is time to first response. One measurement each, with the beginning changed every time so the cache would not take effect. Up to 512K, all 3 passphrases were answered. 1M did not work in this setup because of insufficient memory.
It passed up to 512K tokens, and all 3 passphrases were answered correctly. It was better than I expected that a 500,000-token input went through on a single machine.
However, there is no margin. About 2.26 million tokens' worth of KV pool was already allocated in FP4 at startup, so KV capacity itself was not what ran short. Even so, beyond 256K the memory of the GPU process kept growing, and at the end of 512K the free memory had dropped to 5.9 GiB and did not recover even after the request finished. With a 1M input, memory ran out partway, so rather than a limit of the model's own specification, it hit the ceiling of a single DGX Spark with this setup.
Note that the weights used this time are mixed precision: routed experts in NVFP4 (46.91 GB overall), PLE in FP8, and the rest in BF16. Even making everything 4-bit would add only about 15–20 GiB of free space, so it is unlikely to be the deciding factor in getting 1M through.
The measured conclusion is that up to 256K can be used safely in this setup, 512K works but without margin, and 1M is not possible. The wait is also 78 seconds at 256K and 3.5 minutes at 512K, so these are not lengths for interactive use.
Images, video, and tool calling
I only touched multimodal and tool calling lightly, at the level of checking that they work.
For images, I had it read a Japanese inspection report and a vertically written notice. For the report, it also correctly answered a question that asked it to compute the hardness average (58.3) over the 5 rows excluding the failed row. For the vertical notice, it could read the date in kanji numerals and the store name. For the 6-second video, I had it answer the shape color and movement direction in each of 2 scenes, and it was correct here too. I tried each of the 3 twice and got 2/2.
For tool calling, I sent 3 kinds of requests in Japanese, inventory search, ticket creation, and weather for 2 cities, 6 times each, and structured calls came back 18/18. The argument types also matched.
However, for the instruction asking about the weather in 2 cities, it called only 1 each time across all 6 runs, so I could not confirm behavior where 2 calls are made together in a single response. Also, when I strictly limited max_tokens and cut off the output partway, no broken call leaked into the body. On the other hand, no error was returned either, and it became a response with HTTP 200 where both the body and the tool call were empty. It seems good for the caller to have a branch that treats an empty response as a failure. I did not try the second turn onward after returning tool results.
Differences from Qwen3.8-27B, and a feel for routing
From one day of using it, I'll write two points: a comparison with the model I usually use, and the routing perspective I raised in the introduction.
The first is the difference in character from Qwen3.8-27B, which I usually use on DGX Spark. Here is the article comparing 4 configurations including Qwen3.8-27B (an article as of 2026-09-05).
Qwen3.8-27B is a dense model that computes all 27B for every token, and the single-stream result I measured previously without speculation was 12.37 tok/s. Qwen4-35B-A3B uses only 3B for computation, so although the way of measuring differs, it reaches 34–50 tok/s in single stream. In exchange, the n-gram table and pools keep nearly 80 GiB resident. It is a model that is light on computation and heavy on memory. As for the finish of Japanese text, I think it is still too early to use this model as a straight replacement given the character contamination.
The second is the relationship with LLM Routing that I raised in the introduction. With no thinking, 35/45 at a median of 10 seconds, and with low, 41/45 at 17 seconds, so with the same weights you can choose speed and accuracy per request. Instead of lining up two models and routing between them, a setup that switches the thinking of a single model has become realistic. Within this scope I could not confirm a benefit to raising it to high or xhigh, so two routing targets, off and low, might be enough. However, there was a task where it brooded for 11 minutes even at low, so it would need to be designed together with an output token budget.
Summary
Qwen4-35B-A3B fit on a single DGX Spark with the recipe as is, using the NVFP4 version and the development version of SGLang. Startup took 9 min 43 s, single-stream speed was 34–50 tok/s, and the total for 8 concurrent streams was 218.8 tok/s without MTP.
For reasoning effort, thinking scored 39–41/45 against 35/45 for off. I could not confirm differences among low, high, and xhigh with this number of measurements. Images and video were correct on all 3 items tried, and Japanese tool calling was 18/18.
On the other hand, there are also constraints that became visible from trying on a single machine. Japanese output contains Simplified Chinese characters and the like, and this was the same with the official FP8 version. Context passed up to 512K tokens, but free memory dropped to 5.9 GiB, and 1M was not possible on a single DGX Spark with this setup. MTP's effect also changes with the task and the concurrency, and I could not confirm the behavior of calling 2 tools together.
Personally, I think a realistic entry point for this model on DGX Spark is to switch thinking between off and low and use it with inputs up to 256K. These are results from the development version on release day, so once support lands in a SGLang release version, I'd like to look at the context length side again.
Reference links
- Qwen/Qwen4-35B-A3B — Model card. See here for the structure, reasoning effort, and recommended sampling
- Qwen/Qwen4-35B-A3B-FP8 — Official FP8 version
- RadixArk/Qwen4-35B-A3B-NVFP4 — The NVFP4 version used this time
- SGLang cookbook (Qwen4-35B-A3B) — Launch command for DGX Spark, and notes on thinking and tool calling
- Artificial Analysis page for Qwen4-35B-A3B (own measurement as of 2026-12-04)
- Unsloth documentation (Qwen4) — Procedure for running with GGUF and llama.cpp
- Article comparing Qwen3.8 and GLM-5.3-Flash on DGX Spark in 4 configurations by use case — The Qwen3.8-27B single-stream 12.37 tok/s comes from the measurement data in this article