Qwen4 with open weights: running it on your own hardware

Alibaba has released Qwen4-35B-A3B, a model with open weights under the Apache 2.0 licence. Companies that run AI locally should know what hardware it needs, where its weak points lie and how to test it sensibly.

Niklas Schult5 min read

Illustration: A small brass engine with a key beside an open wooden crate of cogs, linked by a measuring tape.

What Alibaba has released with Qwen4-35B-A3B

Alibaba has published the first model of its Qwen4 series with open weights, some time after the closed flagship Qwen4-Max. Many observers expected a dense model with 27 billion parameters. Instead it is a mixture-of-experts model (MoE) with 35 billion parameters, of which 3 billion are active at any time. According to heise online, it also carries a further 20 billion parameters in N-gram embeddings.

The architecture matches that of Qwen3.8-Flash-Next and Qwen4-Max. Alibaba says the model handles inputs of up to one million tokens natively and is aimed at longer agent tasks, long-document analysis and local operation on edge devices. It also processes images. The heise report on Qwen4 says that by Alibaba's account it beats Qwen3.8-27B and reaches the quality of the three times larger Qwen3.8-Flash-Next.

The Decoder cites Artificial Analysis, which gives the model 25 points on its Intelligence Index. According to that source it is the strongest model below 150 billion parameters, while comparable models score 20. The same report puts the cost per task at 0.55 dollars, against 3.53 dollars for Qwen3.8-27B. In some tests, such as Terminal Bench 4.1 and GPQA, Qwen3.8-Flash-Next still leads, as The Decoder reports.

What hardware the model needs

The sources give no exact memory figure, so a purchase should not be planned on them alone. heise online says a quantised version runs on a smaller graphics card. The N-gram embeddings add little to memory demand, because they can be moved to CPU memory or even to an SSD.

The speed figures from heise are specific. On an Apple M2 Ultra the model reaches 1,200 tokens per second in prefill and about 70 tokens per second in generation. On an RTX 5090 these values roughly triple. The MoE design explains the pace, since only 3 billion parameters work per token.

Tools such as Ollama, vLLM and SGLang can run the weights locally, according to The Decoder. For Apple hardware a version in MLX format exists, and heise counted 27 MLX-quantised variants on Hugging Face six hours after release. Only a test on your own documents shows which quantisation holds up.

Licence and origin: what to clarify first

The weights are published under Apache 2.0, a permissive licence that generally allows commercial use. Your legal or compliance team should still read the licence text and the model card before any rollout. The sources say nothing about training data, so that question stays open.

The model comes from a Chinese provider, which some companies weigh in their internal policies. Running the weights on your own hardware means no prompts go to a cloud API. The Qwen Cloud API is a separate offer with different data flows. heise also observed that the model answered politically sensitive questions about China without refusing. Its behaviour varied with the reasoning setting. heise raises only as a possibility that Alibaba has not finished adjusting its guardrails.

Companies under professional secrecy rules, for example law firms and tax advisers bound by § 203 StGB, usually want a clear internal decision on which models may see client data. Open weights on your own server make that decision easier to document than an external API does.

High token consumption and other oddities

The reasoning setting is called reasoning_effort and has four levels: xhigh, high, low and off. The default is high. In heise's tests the model then thought very long even about simple factual questions and consumed an enormous number of tokens, although Alibaba advertises concise thinking at every level.

In local operation tokens cost no money per request, but they cost time and capacity. A long chain of thought slows each answer and occupies the GPU for other users.

Chinese characters also kept appearing in the output, whatever the reasoning level. heise sees this as a possible sign of a hurried release. The report adds that a looped transformer, as used by Inkling 2 Mini, might cut token output, but Qwen4 does not have one yet.

How to run a test in your company

A pilot needs little effort, since the weights are free to download. The following steps keep it comparable and safe.

  1. Run a quantised version on a test machine with a tool such as Ollama or vLLM, isolated from production data at first.
  2. Collect 20 to 50 real questions from your daily work, including long documents and tasks with several steps.
  3. Compare the reasoning levels off, low and high for answer quality, response time and token count.
  4. Check facts, names and figures against your documents, because the model made detail errors in heise's tests.
  5. Watch for stray characters and for inconsistent answers to sensitive topics, and note them.
  6. Have legal or data protection staff review the licence and your internal rules before any wider use.

If you would rather not operate the stack yourself, the model catalogue of souveraen.ai covers local models, models hosted in Germany and external EU models with zero data retention. The platform can run on-premise on an NVIDIA DGX Spark in your own network. With Smart Routing it picks a fast or a powerful model per message. More background is on the page about local AI, and answers with source citations make detail errors easier to catch.

Sources

More articles

All articles

vLLM quickstart: serve an open model on your own GPU

vLLM serves an open language model through an OpenAI-compatible API and handles several parallel users on one GPU server. This tutorial takes you from installation to a first answer via curl and the OpenAI Python client.

Tutorial4 min

BSI urges quick move to quantum-safe cryptography

On 3 December 2026 the German Federal Office for Information Security (BSI) repeated its advice to switch to quantum-safe cryptography without delay. Companies that run VPNs, certificates and long-lived archives should check what this means for their own systems.

Regulation5 min

Using llama-server with curl and Python as a local API

The llama.cpp project ships llama-server, an HTTP server that offers an OpenAI-compatible chat completions route. This tutorial loads a local GGUF model and queries it from curl and Python, so prompts stay on your own machine.

Tutorial4 min

Test it with your own documents.

Free for 3 days, then from €24.90 per user per month. Cancellable monthly.