---
title: "Why and How to Run Local Models in Zed"
description: "Local open-weight models run through LM Studio, Ollama or llama.cpp offer privacy, predictable cost, control and guaranteed availability, at the price of lower capability, fewer tokens per second and smaller context windows than frontier models."
url: "https://swe.quest/articles/why-and-how-to-run-local-models-in-zed-dea250314afe2e5d"
canonical: "https://zed.dev/blog/local-ai-in-zed"
source: "Zed"
published: "2026-05-19"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["inference","ai-coding","llms","developer-tools"]
---

# Why and How to Run Local Models in Zed

A post on [Zed](https://swe.quest/sources/zed.md), published 2026-05-19, 5 min read, How-to. Original: [https://zed.dev/blog/local-ai-in-zed](https://zed.dev/blog/local-ai-in-zed)

## Summary

Local open-weight models run through LM Studio, Ollama or llama.cpp offer privacy, predictable cost, control and guaranteed availability, at the price of lower capability, fewer tokens per second and smaller context windows than frontier models. A Mixture-of-Experts model such as Qwen 3.6 35B A3B activates only about 3B parameters per token, so it runs roughly 10x faster than a dense 35B model and suits unified-memory chips like Apple M series. At Q4 quantization it needs about 17.5GB of VRAM. Zed connects to LM Studio at localhost:1234 or to any OpenAI-compatible server via its Ollama provider. To keep context clean with weaker models, edit earlier messages instead of sending corrections, and lean on subagents.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- GPU memory basics ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Zed, LM Studio, Ollama, llama.cpp, Qwen 3.6, Mixture of Experts, quantization

## Related posts

- [Remocal and Minimum Viable Models: Why Right-Sized Models Beat API Overkill](https://swe.quest/articles/remocal-and-minimum-viable-models-why-right-sized-models-beat-api-overkill-0528d07c44c27635.md): Docker · 2025-08-09 · Easy · 8 min read · LLMs, Inference & serving, Cost optimization, Privacy
  Remocal (local development with on-demand bursting to cloud GPUs) paired with Minimum Viable Models, meaning the smallest model that solves the task, is pitched as a cheaper, faster and more private alternative to defaulting to large API models.
- [Hybrid AI Isn’t the Future — It’s Here (and It Runs in Docker using the Minions protocol)](https://swe.quest/articles/hybrid-ai-isn-t-the-future-it-s-here-and-it-runs-in-docker-using-the-minions-4fa2bd660993b847.md): Docker · 2025-09-04 · Easy · 6 min read · LLMs, Inference & serving, Containers, Cost optimization, AI agents
  The MinionS protocol splits LLM work between a capable remote model that writes orchestration code and lightweight local models that process document chunks in parallel, with the remote model aggregating the results.
- [Run fast, private agents on-device with LFM2.5-24B-A2B](https://swe.quest/articles/run-fast-private-agents-on-device-with-lfm2-5-24b-a2b-52b7fe0729873bfd.md): Hugging Face · 2026-10-13 · Medium · 7 min read · LLMs, AI agents, Model training, Inference & serving, Evaluation
  LFM2.5-24B-A2B is an open-weight 24B-parameter MoE reasoning model with 2B active parameters per token, aimed at running tool-using agents on local hardware.
- [Assisted Generation: a new direction toward low-latency text generation](https://swe.quest/articles/assisted-generation-a-new-direction-toward-low-latency-text-generation-46c4fea13508392f.md): Hugging Face · 2023-05-11 · Medium · 12 min read · Inference & serving, LLMs, Performance engineering, Python
  Assisted generation cuts autoregressive LLM latency by letting a much smaller assistant model with the same tokenizer greedily draft candidate tokens, then verifying them all in a single forward pass of the large model.
- [Accelerating Qwen3-8B Agent on Intel® Core™ Ultra with Depth-Pruned Draft Models](https://swe.quest/articles/accelerating-qwen3-8b-agent-on-intel-coretm-ultra-with-depth-pruned-draft-models-ea1317a126102827.md): Hugging Face · 2025-09-29 · Medium · 6 min read · Inference & serving, LLMs, AI agents, Performance engineering
  Speculative decoding with a Qwen3-0.6B draft model speeds up 4-bit Qwen3-8B on an Intel Lunar Lake integrated GPU by about 1.3× using OpenVINO.GenAI.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
