Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / rules / device-runs.md

device-runs.md1021 BRenderedCodeRaw
1# Device runs (Pixel 8) — OOM avoidance
2
3The Pixel 8 OOM-reboots when memory is overcommitted, and a reboot wipes the
4measurement session. The only rule is: never overcommit. Everything below
5serves that.
6
7- Memory gate before every heavy run: `adb shell "uptime; free -m"`. No heavy
8 run under ~2 GB free. After any reboot (uptime reset): stop, report, do not
9 retry blindly.
10- Known costs: TEXT upload ~1.1 GB, whole-EMBED ~3.6 GB, standalone head file
11 ~402 MB. The crash-safe flow is `check_gemma4_parity --time N` (no logits, no
12 head upload, ~1.5 GB peak with the head file).
13- The known-killer shape is whole-EMBED upload + logits/head in one process
14 (~4.7 GB peak vs ~2.4 GB free). It has rebooted the device three times. Only
15 with explicit user approval AND a fresh memory gate.
16- One heavy run at a time across all agents — concurrent runs stack toward the
17 same OOM.
18- Pushes/downloads over 100 MB need approval: multi-GB transfers churn the page
19 cache and spike pressure toward the same cliff.