How to Run Alibaba's Qwen4 Free: The 35B AI With a 1-Million-Token Memory

On 4 December 2026, Alibaba released the first open-weight model of its new Qwen4 family, and it is free to download and run on your own hardware. It is called Qwen4-35B-A3B. It reads text, images and video, it remembers up to 1,048,576 tokens in one conversation, and it runs locally with one Ollama command. No account, no API key, no per-token bill. Ollama listed it the same day, and it passed 39,000 pulls in its first 15 hours.

The name hides a catch, and this post starts with it, because it decides whether the model fits your machine. "35B" is the headline size, not the download. The full checkpoint carries about 56.8 billion parameters once you count the extra parts Qwen ships with it. That turns the download from a small file into a 36 GB one, and it changes which route you should pick. This post walks you through all three free routes, the 1M-token test, the image and video test, and the thinking dial that controls how hard the model works.

What is Qwen4, and what does "35B" actually mean?

Qwen4-35B-A3B is the Qwen team's first open-weight model of the Qwen4 family. It is a mixture-of-experts model: 35 billion total parameters with only about 3 billion active per token, 256 experts with 8 routed and 1 shared, across 40 layers. It is built on the Qwen4 architecture, a hybrid of linear attention and sparse attention, the same architecture family as Qwen3.8-Flash-Next, pushed further for long-horizon agentic work. Qwen's last model covered on RiseMe was Qwen3.8-27B, in our Qwen3.8 vs Gemma 4 comparison, and Qwen4 is the direct next generation.

It is natively multimodal. Text, images and video go in, and text comes out. That is the practical difference from a text-only coder: you can show it a screenshot, a photo or a short clip and ask about it, in the same conversation where you ask it to write code.

Now the catch. The model card lists the size as "35B with 3B activated, plus 20B n-gram embedding and 2B MTP". The 20 billion parameter n-gram embedding table and the 2 billion parameter multi-token-prediction module are part of the checkpoint you download, so the real total is about 56.8 billion parameters. The embedding table is what helps the long context work without extra accelerator memory for compute, but it still has to be downloaded and stored. In plain terms, Q4_K_M is about 36 GB on disk and the official FP8 weights are about 60 GB. If you have a small laptop with a nearly full drive, do not start the big download. Pick the smaller build in Route 2 instead.

The context window is 1,048,576 tokens, natively, per the model card. In real terms that is roughly 750,000 words, or about ten novels, or a whole codebase in a single prompt. It is the first time a free open model with this size of memory has shipped with a one-command local install on day one.

The licence is Apache 2.0 and the Hugging Face repo is ungated, so there is no access request to file and no terms page to accept before downloading the weights. Commercial use is allowed under the Apache terms.

One thing not to confuse it with: Qwen4-Max. The card names Qwen4-Max as the closed flagship of the Qwen4 series, an ultra-sparse model for long-horizon agentic work. That one is not open. The free open model in this post is Qwen4-35B-A3B, and everything below is about that one.

What can it actually do? Three things to test

First, long memory. A 1M-token context means you can feed it a whole project, a long report or a full book, and ask questions that need the whole thing, not just the first page. The hybrid attention and n-gram embeddings are what Qwen credits for keeping the cache small on long inputs, so the model stays fast where a normal transformer would slow down and run out of memory.

Second, multimodal input. Images and video go in alongside text. Ask it to explain a diagram, find a bug in a screenshot of code, or summarise what happens in a short clip. The answers come back as text, and the video understanding is new, so test it on your own clips before trusting it for anything important.

Third, long-horizon agentic work. Qwen built this model for sustained multi-step tasks: coding, frontend development, 3D modelling, games and everyday knowledge work. Its thinking is more concise at every effort level than before, and the levels are now clearly separated, so tasks need fewer interaction rounds and finish faster. That is Qwen's claim, and the test in this post shows you how to check it yourself.

What about benchmarks? Qwen's own chart compares Qwen4-35B-A3B with Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling 2 Mini across coding, agent, professional-work and reasoning benchmarks. The Terminal-Bench 4.1 and FrontierCode-AA 2.0 scores are cited from Artificial Analysis, and the APEX-Agents scores from the Mercor leaderboard. Qwen says the new model beats the dense Qwen3.8-27B and matches Qwen3.8-Flash-Next at about a third of the size. Every one of those numbers is Qwen's own, published on day zero, with no independent runs yet. Treat them as claims to test, not facts to quote, and the tests below are the way to test them.

How do I run it free? Route 1: Ollama, one command

The fastest free route is Ollama. The model card lists Ollama among the day-one supported engines, and Ollama has an official listing for it. I verified the exact model name live before writing this post. It is qwen4, with vision, tools and thinking support and a 1M-token context.

Step one is to install Ollama. Download it from ollama.com/download for macOS, Windows or Linux, and open it. It is free and open source, and it runs the model entirely on your machine.

Step two is one command:

ollama run qwen4

That downloads the model, about 36 GB for the default Q4_K_M build, and drops you into a chat with it. No account, no API key, no Hugging Face login. Ollama mirrors the weights itself, so the pull just works.

Step three is to give it something real to do. Ask it a coding question first, because that is where you will feel the thinking. A good first prompt is a small real task, not a quiz question:

Write a Python function that reads a CSV file of sales
records and returns the top 5 products by revenue for
each month, with a short test I can run.

Watch how it answers. By default it thinks first, at high effort, and you will see the reasoning before the answer. That is the behaviour you are testing: does it plan the task, write the code, and write the test, or does it just paste a rough answer?

Before you start the download, check your disk. The default build is about 36 GB, and you need that space free plus room for the model's working memory. If you are short on space or on GPU memory, skip to Route 2 and use the smaller 3-bit build instead. There is no shame in the small build. It is the same model, just compressed harder.

The 1M-context test: feed it a whole book

The headline feature is the 1,048,576-token context, so test it properly. A short chat does not prove anything. You need a long document and a question that can only be answered from a detail buried in the middle of it.

Pick a long public text, for example a public-domain novel from Project Gutenberg, or a large file from your own work, a full project codebase or a long report. The point is that the file must be long enough that no model could answer from memory alone. A 50-page document is a good start. A whole book is better.

Then ask a question that needs the whole file. Good questions look like this: "In chapter 12, a character mentions a place name that never appears again. What is it, and in which sentence does it appear?" Or for code: "List every function in this codebase that calls the database, and for each one, say which table it touches." A model with a small context window will guess or refuse. A model that really holds a million tokens will find the needle.

The practical way to send a long file is through Ollama's local API, which serves an OpenAI-compatible endpoint at http://localhost:11434/v1 once Ollama is running. Read the file in a short script, send it as the user message, and ask your question. If you use a chat front end such as Open WebUI, you can upload the document there instead. Either way, keep the question specific and checkable, so you can tell a real answer from a confident guess.

Qwen's own guidance for long work is worth knowing before you run the test. Inside the 1M-token context, it recommends allowing up to 262,144 tokens for reasoning and 131,072 tokens for the final response on complex agentic tasks. You do not need to set those numbers for a first test, but if the model stops mid-answer on a long task, the output limit is the first thing to raise.

The multimodal test: an image, then a video

The second test is the image. The Ollama chat in your terminal does not take image files directly, so use the API or a front end with image upload, such as Open WebUI, and send a real image: a photo of your desk, a screenshot of a messy spreadsheet, a diagram from a paper. Ask a question that needs the image, not a generic "describe this". For example: "What is wrong with the formula in cell D12 of this screenshot?" or "List every object on this desk, left to right." A model that really sees will answer from the pixels. A model that guesses will describe a generic desk.

The video test works the same way, through the API or a server route, with a video URL or file as input. The model card's own example sends a short clip and asks a question about a detail inside it. Keep the clip short and the question specific, and remember this is day-zero capability. If the video answer is wrong, that is useful information too. It tells you where the model is still weak, and it is exactly the kind of honest result worth sharing in a comment.

One more practical note: the reference tokenizer implementation ships with the weights and needs trust_remote_code=True when you create the tokenizer instance in Transformers. That is Qwen's own instruction on the model card. If you run the Transformers route and the tokenizer fails to load, that flag is almost always the missing piece.

Route 2: llama.cpp with a GGUF, the smaller download

If the 36 GB Ollama download is too big, or you want to run the model on a machine without Ollama, use llama.cpp with a GGUF file. The card lists llama.cpp among the supported engines, and the ggml-org builds are ready. The two main commands are:

llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K

Q4_K_M is the smaller, faster build. Q6_K is larger and a little more accurate. Both serve the model over a local API you can point any OpenAI-compatible client at.

The smallest downloads come from Unsloth, whose GGUFs start at 21 GB for the UD-IQ1_S build and go up from there. Unsloth claims a 3-bit version runs on about 18 GB of RAM. That is Unsloth's claim, not Qwen's, so treat it as a starting point and test it on your own machine. The Ollama command for the Unsloth build is:

ollama run hf.co/unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M

One warning for this route: Qwen4 is a brand-new architecture, so make sure your llama.cpp build is the latest one. An older build may not know the architecture at all and will fail to load the weights. If the load fails, update llama.cpp first before assuming the weights are broken.

Route 3: a server with vLLM or SGLang, or MLX on a Mac

If you have a real GPU server, the third route is a serving engine. The model card links a vLLM recipe, a SGLang cookbook and a TokenSpeed recipe, and recommends the latest framework versions because tool support for the new architecture is still arriving. The official FP8 weights are about 60 GB on disk, and the vLLM recipe needs about 40 GB of GPU memory plus 20.5 GB of host RAM for the n-gram table. The starting command is:

vllm serve Qwen/Qwen4-35B-A3B-FP8

Follow the recipe on the card for the exact flags, because the n-gram table and the 1M context need configuration that a bare serve command does not set. SGLang and TokenSpeed have their own cookbooks linked from the same card, and MLX is listed for Apple silicon.

There is no free hosted API or playground yet. Qwen Cloud will serve the model under the name qwen4-35b-a3b, with official built-in tools, but it is promised, not live, and no price is published on the model card. One secondary source quotes a price and another says no price is published, so this post quotes no price at all. Do not pay for anything until Qwen publishes the price itself. Every free route in this post is self-hosting on hardware you already own.

The thinking dial: xhigh, high, low, off

Qwen4 runs in thinking mode by default, with reasoning_effort="high" and preserve_thinking on. There are four levels, and they are the most useful control in the whole model:

xhigh: for complex tasks where quality matters most. Slowest, deepest thinking.
high: for common tasks. This is the default, and the right choice for most work.
low: for fast responses with minimal thinking. Good for simple questions.
off: disables thinking entirely. The model answers directly.

You can also use the older enable_thinking switch, where enable_thinking=False is the same as reasoning_effort="off". And the model may judge a task simple enough to answer directly without thinking, even at a higher effort level. That is the card's own note, not a bug.

Run the agentic test yourself: give the model the same small coding task twice, once with thinking on high and once with thinking off, and compare the two answers for speed and quality. A good test task is a real one from your own work, a small feature or a bug fix, not a textbook exercise. You will usually find that high effort is slower but produces working code on the first try, while off is fast but sloppy.

Here is the warning Qwen itself prints on the card, and it is worth reading twice. In multi-turn agentic tasks, lower reasoning effort does not always reduce total time. A fast per-turn answer that misses the point leads to failures and retries, and the retries can make the whole task slower and more expensive than doing it properly once. If you turn the dial down, watch the total task time, not just the speed of one reply.

If you call the model through an API, the settings come from the card. Thinking mode uses temperature 1.0, top_p 0.95 and top_k 20. Non-thinking mode uses temperature 0.7, top_p 0.80, top_k 20 and presence_penalty 1.5. The short Python call below shows how the thinking level is set. Use it as a starting point and adjust from there:

completion = client.chat.completions.create(
    model="Qwen/Qwen4-35B-A3B",
    messages=messages,
    extra_body={
        "chat_template_kwargs": {
            "preserve_thinking": True,
            "reasoning_effort": "high",
        },
    },
)

If the model ever falls into endless repetition, the card suggests raising presence_penalty toward 2, but warns that a high value can cause language mixing and slightly worse performance. Change one setting at a time, and keep a note of what you changed.

The honest catches, all in one place

Every free model in this series gets the same treatment, and Qwen4 is no exception. Here are the catches, stated plainly.

The 35B catch. The checkpoint is about 56.8 billion parameters in total, not 35 billion. The 36 GB Q4_K_M download and the 60 GB FP8 weights are the real sizes. A reader with a small laptop should use the 3-bit Unsloth build, not the full weights.

No free hosted API yet. Qwen Cloud is promised, not live, with no published price. Every free route in this post is self-hosting on your own hardware. If you have no GPU and no big disk, this model is not for you today. A genuinely small laptop model is a better fit, and our Bonsai 2.5 tutorial shows a 27B model that runs in 6 GB.

Benchmarks are Qwen's own. The chart on the model card is Qwen's own comparison, published on day zero, with no independent runs yet. Tool support is still arriving, so some frameworks may need an update before the model works in them.

Text out only. Images and video go in, but answers come back as text. There is no image or video generation here.

It can skip thinking. Even at high effort, the model may answer directly if it judges a task simple. That is by design, per the card, but it means the thinking dial is a request, not a guarantee.

What should I try first?

If you want the shortest path to a working Qwen4, here is the order that wastes the least time.

1. Install Ollama, then run ollama run qwen4. Give it a real coding task and watch the thinking. 2. Feed it a long document and ask a question that needs a detail from the middle. That is the test that proves the 1M context. 3. Send it an image through a front end and ask a question that needs the pixels. 4. Try the same task with thinking on high and then off, and compare speed against quality. 5. If your disk or GPU struggles, switch to the 3-bit Unsloth build instead of fighting the full weights.

And if you want to put it to work as a real agent, not just a chatbot, our n8n Nod tutorial shows how to give a free local model a job to do, and our Amazon Ergo guide covers the other big free coding model released this week, so you can compare the two before you commit your disk space to either.

FAQ

Is Qwen4 really free?
Yes. The weights are Apache 2.0, the Hugging Face repo is ungated, and Ollama mirrors the model for a one-command install. You pay only for your own hardware and electricity. There is no free hosted API yet, so the free routes are all self-hosting.

Can I run it on a normal laptop?
It depends on the laptop. The default Ollama build is about 36 GB on disk and needs a strong GPU with plenty of memory. A small laptop should use the 3-bit Unsloth build, which Unsloth claims runs on about 18 GB of RAM, or pick a smaller model entirely. This is not a 6 GB laptop model.

How big is a 1M-token context in real terms?
Roughly 750,000 words, or about ten novels, or a whole medium-sized codebase in one prompt. It is enough to hold an entire project and ask questions that need the whole thing.

Does it replace Qwen3.8?
It is the next generation, and Qwen says it matches Qwen3.8-Flash-Next at about a third of the size. That is Qwen's own claim, made on day zero, with no independent runs yet. Try the tests in this post before you replace anything you already rely on.

Can it see images and video?
Yes, images and video go in and text comes out. Image input works through the API or a front end with upload support, and video through the API or a server route. Both are new and worth testing on your own files.

Where do I get help if it does not load?
Start with the model card discussions on Hugging Face and the Ollama library page. The two most common fixes are updating llama.cpp or your serving engine to the latest version, and setting trust_remote_code=True for the reference tokenizer.

Sources

Qwen4-35B-A3B model card, Hugging Face
qwen4 on Ollama
Technode: Alibaba opens Qwen4-35B-A3B
Neowin: Qwen4-35B-A3B is here and it can run locally on your PC
Unsloth Qwen4-35B-A3B GGUF builds
ggml-org Qwen4-35B-A3B GGUF builds

Keep reading on RiseMe

Qwen3.8-27B vs Gemma 4: Free AI on Your Local PC
How to Run a 27B AI on Your Laptop for Free With Bonsai 2.5
How to Set Up Your Own Free AI Agent With n8n Nod
How to Use Amazon Ergo Free: The 1.1T Open Coding Model
How to Generate AI Videos for Free With MAGI-2

Post a Comment