aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / docs / inference / own30b-quiet-window.md
| 1 | # OWN-30B: measuring in an uncontended GPU window |
| 2 | |
| 3 | Issue #625. OWN-30B decode ran at about 36 to 39 tok/s on an idle GB10 and about 2.4 to 2.6 tok/s while a heavyweight model shared the GPU (evidence: `docs/inference/evidence/own30b-omega4799-20261015/NOTES.md`). That gap is hardware contention, not a kernel change, so a speed number means nothing unless the run says whether the GPU was shared. |
| 4 | |
| 5 | ## The runner |
| 6 | |
| 7 | `scripts/bench/own30b-quiet-run.sh` wraps one benchmark or HTTP session: |
| 8 | |
| 9 | ``` |
| 10 | scripts/bench/own30b-quiet-run.sh --owner <you> --out <new dir> \ |
| 11 | --server-pid <aien-serve-http pid> --server-bin <path to aien-serve-http> \ |
| 12 | --model <model dir> --omega-pin <omega commit> --minutes 10 \ |
| 13 | -- <benchmark client command> |
| 14 | ``` |
| 15 | |
| 16 | 1. **Preflight.** Records GPU compute processes, GPU utilization, AIEN listeners, repo HEAD, server binary SHA-256, model path and size, Omega pin and `OWN30B_DECODE_GRAPH`. |
| 17 | 2. **Refusal.** Any GPU compute process other than `--server-pid`, or an `nvidia-smi` that cannot answer, stops the run with exit 3 before anything starts. `--allow-contended "<why>"` runs it anyway, records the reason and marks the run not comparable. |
| 18 | 3. **Quiet hold.** The command runs under `quietlock hold` (1 to 20 minutes, owner and reason recorded). Ctrl-C or SIGTERM stops the command through quietlock and the flag is released. A quiet flag already held by someone else stops the run with exit 75. |
| 19 | 4. **Postflight.** The same GPU query again. A foreign process seen then also marks the run not comparable. |
| 20 | 5. **Manifest.** `<out>/manifest.json` (schema `own30b-quiet-run/v1`) holds everything above, the exact command, the exit status, `comparable` and every reason it is false. |
| 21 | |
| 22 | Only a manifest with `"comparable": true` supports an uncontended speed claim. |
| 23 | |
| 24 | ## What it does not do |
| 25 | |
| 26 | - It never takes `/tmp/aien-gb10.lock`. `aien-serve-http` takes that lock itself for each generation; holding it from outside would deadlock the server. |
| 27 | - File locks coordinate cooperating workloads only. A GPU process that ignores the quiet flag is detected, not excluded, and a process that starts and stops between the two samples is not seen. |
| 28 | - It never kills, pauses or renices anything. |
| 29 | |
| 30 | ## Asking for a window |
| 31 | |
| 32 | 1. Check `quietlock check`. If someone holds the flag, wait or ask the holder; do not remove a live flag. |
| 33 | 2. Check `nvidia-smi`. If another model is loaded on the GPU, ask its owner to stop it for the window. Do not stop it yourself. |
| 34 | 3. Run the runner. If it refuses as contended, the manifest names the process. |
| 35 | 4. Self-test (no GPU, fakes only): `bash scripts/bench/own30b-quiet-run-selftest.sh`. With `QUIETLOCK_REAL=$(command -v quietlock)` it repeats the hold and interrupt cases against the real binary in a private state directory. |