9io.ai / Blog

Best local LLM for coding in November 2026, by GPU memory

The best local LLM for coding at 24, 48, 128 and 256 GB, with licences, 4-bit file sizes, independent scores and agent setup, as of 5 November 2026.

Key takeaways

  • On a 24 GB GPU, Qwen3.8-27B leads: 16.5 GB at 4-bit and 79.8% on Terminal-Bench 2.1.
  • Nanbeige4.3-33B scores 29.8% on Terminal-Bench 4.0 but needs 32 GB or more for agent-length context.
  • Of models Artificial Analysis has tested, none between 48 and 128 GB beats Nanbeige4.3-33B on Terminal-Bench 4.0.
  • GLM-5.3-Flash, about 200 GB at 4-bit under MIT, is the next clear step up.
  • On Terminal-Bench 4.0, Claude Opus 5.5 scores 59.6%; the best model that fits 512 GB scores 41.9%.

The best local LLM for coding on one 24 GB GPU, as of 5 November 2026, is Qwen3.8-27B. It is Apache 2.0, Unsloth’s 4-bit GGUF build is 16.5 GB, and Artificial Analysis measured it at 79.8% on Terminal-Bench 2.1, against 51.7% for Meta’s Muse Glimmer and 43.4% for Google’s Gemma 4 31B.1234 With 32 to 48 GB, add Nanbeige4.3-33B, released in late October. It scores 29.8% on the harder Terminal-Bench 4.0, where Qwen3.8-27B scores 5.6%, though Qwen leads on FrontierCode 2.0.54 With 256 GB, GLM-5.3-Flash beats both on Terminal-Bench 4.0 and FrontierCode 2.0, under an MIT licence.64

More memory buys less than the hardware price suggests. Of the models Artificial Analysis has tested, none whose 4-bit build falls between 48 and 128 GB beats Nanbeige4.3-33B on Terminal-Bench 4.0. No model that fits in 512 GB comes near the hosted frontier there either. The best, GLM-5.3, scores 41.9%, against 59.6% for Claude Opus 5.5. Moonshot’s open-weight Kimi K3.1 Pro scores 67.2%, but its weights take 1.56 TB.748

Below are the models by tier, the memory their context adds, how to connect a coding agent, and a decision rule. We haven’t run any of these models. Scores are Artificial Analysis’s unless marked as a vendor’s own, and everything was read on 5 November 2026.

The best local LLM for coding at each memory tier

The table pulls together the models worth considering, as of 5 November 2026. The 4-bit build is a common quantised file on Hugging Face. Scores come from Artificial Analysis’s own runs, at the reasoning setting it lists for each model.42

Tier Model Licence Parameters, total / active 4-bit build and size Context Terminal-Bench 2.1 Terminal-Bench 4.0
16 to 24 GB Qwen3.8-27B Apache 2.0 27B dense 16.5 GB, Unsloth UD-Q4_K_M 256K 79.8% 5.6%
16 to 24 GB Muse Glimmer 30B Apache 2.0, plus Meta’s usage policy 29.6B dense 16.8 GB, Meta’s Q4_K_M 128K 51.7% 0.5%
16 to 24 GB Qwen3.6-35B-A3B Apache 2.0 35B / 3B 22.1 GB, Unsloth UD-Q4_K_M 256K 44.9% 0%
16 to 24 GB Gemma 4 31B Apache 2.0 30.7B dense 17.7 GB, Google’s QAT Q4_0 256K 43.4% 0%
16 to 24 GB Devstral Small 2 Apache 2.0 24B dense 14.3 GB, Unsloth Q4_K_M 256K 29.6% 0%
16 to 24 GB gpt-oss-20b Apache 2.0 21B / 3.6B 12.1 GB, MXFP4 128K 13.9% 0%
32 to 48 GB Nanbeige4.3-33B Apache 2.0 in the card metadata 33B dense 20.8 GB, bartowski Q4_K_M 512K Not run 29.8%
64 to 128 GB Qwen3.8-Flash-Next Qwen Community License 1.0 125B / 6B 93.7 GB, Unsloth UD-IQ4_XS 256K 86.1% 25.3%
64 to 128 GB Laguna S 2.1 OpenMDW-1.1 118B / 8B 73.1 GB, Unsloth UD-Q4_K_M 1M Not run Not run
64 to 128 GB Mistral Medium 3.5 Modified MIT 128B dense 74.9 GB, Unsloth Q4_K_M 256K 50.6% 0%
64 to 128 GB gpt-oss-120b Apache 2.0 117B / 5.1B 63.4 GB, MXFP4 128K 26.2% 0%
256 GB and up GLM-5.3-Flash MIT 320B / 18B 199.7 GB, Unsloth UD-Q4_K_XL 1M 84.3% 32.8%
256 GB and up MiMo-V2.6-Flash MIT 309B / 15B 167.4 GB, MXFP4 1M Not run 22.7%
256 GB and up GLM-5.3 GLM-5.3 License 753B / not stated 365.3 GB, Unsloth UD-IQ4_XS 1M 83.9% 41.9%
256 GB and up DeepSeek V4.1 Flash 1017 MIT 552B / 8B to 16B 500.7 GB, Unsloth UD-Q4_K_XL 1M Not run 33.8%

Sources: the model cards and repository file lists on Hugging Face, and Artificial Analysis’s Terminal-Bench pages and model pages, all read on 5 November 2026.9105111213614151637

Context is the native window on each card, with K meaning 1,024 tokens. Qwen3.8-Flash-Next’s file also holds a 51B-parameter n-gram embedding and a 4B multi-token prediction module, and DeepSeek V4.1 Flash 1017’s holds a 196B-parameter lookup memory.1116 Artificial Analysis replaced Terminal-Bench 2.1 with 4.0 in its index, and its newest entries have no 2.1 score.17

16 to 24 GB of VRAM: Qwen3.8-27B

Qwen3.8-27B is a dense model, but only 16 of its 64 layers use full attention. The other 48 use Gated DeltaNet linear attention, which doesn’t keep a per-token cache.1 By our arithmetic from its config, 128K tokens of cache take 8.6 GB at 16-bit and about 4.6 GB at 8-bit, so the 16.5 GB build and a 128K context fit in about 21 GB. Thinking is on by default, and the setting matters. Artificial Analysis has it at 79.8% on Terminal-Bench 2.1 at the default xhigh effort and 49.1% with reasoning off.4 Qwen’s own run, also in the Terminus harness, scored 73.0%.1

That setting is wordy. Artificial Analysis counted 128 million output tokens across its index runs at xhigh, against 39.5 million for Muse Glimmer.4 On local hardware, your own GPU generates every one of them.

Meta publishes local speeds for Muse Glimmer, which we couldn’t find for the other models here. It measured its 17 GB build at 74.9 tokens per second on an RTX 5090 in llama.cpp, rising to 233.4 with the DFlash draft model it ships. On an M5 Max with ExecuTorch the figures were 26.6 and 50.2, all at batch size 1 with greedy decoding.10 Its cache is the smallest in this tier, though its window stops at 128K tokens.

On a 16 GB card, Qwen3.8-27B fits only in smaller builds, such as Unsloth’s 14.3 GB UD-IQ4_XS or 13.2 GB 3-bit file, and nobody has published scores for those. gpt-oss-20b (12.1 GB, 13.9% on Terminal-Bench 2.1) and Devstral Small 2 (14.3 GB, 29.6%) fit at their usual 4-bit sizes.24 For Devstral Small 2, a bash-only SWE-bench Verified run performed or checked by the SWE-bench team resolved 56.4% of tasks, where Mistral reports 68.0% with its own setup.189 For mixture-of-experts models such as Qwen3.6-35B-A3B, llama.cpp’s --n-cpu-moe option keeps expert weights in system RAM, so a 22 GB build can run on a smaller card.19

Two vendor-scored options are worth a test. NVIDIA’s Nemotron 3.5 Bolt 74B-A9B 24GB packs a 74B model into a 22.0 GB file with 2-bit quantisation-aware training, and NVIDIA reports 51.0% on Terminal-Bench 2.1 in its own run. Poolside reports 70.9% on SWE-bench Verified for Laguna XS 2.1, a 33B model with 3B active under OpenMDW-1.1.2012 Artificial Analysis hasn’t published a Terminal-Bench 2.1 score for either.

32 to 48 GB: Nanbeige4.3-33B, or Qwen3.8-27B at 8-bit

Nanbeige4.3-33B is a dense 33B model with the standard Llama architecture and a 512K-token window. Its card declares Apache 2.0 in the metadata, but the repository has no licence file, so save the card at the revision you download.5 Artificial Analysis scores it 29.8% on Terminal-Bench 4.0, the highest it lists for any open model under 100B parameters. On FrontierCode 2.0 it scores 10.7% to Qwen3.8-27B’s 14.9%, and the two sit level at 20 on the overall index.4

Its cache is large. All 52 layers attend to every token, so each token costs 208 KiB at 16-bit, by our arithmetic from its config.5 On a 24 GB card, bartowski’s 18.6 GB IQ4_XS build leaves about 7.2 GB. By our arithmetic that holds a little under 64K tokens of 8-bit cache before runtime buffers, so in practice a 32K window, where Ollama’s docs recommend 64,000 tokens for coding tools.21 With 48 GB, the 20.8 GB Q4_K_M build and a 128K context at 8-bit come to about 36 GB.

It is less than two weeks old, and verbose. Artificial Analysis counted 160 million output tokens across its index runs, more than Qwen3.8-27B’s 128 million.4

The other way to spend 48 GB is Qwen3.8-27B at 8-bit. The Q8_0 build is 29.1 GB, and its full 256K window at 16-bit adds 17.2 GB, about 46 GB in all.2 Qwen’s dedicated coder, Qwen3-Coder-Next, makes poorer use of the space. Its 4-bit build is 48.4 GB, it has no thinking mode, and it scores 38.2% on Terminal-Bench 2.1.294

64 to 128 GB: Qwen3.8-Flash-Next, with a licence check

Qwen3.8-Flash-Next has the highest Terminal-Bench 2.1 score in this post, 86.1%, but scores 25.3% on Terminal-Bench 4.0, below Nanbeige4.3-33B.4 It is a 125B mixture-of-experts model with 6B active, which Qwen presents as an experimental preview of the design it plans for Qwen4.11 Unsloth’s smallest 4-bit GGUF is 93.7 GB. Ollama’s Q4_K_M is 120 GB and its MLX NVFP4 build 105 GB, so plan on a 128 GB machine.222

Its licence matters for some companies. Under the Qwen Community License 1.0, a company that runs a model-as-a-service business or an AI Work Assistant business needs a separate licence from Qwen before any commercial use. The licence defines the second as an independent product built mainly for AI-assisted coding or office productivity. Internal use that doesn’t expose the model or its outputs to third parties is exempt.11 If you build coding products, read our comparison of open-weight licences before choosing it.

The other candidates in this range score lower or lack independent scores. Mistral Medium 3.5, a dense 128B model, scores 50.6% on Terminal-Bench 2.1. All 88 of its layers attend to every token, so 128K tokens of cache take 47 GB at 16-bit on top of 74.9 GB of weights. Its Modified MIT licence gives no rights at all to a company whose monthly revenue passed $20 million in the previous month.134 gpt-oss-120b fits in 63.4 GB and scores 26.2% on the same test. Aider’s polyglot benchmark had it at 41.8% in August 2025, the only model here on that leaderboard.23 Poolside reports 70.2% on Terminal-Bench 2.1 for Laguna S 2.1, which is 73.1 GB at 4-bit under OpenMDW-1.1, but nobody has published an independent run.12

256 GB and up: GLM-5.3-Flash, then GLM-5.3 and DeepSeek V4.1 Flash

GLM-5.3-Flash is the next clear step. Z.ai’s 320B mixture-of-experts model activates 18B parameters per token, mixes sparse and linear attention, has a 1M-token window and is MIT-licensed.6 Artificial Analysis has it at 84.3% on Terminal-Bench 2.1, 32.8% on 4.0 and 17.6% on FrontierCode 2.0. That puts it ahead of Qwen3.8-27B on all three and of Nanbeige4.3-33B on both tests Nanbeige has taken.4 Unsloth’s UD-Q4_K_XL build is 199.7 GB and its UD-IQ4_XS 156.8 GB, and Ollama offers the model only as a cloud model.222

MiMo-V2.6-Flash, also MIT, is 167.4 GB in ggml-org’s MXFP4 build and scores 22.7% on Terminal-Bench 4.0 and 21.6% on FrontierCode 2.0.144 MiniMax-M3.1-Flash is 249.4 GB at 4-bit and scores 25.8% on Terminal-Bench 4.0. Its licence grants rights for non-commercial use, and commercial use needs a “Built with MiniMax M3.1-Flash” notice plus a one-time notice to MiniMax, or MiniMax’s written permission for products earning more than $20 million a year.244

A 512 GB machine opens two more. GLM-5.3’s 365.3 GB UD-IQ4_XS build fits, and at 41.9% it has the best Terminal-Bench 4.0 score of any open model that does. Its licence requires Z.ai’s security review only for model-as-a-service businesses with group revenue over $10 billion in 12 months.157 DeepSeek V4.1 Flash 1017 scores 33.8% on Terminal-Bench 4.0 and 28.5% on FrontierCode 2.0, the best FrontierCode result here, and Unsloth’s 4-bit build is 500.7 GB.42 Use a current runtime. Unsloth’s cards for GLM-5.3-Flash and DeepSeek V4.1 Flash 1017 still point to its own llama.cpp pull request, though mainline llama.cpp now lists both architectures.2526

How much memory the context window needs

Every layer that attends to all earlier tokens keeps a key and a value for each of them. At 16-bit, the cache costs 2 × those layers × KV heads × head dimension × 2 bytes per token. Sliding-window and linear-attention layers add a fixed amount per session instead. The table is our arithmetic from each model’s config.json, with 64K and 128K meaning 65,536 and 131,072 tokens.

Model Layers attending to every token Cache per token, 16-bit 64K tokens 128K tokens 4-bit weights
Muse Glimmer 30B 13 of 52 13 KiB 0.9 GB 1.7 GB 16.8 GB
Qwen3.6-35B-A3B 10 of 40 20 KiB 1.3 GB 2.7 GB 22.1 GB
Qwen3.8-27B 16 of 64 64 KiB 4.3 GB 8.6 GB 16.5 GB
Devstral Small 2 40 of 40 160 KiB 10.7 GB 21.5 GB 14.3 GB
Nanbeige4.3-33B 52 of 52 208 KiB 14.0 GB 27.9 GB 20.8 GB
Mistral Medium 3.5 88 of 88 352 KiB 23.6 GB 47.2 GB 74.9 GB

Sources: config.json in each model’s repository, read on 5 November 2026.1105913

An 8-bit cache roughly halves these numbers. llama.cpp defaults to 16-bit and takes -ctk q8_0 -ctv q8_0. Ollama reads OLLAMA_KV_CACHE_TYPE=q8_0 when flash attention is on and says it usually has no noticeable effect on quality, and MLX LM’s server takes --kv-bits.192127

How to run a coding LLM locally and connect an agent

Each common runtime serves an HTTP API, and which API shapes it speaks decides which coding agents can use it.

Runtime Model formats Endpoints agents can use Default port Worth knowing
llama.cpp (llama-server) GGUF Chat Completions, Responses, Anthropic Messages Set with --port Tool calls need --jinja, which is on by default
Ollama GGUF, plus MLX builds of some models on Macs Chat Completions, Responses, Anthropic Messages 11434 Default context is 4K, 32K or 256K tokens depending on detected VRAM
LM Studio GGUF and MLX Chat Completions, Responses, Anthropic Messages 1234 lms server start starts it from a terminal
MLX LM (mlx_lm.server) MLX Chat Completions 8080 Its docs advise against production use
vLLM Hugging Face checkpoints Chat Completions, Responses, Anthropic Messages 8000 Each model needs the right --tool-call-parser

Sources: each project’s documentation, read on 5 November 2026.1921282729

Agent How it reaches a local model Watch for
Codex CLI codex --oss with Ollama or LM Studio, or a [model_providers] entry with a base_url Custom providers must speak the Responses API, the only wire_api value Codex accepts
Claude Code ANTHROPIC_BASE_URL set to Ollama, LM Studio, llama.cpp or vLLM Anthropic doesn’t support routing it to non-Claude models, and vLLM rejects its web search tool
Cline Built-in Ollama and LM Studio providers, or OpenAI Compatible Its docs recommend turning on Use Compact Prompt
Continue provider: ollama, lmstudio, llama.cpp or vllm in config.yaml Set apiBase for a server on another machine
Aider --model ollama_chat/<model>, or --model openai/<model> with OPENAI_API_BASE With Ollama, it sizes the context window to each request
OpenCode A provider using @ai-sdk/openai-compatible with a baseURL Set each model’s limit.context

Sources: each agent’s documentation, read on 5 November 2026.30312932333435

Ollama documents both agents end to end, which makes it a simple first setup.21

# Ollama picks 4K, 32K or 256K tokens of context from the VRAM it detects
OLLAMA_CONTEXT_LENGTH=64000 ollama serve

# In a second terminal
ollama pull qwen3.8:27b                     # the 18 GB default tag
codex --oss -m qwen3.8:27b                  # Codex CLI over Ollama's Responses endpoint
ollama launch claude --model qwen3.8:27b    # Claude Code over its Anthropic endpoint

On a Mac, MLX LM’s server documents only an OpenAI-style chat API, so Codex and Claude Code need LM Studio or Ollama to serve an MLX model.2728 LM Studio’s Claude Code guide also sets CLAUDE_CODE_ATTRIBUTION_HEADER=0, and vLLM’s explains why: a per-request hash in Claude Code’s system prompt can defeat prefix caching. vLLM handles it automatically after version 0.17.1.2829 Our comparison of Claude Code, Codex and Cursor covers the agents themselves.

What to expect against Claude, GPT and Gemini

On the two coding tests in Artificial Analysis’s current index, the gap between local and hosted models is wide at every tier, as of 5 November 2026.7364

Model Where it runs Intelligence Index Terminal-Bench 4.0 FrontierCode 2.0
Gemini 4 Carbon, high Hosted 60 65.2% 40.6%
Claude Opus 5.5, max Hosted 59 59.6% 46.4%
GPT-6.1 Sol, max Hosted 55 56.1% 40.6%
Kimi K3.1 Pro, max 1.56 TB of weights 46 67.2% 25.5%
GLM-5.3, max 512 GB 32 41.9% 21.6%
DeepSeek V4.1 Flash 1017, max 512 GB 33 33.8% 28.5%
GLM-5.3-Flash 256 GB 28 32.8% 17.6%
Nanbeige4.3-33B 32 to 48 GB 20 29.8% 10.7%
Qwen3.8-27B, xhigh 24 GB 20 5.6% 14.9%

The one open model level with the frontier is far too big for these tiers. Moonshot published the weights of Kimi K3.1 Pro, a 2.8T-parameter model with 104B active, on 2 November under a custom licence. It beats Claude Opus 5.5 on Terminal-Bench 4.0 but trails it on FrontierCode 2.0, and Artificial Analysis still labels it proprietary.84

The older Terminal-Bench 2.1 makes the gap look small. Claude Fable 5.1 scores 91.4% and GPT-6 Astra 88.4% on it, against 86.1% for Qwen3.8-Flash-Next and 79.8% for Qwen3.8-27B.3 With hosted models near 90%, it no longer separates the top of the field.

Little is published on speed or tool-calling reliability for local runs. Meta’s Muse Glimmer figures are the only local speeds we found, and we found no tool-call error rates for these models on local runtimes, so test tool calling with your agent before trusting a session to it. If your code can leave your network, the same open models are cheap to rent. Ollama’s cloud lists GLM-5.3-Flash at $0.15 per million input tokens and $0.50 per million output tokens, as of 5 November 2026.22

Where these numbers come from

Artificial Analysis runs Terminal-Bench 2.1’s 89 tasks in the Terminus 2 harness and 4.0’s 66 tasks in mini-swe-agent, averaging pass@1 over three repeats. FrontierCode 2.0’s 132 private tasks ask for changes to real open-source repositories, graded on whether a maintainer would merge them.3736

The leaderboards people still cite haven’t kept up. SWE-bench’s newest entries are dated 26 February 2026, Aider’s polyglot leaderboard was last updated on 20 November 2025, and LiveCodeBench’s covers problems up to April 2025. Of the models here, only Devstral Small 2 and gpt-oss appear on any of them.182337 Vendors use their own harnesses. Qwen ran SWE-bench Pro in Claude Code, Nanbeige ran Terminal-Bench 4.0 in mini-swe-agent, and Poolside used its own agent, so their numbers don’t compare across vendors.1512

File sizes are Hugging Face’s decimal gigabytes, while memory is sold in binary units. A 24 GB card holds 25.8 GB and a 128 GB Mac 137.4 GB, and the fits above use those figures. We found no published scores for the specific 4-bit files listed. Meta reports that its 17 GB Muse Glimmer build averaged 1.0% below full precision across 15 benchmarks.10 Cache sizes are our arithmetic and leave out runtime buffers, vision encoders and fixed per-session state. We measured no speeds, quality loss or tool-call reliability.

How we would choose

  1. Start from free memory: the total, minus what the system and other apps use, minus the cache for a 64K to 128K context.
  2. On 16 GB, run gpt-oss-20b with its full 128K window, or Devstral Small 2 with a short one, and test a smaller Qwen3.8-27B build against them.
  3. On 24 GB, run Qwen3.8-27B at 4-bit with an 8-bit cache and a 128K context.
  4. From 32 to 96 GB, run Nanbeige4.3-33B with a 64K to 128K context alongside Qwen3.8-27B at 8-bit, and keep whichever does better on a week of your own tasks.
  5. At 128 GB, add Qwen3.8-Flash-Next to that comparison, after checking its licence against your business.
  6. At 256 GB, run GLM-5.3-Flash. At 512 GB, compare GLM-5.3 and DeepSeek V4.1 Flash 1017 after checking your runtime supports them.
  7. Before connecting an agent, raise the runtime’s context to at least 64K, leave thinking on, and confirm a few tool calls work end to end.
  8. Keep a hosted frontier model for the tasks the local one fails. On Terminal-Bench 4.0, even the best model that fits in 512 GB fails more than half the tasks.

  1. Qwen, Qwen3.8-27B model card and config.json, Hugging Face, read 5 November 2026, https://huggingface.co/Qwen/Qwen3.8-27B ↩↩↩↩↩

  2. Hugging Face repository file lists, read 5 November 2026: https://huggingface.co/unsloth/Qwen3.8-27B-GGUF, https://huggingface.co/lmstudio-community/Qwen3.8-27B-MLX-4bit, https://huggingface.co/bartowski/Nanbeige_Nanbeige4.3-33B-GGUF, https://huggingface.co/meta-models/Muse-Glimmer-30B-GGUF, https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF, https://huggingface.co/google/gemma-4-31B-it-qat-q4_0-gguf, https://huggingface.co/unsloth/Devstral-Small-2-24B-Instruct-2512-GGUF, https://huggingface.co/ggml-org/gpt-oss-20b-GGUF, https://huggingface.co/ggml-org/gpt-oss-120b-GGUF, https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-GGUF, https://huggingface.co/Qwen/Qwen3-Coder-Next-GGUF, https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF, https://huggingface.co/unsloth/Laguna-S-2.1-GGUF, https://huggingface.co/unsloth/Mistral-Medium-3.5-128B-GGUF, https://huggingface.co/unsloth/GLM-5.3-Flash-GGUF, https://huggingface.co/ggml-org/MiMo-V2.6-Flash-RL-GGUF, https://huggingface.co/unsloth/MiniMax-M3.1-Flash-GGUF, https://huggingface.co/unsloth/GLM-5.3-GGUF and https://huggingface.co/unsloth/DeepSeek-V4.1-Flash-1017-GGUF ↩↩↩↩↩↩↩↩

  3. Artificial Analysis, “Terminal-Bench 2.1 Benchmark”, read 5 November 2026, https://artificialanalysis.ai/evaluations/terminalbench-2-1 ↩↩↩↩

  4. Artificial Analysis, “LLM Leaderboard” and the model page for each model named, such as https://artificialanalysis.ai/models/qwen3-8-27b and https://artificialanalysis.ai/models/nanbeige4-3-33b, read 5 November 2026, https://artificialanalysis.ai/leaderboards/models ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  5. Nanbeige, Nanbeige4.3-33B model card, config.json and file list, Hugging Face, read 5 November 2026, https://huggingface.co/Nanbeige/Nanbeige4.3-33B ↩↩↩↩↩↩

  6. Z.ai, GLM-5.3-Flash model card and config.json, read 5 November 2026, https://huggingface.co/zai-org/GLM-5.3-Flash ↩↩↩

  7. Artificial Analysis, “Terminal-Bench 4.0 Benchmark”, read 5 November 2026, https://artificialanalysis.ai/evaluations/terminalbench-4-0 ↩↩↩↩↩

  8. Moonshot AI, Kimi K3.1 Pro model card and file list, read 5 November 2026, https://huggingface.co/moonshotai/Kimi-K3.1-Pro ↩↩

  9. Model cards and configs on Hugging Face, read 5 November 2026: Qwen3.6-35B-A3B, https://huggingface.co/Qwen/Qwen3.6-35B-A3B, Gemma 4 31B, https://huggingface.co/google/gemma-4-31B-it, Devstral Small 2, https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512, gpt-oss-120b and gpt-oss-20b, https://huggingface.co/openai/gpt-oss-120b, and Qwen3-Coder-Next, https://huggingface.co/Qwen/Qwen3-Coder-Next ↩↩↩↩

  10. Meta, Muse Glimmer 30B model card and config.json, Hugging Face, read 5 November 2026, https://huggingface.co/meta-models/Muse-Glimmer-30B ↩↩↩↩

  11. Qwen, Qwen3.8-Flash-Next model card and Qwen Community License 1.0, read 5 November 2026, https://huggingface.co/Qwen/Qwen3.8-Flash-Next and https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE ↩↩↩↩

  12. Poolside, Laguna XS 2.1 and Laguna S 2.1 model cards, read 5 November 2026, https://huggingface.co/poolside/Laguna-XS-2.1 and https://huggingface.co/poolside/Laguna-S-2.1 ↩↩↩↩

  13. Mistral AI, Mistral Medium 3.5 128B model card, config.json and licence, read 5 November 2026, https://huggingface.co/mistralai/Mistral-Medium-3.5-128B and https://huggingface.co/mistralai/Mistral-Medium-3.5-128B/blob/main/LICENSE ↩↩↩

  14. Xiaomi, MiMo-V2.6-Flash-RL model card, read 5 November 2026, https://huggingface.co/XiaomiMiMo/MiMo-V2.6-Flash-RL ↩↩

  15. Z.ai, GLM-5.3 model card, config.json and licence, read 5 November 2026, https://huggingface.co/zai-org/GLM-5.3 and https://huggingface.co/zai-org/GLM-5.3/blob/main/LICENSE ↩↩

  16. DeepSeek, DeepSeek-V4.1-Flash and DeepSeek-V4.1-Flash-1017 model cards, read 5 November 2026, https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash and https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017 ↩↩

  17. Artificial Analysis, “Intelligence Benchmarking Methodology”, read 5 November 2026, https://artificialanalysis.ai/methodology/intelligence-benchmarking ↩

  18. SWE-bench, leaderboards including Bash Only, read 5 November 2026, https://www.swebench.com/ ↩↩

  19. llama.cpp, “LLaMA.cpp HTTP Server”, read 5 November 2026, https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md ↩↩↩

  20. NVIDIA, NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB model card, read 5 November 2026, https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB ↩

  21. Ollama docs, “Context length”, https://docs.ollama.com/context-length, “FAQ”, https://docs.ollama.com/faq, “OpenAI compatibility”, https://docs.ollama.com/api/openai-compatibility, “Anthropic compatibility”, https://docs.ollama.com/api/anthropic-compatibility, “Codex CLI”, https://docs.ollama.com/integrations/codex, and “Claude Code”, https://docs.ollama.com/integrations/claude-code, read 5 November 2026 ↩↩↩↩

  22. Ollama library pages for qwen3.8, qwen3.8-flash-next and glm-5.3-flash, read 5 November 2026, https://ollama.com/library/qwen3.8/tags, https://ollama.com/library/qwen3.8-flash-next/tags and https://ollama.com/library/glm-5.3-flash ↩↩↩

  23. Aider, “Aider LLM Leaderboards”, last updated 20 November 2025, read 5 November 2026, https://aider.chat/docs/leaderboards/ ↩↩

  24. MiniMax, MiniMax-M3.1-Flash model card and MiniMax Community License, read 5 November 2026, https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash and https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash/blob/main/LICENSE ↩

  25. Unsloth, GLM-5.3-Flash-GGUF and DeepSeek-V4.1-Flash-1017-GGUF model cards, read 5 November 2026, https://huggingface.co/unsloth/GLM-5.3-Flash-GGUF and https://huggingface.co/unsloth/DeepSeek-V4.1-Flash-1017-GGUF ↩

  26. llama.cpp, src/llama-arch.cpp on the master branch, read 5 November 2026, https://github.com/ggml-org/llama.cpp/blob/master/src/llama-arch.cpp ↩

  27. MLX LM, “HTTP Model Server”, read 5 November 2026, https://github.com/ml-explore/mlx-lm/blob/main/mlx_lm/SERVER.md ↩↩↩

  28. LM Studio docs, “OpenAI Compatibility Endpoints”, https://lmstudio.ai/docs/developer/openai-compat, “Anthropic Compatibility Endpoints”, https://lmstudio.ai/docs/developer/anthropic-compat, “Claude Code”, https://lmstudio.ai/docs/integrations/claude-code, and “Codex”, https://lmstudio.ai/docs/integrations/codex, read 5 November 2026 ↩↩↩

  29. vLLM docs, “OpenAI-Compatible Server”, https://docs.vllm.ai/en/latest/serving/online_serving/openai_compatible_server.html, and “Claude Code”, https://docs.vllm.ai/en/latest/serving/integrations/claude_code.html, read 5 November 2026 ↩↩↩

  30. OpenAI, Codex “Advanced Configuration”, https://learn.chatgpt.com/docs/config-file/config-advanced, and “Configuration Reference”, https://learn.chatgpt.com/docs/config-file/config-reference, read 5 November 2026 ↩

  31. Anthropic, Claude Code docs, “Other LLM gateways”, read 5 November 2026, https://code.claude.com/docs/en/llm-gateway ↩

  32. Cline docs, “Local models”, read 5 November 2026, https://docs.cline.bot/running-models-locally/overview ↩

  33. Continue docs, “How to Configure Ollama with Continue” and the LM Studio, llama.cpp and vLLM provider pages, read 5 November 2026, https://docs.continue.dev/customize/model-providers/top-level/ollama ↩

  34. Aider docs, “Ollama”, https://aider.chat/docs/llms/ollama.html, and “OpenAI compatible APIs”, https://aider.chat/docs/llms/openai-compat.html, read 5 November 2026 ↩

  35. OpenCode docs, “Providers”, read 5 November 2026, https://opencode.ai/docs/providers/ ↩

  36. Artificial Analysis, “FrontierCode 2.0 Benchmark”, read 5 November 2026, https://artificialanalysis.ai/evaluations/frontiercode-2-0 ↩↩

  37. LiveCodeBench, leaderboard and its data file, read 5 November 2026, https://livecodebench.github.io/leaderboard.html ↩

Frequently asked questions

What is the best local LLM for coding in 2026?

As of 5 November 2026, Qwen3.8-27B on a 24 GB GPU, at 16.5 GB in 4-bit and 79.8% on Artificial Analysis’s Terminal-Bench 2.1. With 32 to 48 GB, also try Nanbeige4.3-33B, which scores 29.8% on Terminal-Bench 4.0 against Qwen’s 5.6%. With 256 GB, GLM-5.3-Flash under MIT beats both.

What is the best coding LLM for 24GB VRAM?

Qwen3.8-27B. Unsloth’s 4-bit build is 16.5 GB, and by our arithmetic a 128K-token context with an 8-bit KV cache adds about 4.6 GB, so it fits with room to spare. Nanbeige4.3-33B also loads, but its larger cache limits it to roughly 32K tokens on the same card.

Can Claude Code use a local model?

It can connect to any server with an Anthropic-compatible Messages endpoint, and Ollama, LM Studio, llama.cpp and vLLM all provide one. Set ANTHROPIC_BASE_URL to the server. Anthropic’s docs say it doesn’t support routing Claude Code to non-Claude models, so problems are yours to debug.

Is Qwen3-Coder-Next still the best Qwen coder to run locally?

No. The general Qwen3.8-27B scores 79.8% on Artificial Analysis’s Terminal-Bench 2.1 against 38.2% for Qwen3-Coder-Next, and its 4-bit build is 16.5 GB against 48.4 GB. Qwen3-Coder-Next also has no thinking mode.

How close are local coding models to Claude and GPT?

Not close on the hardest tests. On Artificial Analysis’s Terminal-Bench 4.0, Qwen3.8-27B scores 5.6% and Nanbeige4.3-33B 29.8%, against 59.6% for Claude Opus 5.5 and 56.1% for GPT-6.1 Sol. The best open model that fits in 512 GB, GLM-5.3, scores 41.9%.

How much RAM does a Mac need to run a local coding model?

About 32 GB for Qwen3.8-27B, whose 4-bit MLX build is 16.1 GB, and 48 GB for Nanbeige4.3-33B with a long context. Qwen3.8-Flash-Next needs 128 GB and GLM-5.3-Flash 256 GB. The context window’s cache comes on top of the weights.

Work with us

Building something like this?

9io is a small team of senior engineers with a fractional CTO. We work by the hour, and plans start at $5,000. Send us a note about your product. The reply comes from the person who'd do the work.