Skip to content
C.W.K.
Stream
Lesson 03 of 06 · published

The Work That Fits the Edge

~12 min · edge-era, workloads, context-length, prefill-wall, coding, physics

Level 0Spec-Sheet Skimmer
0 XP0/91 lessons0/19 achievements
0/100 XP to next level100 XP to go0% complete
"A job's shape is two numbers: how much it must read before the first token, and how long the person will wait. The edge serves one shape well and one badly, and the industry is building for the bad one."

Shape, Priced by the Curve

The curve lesson gave the two numbers that decide a job on a Mac: time to first token is prompt tokens over the prefill rate, and decode is output tokens over the decode rate at that context. The code block prices seven jobs on office's 27B at the rates the lab measured. Dictation cleanup — three hundred tokens in, three hundred out — is ten seconds. A mail draft, fifteen. A page of translation, under a minute. A transcript summary, thirty-six seconds with an eight-thousand-token prompt. A photo tagged by a vision model, three seconds in the background. Those five are short-context and latency-tolerant: the person is not watching a cursor, or is watching one for the length of a breath. Then the other two. A chat with the household's vault loaded — a hundred thousand tokens — waits five minutes before the first word, nearly all of it the prefill wall; a whole-repository coding turn waits seven, and a coding session is dozens of turns, each replaying the context the machine already read, because the door the agent uses keeps no prompt cache across turns — the hub's MLX server and mlx-lm's own API do have one, as the journey and fleet tracks showed, but the Ollama rung does not — and there is no batch to hide the replay behind.

The 95% and the 5%

The household's doctrine names the populations. The first five jobs are what most people would use a model for — summary, translation, mail drafts, dictation, photo tagging — and they are already running on the fleet: transcripts by the thousand, on-device dictation on every Mac, an offline model behind the prose editor, a local model tagging images. That is the 95%'s work, and the edge serves it well on a 24 GB laptop, let alone a Studio. The last two jobs are the industry's work: coding, with long context, whole-repo reads and dozens of loop steps, which is what makes a 256K context window unusable on a Mac in practice and what a pool whose common doors keep no prefix cache across turns serves worst. The doctrine's sentence is exact: the industry is building models for the workload the edge cannot serve and productizing nothing for the workload it serves well, because coding is where the revenue is and the 95% does not yet pay. The rivals track's checklist put the fix in software — a prefix cache and batching in the platform — and this lesson's arithmetic shows how much it would buy: a vault chat's five-minute wall paid once instead of every turn.

Why the Household Runs Coding in the Cloud and Dictation at Home

The fleet's records are the two columns of the code block sorted by tier. The coding agent's frontier legs are cloud; its bottom rung is local and slim, because the slim harness is what makes a local coding turn short enough to be worth taking. Dictation, tagging, summaries and search are local or one setting away from it. That is not an ideology about where models should run; it is the job's shape read off the curve — a wall of seconds goes to the room, a wall of minutes replayed dozens of times goes to a rack with a prefix cache and thousands of streams to hide it behind. The household's own reading goes one step further and this quest carries it as judgment: the day coding is quiet enough for the edge is the day its revenue cools, and the model that survives that day is not the one that scores on coding benchmarks. The next lesson is the arithmetic of the machine that has to wait for that day.

Code

edge_shaped.py — seven jobs priced by prompt length and patience on the household's 27B·python
#!/usr/bin/env python3
"""The work that fits the edge, by its shape: context length and how long the user will
wait. The curve lesson's office numbers price each job on the 27B: TTFT is the prefill wall,
decode is the slope. Short-context, latency-tolerant work is edge-shaped; whole-repo coding is not."""
PREFILL, DECODE0 = 340.0, 32.0        # office 27B: prefill tok/s (~10-90% window), decode at short context
jobs = [  # job, prompt tokens, output tokens, user waits how long?
    ("dictation cleanup",                 300,   300,  "seconds"),
    ("mail draft",                        800,   400,  "seconds"),
    ("translate a page",                 1500,  1500,  "seconds"),
    ("summarize a transcript",           8000,   400,  "a minute"),
    ("photo tagging (vision, per image)",  600,    30,  "background"),
    ("chat with the vault loaded",     100000,   500,  "seconds"),
    ("whole-repo coding turn",         150000,  2000,  "seconds, dozens of turns"),
]
print(f"{'job':36} {'prompt':>7} {'out':>5} {'TTFT s':>7} {'decode s':>9} {'total s':>8}  user waits")
for job, p, o, w in jobs:
    ttft = p / PREFILL; dec = o / DECODE0
    print(f"{job:36} {p:7d} {o:5d} {ttft:7.1f} {dec:9.1f} {ttft+dec:8.1f}  {w}")
print("\nthe first five are the 95%'s jobs and finish in seconds to a minute on a 27B; the last two carry a wall of minutes per turn, replayed every turn -- the cloud hides that with a prefix cache and batching; the edge's common doors use neither.")

# office 27B (340 prefill tok/s, 32 decode): dictation 10 s, mail draft 15 s, translate a page 51 s, summarize a transcript 36 s,
# photo tag 2.7 s | vault chat 310 s (294 s of it the prefill wall), whole-repo coding turn 504 s per turn

External links

Exercise

Add your three most frequent jobs to edge_shaped.py with real prompt and output lengths, and your Mac's measured rates. Write the TTFT and total time for each on the card, and mark which are edge-shaped. Then write the one job you send to the cloud that the numbers say could be edge-shaped with a slimmer prompt.
Hint
A job with a long prompt is often a job with a lazy prompt — the whole document where a paragraph would do, the whole repo where three files would. The household's mini protocol is that discipline applied to an agent; the same discipline turns a wall of minutes into seconds for most tasks.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.