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.
Popularity 70 out of 100. 63,617 downloads in 30 days; 4,797 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.
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.
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
View official Agents board
Web coding#19of 66 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: #56
View official Web coding board

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.

Check the date source
Popularity · adoption

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.

round(80 × min(1, log10(1 + downloads) / 7) + 20 × min(1, log10(1 + likes) / 5))

Check the statistics source
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.

MachineQwen4-35B-A3B · Q4_K_M (Ollama library)Qwen4-35B-A3B · BF16 full precision (Ollama library)
Apple Silicon · 32 GB unified memoryToo 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 memoryFits at the starting context; close other appsToo tight
Apple Silicon · 64–96 GBRecommended Mac start, with room for longer contextToo tight: the file alone is 114 GB
Apple Silicon · 128 GBComfortableFits; close other apps
Apple Silicon · 192 GB or moreComfortableComfortable
NVIDIA · 16 GB VRAM + 64 GB RAMRuns with most of the model in system RAM; noticeably slowerNot recommended
NVIDIA RTX 4090 · 24 GB VRAM + 32 GB RAMRuns with part of the model in system RAM; slowerNot recommended
NVIDIA RTX 5090 · 32 GB VRAM + 32 GB RAMRecommended PC start; a small part stays in system RAMNeeds 128 GB of system RAM; very slow
NVIDIA · 48 GB VRAM or moreFits fully on the GPUNeeds 96 GB of system RAM; slow
NVIDIA · 2× 80 GB (A100/H100)Fits easilyFits fully on the GPUs
AMD Radeon · 24 GB VRAM + 32 GB RAMRuns on supported ROCm cards with part of the model in system RAMNot recommended
CPU only · 64 GB RAMLoads and answers, but slowly; short tasks onlyToo 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.
Popularity 70 out of 100. 63,617 downloads in 30 days; 4,797 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.
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.
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
View official Agents board
Web coding#19of 66 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: #56
View official Web coding board

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.

Check the date source
Popularity · adoption

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.

round(80 × min(1, log10(1 + downloads) / 7) + 20 × min(1, log10(1 + likes) / 5))

Check the statistics source
Scores as of Dec 6, 2026. Statistics checked Dec 5, 2026. Statistics are marked for refresh after 72 hours.Full scoring method
View weight source
02
THE WORKFLOW

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.

Download Ollama Ollama releases
PowerShell
irm https://ollama.com/install.ps1 | iex
ollama --version
02

Set Ollama’s context to 32k

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.

Ollama context length
03

Download Qwen4-35B-A3B

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.

Qwen 4 in Ollama’s library
PowerShell
ollama pull qwen4
ollama list
05

Connect Cline to Ollama

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.

SettingValue
ProviderOllama
Base URLhttp://localhost:11434
Modelqwen4
Context window32768
Cline Ollama provider settings
06

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.

PowerShell
node --test
03
SUCCESS CHECK · Qwen4-35B-A3B · Q4_K_M (Ollama library)

Reviewed code and a passing test

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.

Back to setup steps

When it doesn’t go to plan

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.

7 SOURCES

The model behind this workflow

Qwen4-35B-A3B

Keep exploring

Text
SETUP GUIDE

Qwen3.5 · 9B private chat setup

Source-backed package and platform-route plan for private local chat with Qwen3.5 · 9B. Preserves the official Ollama 9B package, a smaller 4B family fallback, and a clearly labeled community uncensored GGUF option.

Freshness 34 out of 100. Release age: 282 days old, Feb 27, 2026. Measures age, not quality.
Popularity 90 out of 100. 5,206,593 downloads in 30 days; 2,404 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.
SOFTWAREOllama
Coding
SETUP GUIDE

Build a private coding assistant with Qwen3.8 27B

Run Qwen3.8 27B with Ollama, connect it to Cline in VS Code, and make one reviewable code change in a tiny local project.

Freshness 62 out of 100. Repository age: 123 days old, Aug 5, 2026. Measures age, not quality.
Popularity 93 out of 100. 4,375,122 downloads in 30 days; 21,000 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.
Arena Open Source Web coding: rank 14 of 66. Ranked model: Qwen3.8-27B. 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.+3
SOFTWAREOllama + Visual Studio Code + Cline + Python
Images
SETUP GUIDE

Create images locally with FLUX.2 Klein

Generate images from text prompts in ComfyUI with the fast distilled or more adjustable base 4B model. Save your results and reuse the visual workflow.

Freshness 29 out of 100. Release age: 325 days old, Jan 15, 2026. Measures age, not quality.
Popularity 77 out of 100. 464,662 downloads in 30 days; 1,168 lifetime likes. Checked Dec 5, 2026. Measures adoption, not quality.
SOFTWAREComfyUI