Looped Qwen4-35B-A3B: How to Run It Locally and Is It Worth It?
How to install and run the community Looped Qwen4-35B-A3B model locally with vLLM and Docker, plus real VRAM, speed, and quality notes.

What is Looped Qwen4-35B-A3B?
Looped Qwen4-35B-A3B is a community add-on for Alibaba’s Qwen4 mixture-of-experts model, built by the Hugging Face user sliderforthewin. It doesn’t change Qwen4’s original weights. Instead, it adds a small adapter that forces part of the model to run multiple times before producing an answer, a technique often called recurrent depth or looped transformers. The model card lists it as a finetune of Qwen/Qwen4-35B-A3B, released under an MIT license, and it ships with checkpoints and MLX adapter files alongside the main safetensors weights, so it works with both vLLM and MLX-based local setups.
TL;DR
- Looped Qwen4-35B-A3B keeps Qwen4’s original 40-layer architecture but reroutes the middle layers to run three times instead of once, spending more compute per token without adding parameters.
- The first and last 12 layers run once as normal, while the middle 16 layers loop three times each, a pattern the creator describes as rereading and reworking the hard part of a problem before answering.
- In hands-on testing it ran slower than stock Qwen4, not faster, because the extra passes through the middle layers add real wall-clock time even with no extra parameters.
- On a debugging task involving a simulated relief-routing app for conflict-affected communities in Nigeria, the looped model correctly found and fixed the bug, producing a clean, well-reasoned fix.
- On a harder generative coding task (a self-contained HTML animation), the looped model took about 13 minutes, with roughly 9.5 minutes spent in one long thinking block, and the result was visually cleaner but not functionally better than the original Qwen4’s output.
- Logged server stats during testing showed the model holding around 87 tokens per second on a single request, using about 3% of KV cache, with prefix cache hit rate climbing from 45% to 66% as more of the prompt got reused.
- Local serving via vLLM required roughly 76GB of VRAM at full context length on an H100 (80GB), so this is a model for a single high-end data-center GPU, not a consumer card.
Build a claims
triage app for
4,000 insurance
adjusters
One prompt. Role-based access, audit trail and SSO come built in.
How does looping actually change Qwen4’s behavior?
Qwen4-35B-A3B’s standard architecture has 40 transformer layers, and a normal forward pass sends a query through each layer exactly once. The looped version changes the traffic pattern inside the network rather than its size. The first 12 layers process the input once, as usual. The middle 16 layers then repeat three times, each pass building on the output of the last, before the final 12 layers run once to produce the output.
Conceptually, this mimics a person reworking the hardest part of a problem multiple times before committing to an answer, rather than reading it once and writing down the first thing that comes to mind. No new parameters are added, no bigger model is loaded. The same weights are just exercised more times on the middle portion of the network. That’s the whole idea behind “looped” or “recurrent depth” transformers: trade extra compute and latency for (hopefully) better reasoning, without the cost of training or hosting a larger model.
The model card for this specific release reports gains concentrated mostly in coding tasks, with smaller or inconsistent improvements elsewhere, which lines up with what hands-on testing found.
How do you install and run it locally?
The creator’s setup used Docker with the official vLLM container image, with the looped plugin layered on top through the serve command. The core pieces:
- Base image: the official vLLM Docker image, used as the foundation rather than building vLLM from source.
- Checkpoint: the loop adapter checkpoint from the Hugging Face repo (sliderforthewin/Looped-Qwen4-35B-A3B), passed into the serve command alongside the base Qwen4-35B-A3B weights.
- Passes=3: the flag that tells the adapter to run the middle block of layers three times per forward pass.
- CD Omega zero: an extra decoding setting kept enabled in testing.
- FP8 and CPU offload: used to reduce GPU memory pressure, important given how much VRAM the full model and context window consume.
- force-eager: disables compilation. The creator noted this was necessary because the model crashed with compilation turned on, at some small cost to speed.
- Tool and reasoning flags: enabled so the model can call tools during agentic tasks.
- Chat template override: needed to fix a missing chat template error on load.
Because the checkpoint is distributed as an adapter on top of the existing Qwen4 weights rather than a fully merged model, this setup lets you toggle looped behavior on or off against the same base weights, and the repo also ships MLX-format adapter files for people running on Apple silicon instead of vLLM/CUDA.
What hardware do you need?
In testing, serving Looped Qwen4-35B-A3B through vLLM with a maximized context length consumed about 76GB of VRAM on an H100 with 80GB of VRAM. That’s close to the ceiling of a single H100, so if you want the full context window, you need a data-center-class GPU with 80GB or similar. Reducing the context length will bring VRAM usage down, but the creator recommended keeping it high to see the model’s full value, since the looping behavior is most relevant on harder, longer tasks where the model has room to reason.
This is not a model you run on a consumer GPU at full settings. Qwen4-35B-A3B is a mixture-of-experts model, so its active parameter count per token (3B active, per the “A3B” naming) is much smaller than its total size, but the full weight set plus KV cache at long context still demands serious memory.
Is Looped Qwen4-35B-A3B actually better than stock Qwen4?
The honest answer from hands-on testing: it depends on the task, and it’s not a clear win.
On a debugging exercise, a simulated app for routing people in conflict-affected areas of Nigeria’s Plateau and Benue states to safe roads and camps, the looped model correctly diagnosed and fixed a stale-data bug where late-arriving messages overwrote newer, more urgent ones. The fix was accurate and the reasoning behind it held up when retested.
On a harder generative task, building a self-contained HTML animation of a rotating object with moving parts and labels, the looped model took about 13 minutes total, with roughly 9.5 minutes spent in a single long internal reasoning block planning coordinates before writing any code. It then checked its own syntax, opened the result in a browser, and inspected pixel output since it had no vision capability to view screenshots directly, a limitation it reported honestly rather than faking a visual check. The final output was visually cleaner in some respects than the original Qwen4’s version, but it had a functional miss (an animation parameter that should have changed and didn’t) that made it no better overall than the unlooped model’s result.
Server logs during testing showed steady throughput around 87 tokens per second on a single request, with prefix cache hit rate improving from 45% to 66% as the prompt got progressively reused, a sign the caching mechanism was working efficiently even as the model spent more time thinking. But “spent more time thinking” is the key tradeoff: the loop doesn’t make the model faster. It makes each answer cost more wall-clock time by looping through the middle layers three times, and the quality payoff from that extra compute showed up clearly in some tasks (coding-heavy debugging) and barely at all in others.
Charts shared alongside the release, comparing looped Qwen4 to stock Qwen4 across benchmark categories, showed no outright regressions but highlighted the biggest gains in hard coding problems, with smaller improvements in math and tool calling, and close-to-identical results on several other test categories. An earlier looping experiment on the smaller Qwen 3.8-27B model, also referenced on the model card, showed a similarly uneven pattern rather than a clean sweep.
Frequently Asked Questions
Does Looped Qwen4-35B-A3B change the model’s weights?
No. It uses the original Qwen4-35B-A3B weights and adds a separate adapter that controls how many times certain layers run during inference. The base model’s parameters are untouched.
Is Looped Qwen4 faster than the original Qwen4?
›Build a claims triage app for 4,000 insurance adjusters
One prompt. Role-based access, audit trail and SSO come built in.
No, it’s slower. Running the middle 16 layers three times instead of once adds real computation time per response, even though no new parameters are added to the model.
How much VRAM does Looped Qwen4-35B-A3B need?
In testing with a maximized context length, it used about 76GB of VRAM on an 80GB H100 GPU through vLLM. Lowering the context window reduces this, but a high-memory GPU is still required.
What tasks benefit most from the looping?
Reported and observed gains concentrate mostly in coding tasks, especially harder coding and debugging problems. Math and tool-calling showed smaller gains, and many other tasks performed about the same as stock Qwen4.
Can I run this on a consumer GPU?
Not practically at full context length. The model’s VRAM footprint (around 76GB in testing) targets data-center GPUs like the H100. Reducing context length and using quantization or CPU offload can lower requirements, but expect tradeoffs in speed or capability.



