How We Developed Zeta2
Zeta2, 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.
Related posts
- Zed now predicts your next edit with Zeta, our new open model
Zed mediumAdeptZed'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.
- 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.
- Training CodeParrot 🦜 from Scratch
Hugging Face mediumAdeptCodeParrot is a GPT-2 model (110M and 1.5B parameters) trained from scratch for Python code completion, using a 180 GB GitHub Python dump from BigQuery. Heavy duplication in that dump (10% of unique files made up 66% of all files) hurt model quality, so deduplication plus Codex-style filtering cut it to a 50 GB clean dataset. The guide walks through training a code-specific tokenizer, initializing a GPT-2-large config with attention stability flags, a streaming constant-length dataset, and a ~150-line distributed training loop with 🤗 Accelerate using gradient accumulation and checkpoints pushed to the Hub. Training ran on 16 A100s for 1 day (small) and 1 week (large) on about 25-30B tokens, and the models were evaluated on HumanEval with the pass@k metric.
- Building LLMs for Code Repair
Replit hardMasterReplit finetuned a 7B code model (DeepSeek-Coder-Instruct-v1.5) to repair Python errors flagged by LSP diagnostics. Only 10% of these diagnostics come with deterministic fixes, while hundreds of millions are logged daily. Training data comes from replaying Operational Transformation histories to reconstruct the project state at each diagnostic. LLM-synthesized numbered line diffs are then generated with DSPy, verified, and distilled. Sentinel-token schemas replace natural-language instructions, and training ran on 8xH100 with LLM Foundry, FSDP and 4 epochs. Evaluation uses a new Replit repair benchmark plus a contamination-resistant Leetcode set built from DebugBench and recent LiveCodeBench-style problems.
- StarCoder2-Instruct: Fully Transparent and Permissive Self-Alignment for Code Generation
Hugging Face hardMasterStarCoder2-15B-Instruct is instruction-tuned entirely on data generated by its own base model, with no human annotations or distillation from proprietary LLMs. The pipeline filters 5M docstring-bearing Python functions from The Stack v1 down to 250k seeds using Pyright type checking, decontamination, LLM-judged docstring quality and MinHash deduplication. It then has the model extract code concepts and write 238k instructions, and keeps only responses that pass self-generated tests executed in a sandbox, ending with 50k SFT pairs. The model scores 72.6 on HumanEval, beating CodeLlama-70B-Instruct, and outperforms a GPT-4-distilled variant on LiveCodeBench, suggesting models learn better from in-distribution self-generated data.