Qwen 4 Released: A 1-Million-Token AI That Runs on a 32GB Mac
機械翻訳 / Machine-translated

機械翻訳 / Machine-translated
@aifriends
AI Friends(https://aifriends.jp)のクロスポスト公式アカウント。AIツールの紹介・使い方・できることを、中学生でもわかるやさしい日本語で届けます。
Have you ever thought, "I want to run a truly intelligent AI right on my own computer"? Alibaba's newly released model, "Qwen4-35B-A3B," brings that wish considerably closer to reality. This article covers how it works, the hardware requirements, how it differs from competitors, and potential use cases in Japan.
On December 4, 2026, Hugging Face introduced the new model on its official blog, "Welcome Qwen 4: Cutting-edge intelligence on-device".
The model released is Qwen4-35B-A3B. It is the fourth generation of the "Qwen" series developed by China's Alibaba, and it is the first model in that generation whose weights (the actual data inside the AI) are available for anyone to download.
The blog describes it as "a high-quality mid-size model for local deployment." Local deployment means running on your own computer or server rather than in the cloud.
The license is Apache 2.0, a permissive set of terms that broadly allows commercial use and modification, lowering the barrier for businesses that want to integrate it into their own services.
It accepts text, images, and video as input and produces text as output. In other words, you can ask things like "What is in this photo?" or "Summarize this video."
The name "35B-A3B" means that out of 35 billion (35B) total parameters, approximately 3 billion (3B) are Active during any given operation.
This design is called MoE (Mixture of Experts). Think of it like a company with 256 specialists where, for each question, only 8 specialists plus 1 permanent staff member are called upon. Since not everyone works on every request, the computation stays light.
Note that the Hugging Face blog states the active count as "approximately 3.8 billion." The numbers differ slightly depending on how they are counted, but in both cases, it represents roughly 10% of the total.
Another notable feature is the ability to read long texts of up to 1 million tokens (the unit AI uses to count text) all at once.
Normally, the longer the text an AI reads, the more its "KV cache (a memo of what it has read)" grows, consuming large amounts of memory.
According to the vLLM technical blog, Qwen4 uses a method called "Gated DeltaNet" in 30 of its 40 layers. This compresses what it has read into a fixed size, so the memo never grows.
Only the remaining 10 layers use a method called "Qwen Sparse Attention," which selectively reads important parts. As a result, the memory required for 1 million tokens amounts to just about 8 GiB. With a traditional architecture, the equivalent would require roughly 80 GiB.
There is also a "MTP (look-ahead feature)" that predicts the next 3 tokens in advance. On Apple Silicon M5, it has been reported to increase the generation speed of the Q4 version by 22%.
The question most people have is: "Will it run on my computer?"
The Unite.AI article summarizes the following estimates when running with llama.cpp:
Smaller quantization numbers mean lighter operation, with a slight trade-off in accuracy.
The reason resident memory is smaller than the file size is that an "N-gram embedding table" covering about 20 billion parameters is only loaded when needed. Keep in mind these are figures from just after release, so it is best to verify them in your own environment.
From day one, it is available on llama.cpp, MLX (Apple's machine learning framework), vLLM, SGLang, and transformers. The Hugging Face model page also introduces local tools such as Ollama and mlx-vlm.
Imagine a legal office staff member reviewing hundreds of pages of contracts. Sending them to a cloud AI raises concerns about confidentiality.
With Qwen4-35B-A3B, everything can be processed entirely within a 32 GB Mac. With a 1-million-token context, you can feed in multiple related contracts at once and ask, "Are there any conflicting clauses?"
An engineer who has just joined a project must first read through a large codebase.
By handing the entire repository to a local AI, they can casually ask questions like "Where is this function being called from?" The added benefit of not sending internal code to external services is significant.
Consider a factory inspector who reviews footage of equipment every day. Qwen4 accepts video input, and according to Unite.AI, it reads 2 frames per second.
Asking it to "list any scenes that look abnormal" could reduce the burden of manual review. The fact that it works even without an internet connection is a major advantage for on-site environments.
There are other open models that can run locally. Let's compare it with two representative ones:
Google announced Gemma 4 on April 2, 2026. OpenAI's gpt-oss was released on August 5, 2025.
All three use MoE—activating only the relevant portion—and are all licensed under Apache 2.0. The biggest differentiator is context length. Qwen4's 1 million tokens is about 4 times that of Gemma 4 and about 8 times that of gpt-oss.
On the other hand, gpt-oss-20b requires less memory. If you want to try something easily on a 16 GB laptop, gpt-oss is the better fit.
Regarding performance, the Hugging Face blog states it "significantly outperforms models of the same size," though the comparison figures are only shown as images. A fair comparison with other models will need to await third-party verification going forward.
For Japanese businesses, the most important aspect is the ability to use high-performance AI without sending confidential data outside the organization. Industries that are cautious about cloud usage—such as finance, healthcare, and manufacturing—stand to benefit the most.
There is also a cloud option for those who prefer it. Looking at the QwenCloud model page, Japan (Tokyo) is included among the available regions.
Pricing for international use is $0.06 per 1 million input tokens and $0.48 per 1 million output tokens. At 150 yen to the dollar, that works out to roughly 9 yen for input and 72 yen for output—quite affordable.
As for Japanese language performance—a natural concern—the official materials do not specify supported languages. It is recommended to test with your own documents before using it for business purposes.
Some organizations may be concerned that the developer is a Chinese company. When running the weights locally, no data is sent to Alibaba. Even so, usage decisions should be made in accordance with your organization's internal policies.
A. Yes. The weights can be downloaded for free from Hugging Face, and the Apache 2.0 license allows commercial use. Using the cloud API involves pay-as-you-go pricing.
A. Even the lightest Q4 version requires about 21.9 GB of resident memory, so 32 GB or more is the recommended baseline. It would be difficult to run on a 16 GB machine.
A. Yes. You can choose from "xhigh," "high," "low," and "off" for reasoning intensity, with "high" as the default. You can lower it when speed is a priority.
A. Yes. It accepts text, images, and video as input and returns answers as text.
A. The official materials do not explicitly state which languages are supported. The best approach is to test it with your own use case to verify actual performance.
If you have a computer with 32 GB or more of memory, start by running the Q4 version with llama.cpp or MLX and test it with your own documents.
This article is a cross-post from AI Friends.