Coding assistant

In a Java IDE, completion is a local index lookup. A model completion is a network round trip that must feel local, so the design is dominated by latency: a small model near the user, context assembled fast, and prefix caching so you do not pay to re-read the same file on every keystroke.

45 min round 7 computed numbers 4-part eval plan 8-point rubric
⚠️ Planning numbers, not measurements. Hardware and model facts are dated on the numbers sheet; traffic, prices and efficiency are labelled assumptions. Replace them with your own measurements (the vLLM load-test exercise) before quoting them.

The prompt

Design an IDE coding assistant with inline completions and a chat panel for 20,000 developers.

Attempt it first: the 45-minute round

Set the timer, answer out loud or on paper, then score yourself against the rubric before you read the model answer below.

  1. Framing (5 min) — Ask questions, fix the scale and the latency/quality/cost targets, state assumptions with numbers.
  2. Architecture (10 min) — Draw the boxes end to end: data in, the model call, storage, serving, feedback.
  3. Deep dive (15 min) — Pick the hardest part and do the arithmetic: tokens/s, KV memory, QPS → replicas, cost per 1,000 requests.
  4. Trade-offs (10 min) — Name what you would trade (batch vs latency, quality vs cost, build vs buy) and what breaks.
  5. Wrap-up (5 min) — Evaluation plan, monitoring, failure modes, and what you would do next.
45:00
Not started

Self-grade

Tick what you did. 0 of 8.

The model answer, step by step

Five steps, one tap each. The readout gives the step's answer and lists the numbers it uses; the same numbers are highlighted in the table underneath.

Coding assistant, one tap per step

👉 Predict first, then tap. Every number below is computed from the assumptions in the table.

1. Framing

5 min

2. Architecture

10 min

3. Deep dive

15 min

4. Trade-offs

10 min

5. Wrap-up

5 min

Tap a step above.
QuantityHow it is computedValue
Developersassumption20,000
Completion requests per developer per dayassumption300
Share in the peak hourassumption12%
Context tokens per completionassumption1,500
Prefix-cache hit rateassumption60%
Completion length, tokensassumption40
Decode batchassumption32
Target utilisationassumption60%
Peak completions per seconddevs × rpd × peak ÷ 3600200
Prefill GPU-seconds (7B ≈ 7e9 params, cache hit skips)(1 − hit) × 2 × 7e9 × ctx ÷ 400e120.0210 s
Decode GPU-seconds per completiontokens × step ÷ batch (14 GB weights)0.0076 s
GPU-seconds per completionprefill + decode0.0286 s
GPUsqps × GPU-s ÷ utilisation10
GPU cost per 1,000 completions at $4/GPU-hourGPU-s × 1000 ÷ 3600 × $4$0.032
GPUs with no prefix cachingsame, hit = 021
Takeaway. The headline figure — gpus — is 10 (qps × GPU-s ÷ utilisation). Say the assumption, show the formula, then give the number.

The evaluation plan

Go deeper on this site

Check yourself