Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zed 5 min read How-to mediumAdept

Why and How to Run Local Models in Zed

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.

Related posts

  • Remocal and Minimum Viable Models: Why Right-Sized Models Beat API Overkill

    Docker easyNovice

    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. Small-model techniques are surveyed: curated-data SLMs like Phi-4, NF4 4-bit quantization with low-rank adapters (~75% less GPU RAM), sparse MoE such as Mixtral, FlashAttention-2, and on-device Gemini Nano. A table lists local-capable models (Qwen 3, Gemma 3, Mistral Small 3.2, Llama 3.1 70B, SmolLM3, Phi-4) with VRAM footprints. A rubric keeps API models for broad world knowledge, complex cross-domain reasoning or low volume, and favors right-sized models for well-defined, latency-, cost- or privacy-sensitive tasks.

  • Hybrid AI Isn’t the Future — It’s Here (and It Runs in Docker using the Minions protocol)

    Docker easyNovice

    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. Docker Compose declares the local model, served by Docker Model Runner, in a few lines of YAML, and runs the generated orchestration code in a sandboxed container. The Minions paper reports a 5.7× cost reduction for MinionS while keeping about 97.9% of remote-only quality, versus 30.4× cost reduction and about 87% quality for the simpler Minion protocol. In practice, using Qwen3 locally roughly halved remote token use, to about 15,000 tokens, but responses can be up to about 10× slower.

  • Run fast, private agents on-device with LFM2.5-24B-A2B

    Hugging Face mediumAdept

    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. It keeps LFM2's 40-layer hybrid of gated short convolutions and GQA with 64 experts and top-4 routing. The context window grows from 32K to 131K tokens, the vocabulary doubles to 128K, pre-training scales to ~33T tokens, and post-training runs SFT, teacher specialization, two on-policy distillation stages and agentic RL inside harnesses like OpenClaw and Hermes Agent. It leads larger MoEs such as Qwen3.6-35B-A3B on most tool-use and instruction-following benchmarks but trails on knowledge and coding tasks like SWE-Bench Verified. It decodes 184 tok/s on an M5 Max and up to 21K tok/s on a B300, and ships with transformers code and an OpenAI-compatible harness configuration.

  • Assisted Generation: a new direction toward low-latency text generation

    Hugging Face mediumAdept

    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. The large model keeps matching tokens plus the first divergent one. The draft length adapts: it grows by 2 when every candidate matches and shrinks by 1 otherwise. The approach exploits the fact that forward passes are memory-bandwidth bound. In 🤗 Transformers it is exposed through an `assistant_model` argument to `generate` (batch size 1 only) and yields up to 2x speedups, 3x with INT8, and up to 10x when the model relies on memory offloading. It works best on input-grounded tasks like ASR and summarization, and with sampling only at low temperatures.

  • Accelerating Qwen3-8B Agent on Intel® Core™ Ultra with Depth-Pruned Draft Models

    Hugging Face mediumAdept

    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. Depth-pruning the draft raises that to about 1.4×: 6 of its 28 layers are removed by picking low-contribution blocks via angular distance, then the draft is fine-tuned on Qwen3-8B outputs for 500k Infinity-Instruct prompts. The gain matches the speedup formula, since lower draft latency improves overall throughput. The accelerated pair is demonstrated as a local smolagents agent that uses web search and python-pptx to build a slide deck.

The quest for software engineering knowledge.

Look:
Layout: