Building the new GitHub Copilot Inline Suggestions Model: Part One

AI-generated summary of reporting by VS Code Blog. Read the original for the full story.

Why it matters

GitHub Copilot replaced three separate inline-suggestion models with one, so a single model now decides the best edit and improvements benefit all suggestion types at once.

Read this as

GitHub Copilot's inline suggestions in VS Code used to run on three separate models: one for ghost-text code completions, one for nearby edits, and one for edits further away. The team combined all three into a single '3-in-1' model that picks the best edit itself and can predict several edits in one pass. This makes suggestions faster and more sensible for the millions of developers using the tool, who triggered over 61 billion successful requests in 90 days.

GitHub unified Copilot's three inline-suggestion models (completions, next edit suggestions, and long-distance edits) into one '3-in-1' model in VS Code, cutting latency from up to four model calls per opportunity and removing brittle client-side orchestration logic. Any model improvement now benefits all suggestion types, and cached multi-patch responses enable a faster tab-tab-tab editing flow. This is part one of a series; no rollout dates or performance benchmarks are given.

GitHub merged Copilot's completions, NES, and long-distance NES models into a single model using a 'diff patch' output format expressing cursor completions, local rewrites, and line jumps as one chain of edits. Context was simplified to a 3-line cursor block, kept at prompt end to optimize key-value caching via shared prefixes. Rollout went through a 2-in-1 stage (NES plus long-distance) before adding completions, with evaluation across offline tests (STests, augmented HumanEval), dogfooding, human evaluation, and over 200 offline plus 20 online experiments.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

GitHub Copilot VS Code 3-in-1 model 2-in-1 model diff patch HumanEval STests

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading