Workflows/Code locally with Qwen4-35B-A3B in VS Code + Cline
Coding / WORKFLOW
Code locally with Qwen4-35B-A3B in VS Code + Cline
Run Qwen’s Qwen4-35B-A3B with Ollama on Windows, Mac or Linux, connect VS Code and Cline, and have it write a small module plus tests that you review and run yourself.
Verified sourceSource checked 12/4/2026
LOCAL
Freshness 99 out of 100. Release age: 2 days old, Dec 4, 2026. Measures age, not quality.99/ 100Freshness2 days oldRelease age · Dec 4, 2026
Popularity 70 out of 100. 63,617 downloads in 30 days; 4,797 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.70/ 100Popularity63.6K downloads / 30d4.8K lifetime likes · Checked Dec 5, 2026
Arena Open Source Agents: rank 10 of 27. Ranked model: Qwen4-35B-A3B. Original model ranking, not a benchmark of this package. Export dated Dec 4, 2026. Source checked Dec 5, 2026. Human preference ranking, not hardware suitability.#10Arena · Open SourceAgentsof 27 open modelsOriginal model rankingQwen4-35B-A3BExport dated Dec 4, 2026Source checked Dec 5, 2026
Category rankings & sources+
Each position belongs to a separate Arena category. These are human preference rankings—not hardware recommendations. We do not combine the categories into one score.
Agents#10of 27 open models
Qwen4-35B-A3BalibabaLicense: Apache 2.0
Original model ranking. This does not benchmark the selected quantization or package.
Export dated Dec 4, 2026Checked: Dec 5, 2026Overall board: #46
Rankings reflect the dated export; live Arena boards can change. Open-source positions use Arena’s open-model filter. The overall position also includes the other models on that category board. Availability of weights and license terms still need to be checked separately.
What do these scores mean?+
Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.
Freshness · release age
A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.
Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.
Scores as of Dec 6, 2026. Statistics checked Dec 5, 2026. Statistics are marked for refresh after 72 hours.Full scoring method →
Before you begin
Hardware
Estimated from the published file sizes plus runtime and context headroom. Qwen4-35B-A3B is a mixture-of-experts model that uses about 3B of its parameters per token, so Ollama can keep part of it in system RAM at a smaller speed cost than a dense model of the same size. Not measured by YouRunAI.
Machine
Qwen4-35B-A3B · Q4_K_M (Ollama library)
Qwen4-35B-A3B · BF16 full precision (Ollama library)
Apple Silicon · 32 GB unified memory
Too tight: the file alone is 37 GB. Use the uncensored IQ2_XXS build, or llama.cpp (see the model page)
Too tight
Apple Silicon · 48 GB unified memory
Fits at the starting context; close other apps
Too tight
Apple Silicon · 64–96 GB
Recommended Mac start, with room for longer context
Too tight: the file alone is 114 GB
Apple Silicon · 128 GB
Comfortable
Fits; close other apps
Apple Silicon · 192 GB or more
Comfortable
Comfortable
NVIDIA · 16 GB VRAM + 64 GB RAM
Runs with most of the model in system RAM; noticeably slower
Not recommended
NVIDIA RTX 4090 · 24 GB VRAM + 32 GB RAM
Runs with part of the model in system RAM; slower
Not recommended
NVIDIA RTX 5090 · 32 GB VRAM + 32 GB RAM
Recommended PC start; a small part stays in system RAM
Needs 128 GB of system RAM; very slow
NVIDIA · 48 GB VRAM or more
Fits fully on the GPU
Needs 96 GB of system RAM; slow
NVIDIA · 2× 80 GB (A100/H100)
Fits easily
Fits fully on the GPUs
AMD Radeon · 24 GB VRAM + 32 GB RAM
Runs on supported ROCm cards with part of the model in system RAM
Not recommended
CPU only · 64 GB RAM
Loads and answers, but slowly; short tasks only
Too tight
Ollama’s library has no 6-bit or 8-bit Qwen 4 build, so the step up from Q4_K_M is the full BF16 model. Qwen also publishes an FP8 checkpoint for vLLM and SGLang, and Ollama lists an MLX NVFP4 tag for Macs. ggml-org publishes Q4_K_M, Q6_K and Q8_0 GGUFs for llama.cpp, whose lazy loading keeps the 20B n-gram table on disk and so needs less memory; that route is on the model page.
LOCAL CODING · VS CODE + CLINE · WINDOWS · MAC · LINUXSOURCE-LINKED SETUP
Code locally with Qwen4-35B-A3B in VS Code + Cline
Pull Qwen 4 with Ollama, connect Cline through its Ollama provider, and have it create a function with tests. You review every edit and run the test yourself.
Choose a package Run its commands Check the result
01
BEFORE YOU BEGIN
Choose your package
Select the weights you want. The instructions, downloads and settings change with your choice.
The publisher has not provided a complete memory target for this task. Check its hardware guidance before starting.
CURRENT SETUP
Qwen4-35B-A3B · Q4_K_M (Ollama library) · official
Start at 32,768 tokens for this Cline coding setup. The 37 GB file is only the weights; the runtime and context add more. A 64 GB Mac is comfortable and a 48 GB Mac is the practical minimum. On a PC, a 24 or 32 GB GPU with 32 GB or more of system RAM works with part of the model in system RAM: Qwen 4 uses only about 3B parameters per token, so that costs less speed than it would with a dense model. Longer context needs more memory, so lower Ollama’s context first if you run out. Estimate, not a YouRunAI measurement.
Freshness 99 out of 100. Release age: 2 days old, Dec 4, 2026. Measures age, not quality.99/ 100Freshness2 days oldRelease age · Dec 4, 2026
Popularity 70 out of 100. 63,617 downloads in 30 days; 4,797 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.70/ 100Popularity63.6K downloads / 30d4.8K lifetime likes · Checked Dec 5, 2026
Arena Open Source Agents: rank 10 of 27. Ranked model: Qwen4-35B-A3B. Original model ranking, not a benchmark of this package. Export dated Dec 4, 2026. Source checked Dec 5, 2026. Human preference ranking, not hardware suitability.#10Arena · Open SourceAgentsof 27 open modelsOriginal model rankingQwen4-35B-A3BExport dated Dec 4, 2026Source checked Dec 5, 2026
Category rankings & sources+
Each position belongs to a separate Arena category. These are human preference rankings—not hardware recommendations. We do not combine the categories into one score.
Agents#10of 27 open models
Qwen4-35B-A3BalibabaLicense: Apache 2.0
Original model ranking. This does not benchmark the selected quantization or package.
Export dated Dec 4, 2026Checked: Dec 5, 2026Overall board: #46
Rankings reflect the dated export; live Arena boards can change. Open-source positions use Arena’s open-model filter. The overall position also includes the other models on that category board. Availability of weights and license terms still need to be checked separately.
What do these scores mean?+
Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.
Freshness · release age
A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.
Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.
Set up Qwen4-35B-A3B · Q4_K_M (Ollama library) on your machine
Choose where you want to run it. The instructions below update to match your selection.
CHOOSE YOUR SETUPWindows
01
Install or update Ollama
Download and run OllamaSetup.exe from ollama.com/download, or paste the first line into PowerShell. Ollama starts in the background and adds an icon to the taskbar. Qwen 4 needs Ollama 0.40.21 or newer, released with the model on December 4, 2026. If you already have Ollama, update it (choose Check for Updates or Restart to update from its taskbar icon), then check the version with the last command. If the regular download is still older, install 0.40.21 from Ollama’s releases page.
Cline’s instructions and your files fill context quickly, and Ollama starts most models with a much shorter context. Open Ollama’s Settings from its taskbar icon and move the Context length slider to 32k. That is the only setting you change. Qwen 4 supports up to 1M tokens, but a longer context needs much more memory.
In PowerShell, run this to download Qwen’s model from Ollama’s own library (the 37 GB 4-bit Q4_K_M build, tagged for vision, tools and thinking). It is a large download, so give it time; if it is interrupted, run the same command again and it resumes. The second command lists the model once it has finished.
Install Visual Studio Code, then open the Cline extension page and choose Install. Install the current Node.js LTS release as well; the example project uses Node’s built-in test runner, so no packages need to be downloaded.
Open Cline’s settings in VS Code. Choose the Ollama provider, keep the Base URL at http://localhost:11434, and pick qwen4 from the model list. Set the model context window to 32768 so it matches Ollama. Keep auto-approve off for file edits and terminal commands.
Create a small project and give Cline a coding task
Create an empty folder named qwen4-coding-test, open it in VS Code with File → Open Folder, and paste the task below into Cline in Act mode. Qwen 4 thinks before it answers by default, so the first reply can take a little while. Approve each file write after reading it, and approve the single test command. Cline is the coding client; the model only proposes edits and commands. Keep these approvals on: the model proposes actions, and you decide what runs.
Plain text
Create slugify.mjs that exports a function slugify(text) which lowercases text, trims it, replaces runs of non-alphanumeric characters with single hyphens and removes leading or trailing hyphens. Create slugify.test.mjs that uses node:test and node:assert to check at least four cases, including an empty string. Then run node --test and show me the result.
07
Review the diff and run the test yourself
Open both files and read the change. Then run the test from the VS Code terminal (PowerShell) to confirm it passes independently of Cline. A passing node --test run and code you have read is the result; a chat answer without saved files does not count. When you are done, the model unloads from memory a few minutes after the last request; next time, just open VS Code and Cline, because nothing is downloaded twice.
slugify.mjs and slugify.test.mjs exist in your project, you have read the diff, and node --test passes when you run it yourself.
Qwen describes the model as strong at coding and agent work and says it matches or beats Qwen3.8-Flash-Next on some tasks; its published benchmark results are in a chart on the model card. Cline tool reliability with this exact package has not been tested by YouRunAI. Sources checked December 4, 2026, the day Qwen4-35B-A3B was released; runtime support is brand new and still changing. YouRunAI has not run this exact setup, and hardware ratings are estimates.
Cline says the model returned no tool call or an invalid response.
Run ollama ps while Cline is working: the CONTEXT column should say 32768. If it is lower, set the context again and restart Ollama. Check that the model in Cline is exactly the name you pulled (qwen4, or qwen4:35b-a3b-gguf-bf16 for the full-precision package), then retry rather than switching on auto-approve.
ollama pull fails, or Ollama says the model needs a newer version or does not recognise its architecture.
Update Ollama to 0.40.21 or newer (from its menu-bar or taskbar icon, by running the Linux install command again, or from the releases page), restart it, and run the command again. ollama pull resumes an interrupted download.
The model is very slow, or Ollama runs out of memory.
Close other apps that use the GPU or memory and move Ollama’s context down one step. Run ollama ps while it works: the PROCESSOR column shows how much of the model is on the GPU. On a 32 GB Mac or a 24 GB GPU, try a smaller package.
A reply spends a long time thinking before it starts.
Qwen 4 thinks before answering by default (reasoning effort high). That is expected on harder tasks; give it time, or break the task into smaller steps. Do not set the temperature to 0: Qwen’s and dealignai’s cards both warn that greedy decoding can make thinking mode repeat itself.
node is not recognised.
Install Node.js LTS from nodejs.org, then close and reopen VS Code so its terminal picks up the new PATH.
REFERENCE LIBRARY
Sources and files
Original instructions, model files, and compatibility notes behind this setup.