My Profile Photo

Chang Min Park


Senior Software Engineer at Yahoo!



On-Device Agents Without the Mini Fantasy

Prerequisites

Read these first if on-device LLMs, edge vs cloud inference, or agent harness loops are new.

You do not need a rack to learn agents

Every few months the feed invents a new reason to buy hardware: a Mac Mini forever-on host, a 70B at home, an NPU story that implies your laptop is obsolete. For learning how agents fail — false “done,” fat tool menus, rubber-stamp approvals, demo-only evals — that shopping list is a distraction. On-device and edge are wiring literacy: latency budgets, what stays on the phone, what works offline. They are not a prerequisite for understanding harnesses.

What actually changes on the device

Move the weights next to the sensors and three product constraints get louder:

Constraint Cloud-shaped habit On-device / edge habit
Latency Round trip + queue Local tokens; UI can stay interactive
Privacy Ship context upstream Keep PII / mailbox-adjacent text local when you can
Offline Spinner or error Degraded path that still does something honest

A mail-style assistant that suggests a reply subject while the radio is dead only works if something local can run. That is a real product reason. It is not the same claim as “I cannot study agents until I own a 70B.”

  phone / laptop                 cloud (optional)
  ┌─────────────────────┐        ┌──────────────────┐
  │ small model / NPU   │        │ frontier model   │
  │ tools + policy      │───────▶│ heavy tasks      │
  │ approvals + logs    │◀───────│ when policy OK   │
  └─────────────────────┘        └──────────────────┘
         harness loop identical either side

Figure 1. Placement of weights changes; the loop (goal → act → observe → stop) does not.

What does not change

Whether the brain is Claude in the cloud or a 7–8B via Ollama on a laptop:

  • Stop conditions still need exit codes, not chat tone (CI as done)
  • Approvals still gate irreversible tools; local does not mean trusted (trust boundaries)
  • Evals still need golden tasks you can re-run after a model bump (not a demo)
  • Tool menus still punish kitchen-sink defaults

Weaker local models make bad judgment more obvious. That is useful for labs. It is a poor excuse to skip the harness and blame parameter count. The day you move a policy check onto the device — “never upload draft body without an explicit toggle” — you will care more about where the gate lives than about whether the next token came from Sonnet or a quantized 8B.

A sane learning order

  1. Cloud API + a hand-rolled loop (fake tools, fake CI) until “done ≠ green” is muscle memory
  2. Thin tools and skills; measure thrash when you deliberately add junk
  3. Optional: same prompts against a small local model to feel latency and quality cliffs
  4. On-device / edge as a product topic when you have a latency, privacy, or offline requirement — not as gear acquisition

Step 3 is where people overspend. A 7–8B on a laptop already teaches timeout budgets, context limits, and “the model agreed but the tool never ran.” A Mini hosting a 70B mostly teaches thermals and electricity bills. Only one of those lessons transfers to shipping an Android feature that must not upload draft text.

The order is the point, not the silicon. Hardware becomes worth buying at the moment a latency, privacy, or offline requirement forces the weights local — and by then the question you are answering is which gate moves onto the device, not which parameter count fits in RAM.

References