🇨🇳 Qwen 3.8 27B
Qwen 3.8 27B: dense multimodal (text + vision), 262k context, ~16 GB Q4 VRAM (18 GB of Ollama weights). Apache 2.0, agentic coding and vision.
ollama run qwen3.8:27b
Rankings updated on 22/10/2026
Ranking of the most reliable LLMs for building autonomous local agents: function-calling accuracy, multi-turn robustness, JSON schema comprehension, and enough context to maintain an action plan.
Qwen 3.8 27B: dense multimodal (text + vision), 262k context, ~16 GB Q4 VRAM (18 GB of Ollama weights). Apache 2.0, agentic coding and vision.
ollama run qwen3.8:27b
GLM-4.7-Flash (MoE 31B, ~3B active): the best code/VRAM ratio in the 30B class. MIT, 128k ctx, very fast on 3090/4090.
ollama run glm-4.7-flash
Cloudflare's dense 27B multimodal model, Apache 2.0, 256k context, ~16 GB Q4 VRAM: vision and reasoning on a 16 GB card, official Ollama tag.
ollama pull clef
Cohere 30.5B model focused on agentic coding and reasoning. 488k context, Apache 2.0, ~18 GB VRAM in Q4.
ollama run north-mini-code-1.0
⚠ Liquid AI's 24B MoE with 2B active, 128k context, ~14 GB VRAM at Q4: fast multilingual reasoning (including French) on a 16 GB card. Restricted license.
# HuggingFace: LiquidAI/LFM2.5-24B-A2B
Dense multimodal 27B released April 22, 2026. 262k ctx (1M YaRN). SWE-bench Verified 77.2%.
ollama run qwen3.6:27b
MoE with 30B/3B active: thinking mode + instruct. Gold medalist at IMO 2025 and IOI 2025. Fast inference thanks to the 3B active parameters, with 30B-level reasoning capabilities. Released April 2026.
ollama run nemotron-cascade-2
| Rank | Model | Params | Q4 VRAM | Context | License |
|---|---|---|---|---|---|
| #1 | Qwen 3.8 27B | 27B | 16 GB | 262 144 | Apache 2.0 |
| #2 | GLM 4.7 Flash | 31B | 19 GB | 128 000 | MIT |
| #3 | Clef 27B | 27B | 16 GB | 262 144 | Apache 2.0 |
| #4 | North Mini Code 1.0 | 30.5B | 18 GB | 488 000 | Apache 2.0 |
| #5 | LFM2.5 24B-A2B | 24B | 14 GB | 131 072 | LFM Open License v1.0 |
| #6 | Qwen 3.6 27B | 27B | 16 GB | 262 144 | Apache 2.0 |
| #7 | Nemotron Cascade 2 30B-A3B | 30B | 17 GB | 128 000 | NVIDIA Open Model License |
Agents that act on your machine: agentic Cline, MCP, n8n + Ollama, local automations.
We favor models ≥ 7B with context ≥ 32k (to maintain an action history) and a chat or reasoning tag. The score favors recent models and medium-to-large sizes (where function calling becomes reliable).
Criteria considered:
The scoring is fully transparent: see our methodology for details on VRAM/tokens/sec calculations.
Which LLM for a local autonomous agent?
Qwen 3.8 27B is our #1. Mistral Small 3.1 is particularly well known for its reliability in tool use and low latency—critical for an agent that makes 20+ calls per task.
Does Ollama support function calling?
Yes since 0.3.0 via the parameter tools. LM Studio and vLLM as well. Make sure the model was trained for it (recent Mistral, Qwen, and Llama models are).
Which framework should you use to build a local agent?
LangGraph, CrewAI, AutoGen, Smolagents — all of them can point to a local Ollama through the OpenAI-compatible endpoint (http://localhost:11434/v1).
What’s the difference between reasoning and agents?
A reasoning model (DeepSeek R1, QwQ) works through a chain of thought before responding. An agent model (Mistral Small, Qwen) chooses and calls external tools. The two can be combined: reasoning for planning, agent for execution.