← TinyGPT · docs · devlog · roadmap · speedup
source: docs/prds/C5-decode-jitter-thermal.md · view on GitHub ↗

PRD — Measure decode tok/s degradation under sustained thermal load

Goal

Add scripts/bench_decode_thermal.py that runs the existing decode bench in a sustained loop for N minutes (default 30), captures per-window p99 tok/s + die temperature + power draw via powermetrics, and reports the steady-state vs cold-start delta. Answers “does the M5 Pro throttle hard enough to break the realtime floor under sustained agent load?” — a question the current 25-run baseline can’t answer because it warms up too briefly.

Why now

Scope — in

Scope — out

Files to touch

FileChange
scripts/bench_decode_thermal.pynew — the wrapper
docs/research/mac_decode_baseline_m5pro.md”Run 6 — sustained 30 min thermal” section + curve
docs/agent_runtime.mdone-paragraph thermal note pointing at the curve
docs/research/data/decode-thermal-<model>.jsonlper-run artifact

Don’t touch

Acceptance criteria

Reference patterns

Open questions