Zed now predicts your next edit with Zeta, our new open model
Zed's new edit prediction feature is powered by Zeta, an open-source model fine-tuned from Qwen2.5-Coder-7B with an open dataset. It predicts edits at arbitrary locations by rewriting a snippet around the cursor instead of using fill-in-the-middle. Training started with about 50 Claude-generated synthetic examples, grew to about 400 supervised fine-tuning examples collected from internal usage, and added about 150 DPO examples to stop spurious deletions and insertions, with Claude grading plain-English eval assertions. To meet p50 <200ms and p90 <500ms latency targets, Zed uses n-gram-based speculative decoding that exploits output closely mirroring input, plus Baseten-hosted GPUs in North America and Europe fronted by Cloudflare Workers.
Related posts
- How We Developed Zeta2
Zed mediumAdeptZeta2, Zed's new default edit prediction model, reaches a 30% higher acceptance rate with faster responses. It was trained by knowledge distillation: opt-in user starting states from open source repos are fed to a Sonnet 4.6 teacher, and Seed-Coder-8B is fine-tuned on roughly 100,000 of its predictions. Training on real editing traces replaced too-clean commit-derived synthetic data, and a reversal problem, where the model deleted the user's recent keystrokes, was fixed through teacher prompt tuning and finer-grained edit history. Seed-Coder beat Qwen2.5-Coder-7B on deltaChrF (80.61 vs 78.36), and rollout went from dogfooding to a shadow release, then a gradual expansion gated on acceptance rate.
- Building a Text Editor in the Times of AI
Zed easyNoviceZed's co-founders Nathan, Max and Antonio describe how they use AI for programming. They prefer chat-style assistants with stronger models over Copilot's per-keystroke completions, and say supplying the right context is the main obstacle in a large Rust codebase. Zed's inline assist renders LLM output as live edits using a streaming diff based on a modified Needleman-Wunsch algorithm, with a cost function that favours insertions and deletions and a small lookahead. They adopted this after function-calling approaches failed to produce reliable precise edit locations. The conversation also covers plans for AI features in Zed.
- CoderForge-Preview: SOTA open dataset for training efficient coding agents
Together AI hardMasterCoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench. The trajectories were generated with Qwen3-Coder-480B in OpenHands Docker environments, filtered by rejection sampling and permissive-license audits, and cost about $130K to produce at a ~90% prompt cache hit rate. Fine-tuning Qwen3-32B on the passing trajectories, using Ulysses sequence parallelism, multipacking and token-level loss normalization at 128K context, reaches 59.4% pass@1 on SWE-Bench Verified, and a 4B model reaches 43.0%. Ablations show a repetition penalty helps only early checkpoints, so later checkpoints should be run without one.
- Accelerating Gemini Nano models on Pixel with frozen Multi-Token Prediction
Google Research hardMasterGoogle retrofits a Multi-Token Prediction (MTP) head onto frozen, already-deployed Gemini Nano v3 models to speed up on-device speculative decoding on Pixel 9 and 10 phones. A lightweight transformer head attached to the final layers drafts future tokens from the backbone's hidden states and cross-attends directly to the main model's KV cache. This removes drafter prefill latency and saves about 130MB per instance compared with a standalone drafter. Because the backbone stays frozen and drafts are verified, output is bit-for-bit identical to the base model, and no per-task drafter fine-tuning is needed. Reported gains are 50%+ speedups over comparable standalone drafters, up to 55% better token acceptance on structured tasks like smart replies, and nearly two extra accepted tokens per pass in production features like Notification Summaries and Proofread.
- Faster Assisted Generation with Dynamic Speculation
Hugging Face mediumAdeptDynamic speculative decoding stops the draft model's token generation as soon as its softmax confidence falls below a threshold (assistant_confidence_threshold), rather than always drafting a fixed or heuristically adjusted number of tokens before verification by the target model. An oracle analysis shows optimal speculation lookahead varies widely across iterations, so static values waste forward passes. On an RTX 4090 the dynamic schedule beat the heuristic in every tested model pair, reaching 2.71x on OPT-6.7B summarization and 1.52x for Llama-3.1-8B with Llama-3.2-1B where the heuristic gave no speedup. It is the default for assisted generation in Transformers 4.45.0 and can be tuned or reverted through generation_config parameters.