Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/gpu-head-to-head
# gpu-head-to-head
aien-dev/gpu-head-to-head
Brought by drakestapleton
Unfinished: not checked yet
There is no published receipt of a rebuild from its source yet. What a receipt is
Get this repository
Git over HTTPS
`git clone --no-checkout https://interplane.io/projects/gpu-head-to-head/repo.git gpu-head-to-head && git -C gpu-head-to-head checkout --detach 48e331f2cf5e39ab1eda06f1a98e4b4a22ba8f2f`
Source archive of `48e331f2cf5e39ab1eda06f1a98e4b4a22ba8f2f`
Download ZIP · tar.gz
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
README.md
# gpu-head-to-head
Same-machine, end-to-end comparison of three inference stacks serving Qwen3.6-35B-A3B on one NVIDIA DGX Spark (GB10, sm_121): my `aien-serve-http`, vLLM, and llama.cpp. This is bar P0 of the GPU-stack plan: prove the numbers before claiming them, and publish them even when I lose.
- Protocol (predeclared, committed before the first run): PROTOCOL.md
- Results table: planned at `results/RESULTS.md`, not present in this tree.
- Cold-start study (separate, chip-level, amendment A7): coldstart/PROTOCOL.md , results in `results/coldstart/`
- Raw request rows, server logs, memory samples, versions: results/
- Client and scripts: bench/
Every number here is end to end (HTTP client on the same host). Chip-only numbers from other repos are never mixed into these tables.
## Connected repositories
This repo is a child of the GPU stack. It pins its parents by sha:
Parent Pinned sha Role here
aien-dev/CUDApp `780a0af1f08c1786ea53a4e8702ca8bb1396fdbb` (main, 2026-10-27) GPU stack source of truth (CUDA++)
aien-dev/aien-sovereign-core-mv (was `aien-sovereign-core`) `f0230a59eec985c3290ac78c0cc04322bacf9f0a` source of the measured `aien-serve-http` binary `bin-19173f9e`
The measured binary `aien-serve-http` sha256 `19173f9ec3b609fe79af644f84741d8808b92ea8eb3ecec4bc945af6f22b3aeb` links `libomega_gpu.a` sha256 `110295ef23dc7561eea371636347c005835f37b82c22f92401aa8a887a3ca990` built from omega-mv `ship/motor-l387` `6de999da` (see `results/logs/versions/BUILD.txt`). It predates the CUDApp cutover; the CUDApp pin records the GPU-stack state at the time of the measurement.
## Host tools
`bench/*.py` are host measurement tools (Python 3 stdlib; `make_prompts.py` and `agree.py` also use `tokenizers` from inside the pinned vLLM container). They are not product code and ship nothing. Omega replacement: none yet; an Omega HTTP/SSE client is the replacement path once the Omega standard library has sockets and threads.
## Measurement controls
Before a resumed 35B run, check the external instruments with:
```
python3 bench/test-run-arm.py
python3 bench/test-run-arm-lifecycle.py
python3 bench/test-unload-gates.py
python3 bench/test-shared-model-guard.py
python3 bench/test-shared-window.py
python3 bench/test-bench-python.py
python3 bench/test-extract-admission.py
python3 bench/test-run-arm-dra74.py
python3 bench/test-ttft.py
python3 bench/test-nsys-classify.py
node bench/test-bench-node.mjs
bash -n bench/run_arm.sh
```
Protocol amendments A8 and A9 describe owned-process cleanup, per-cell admission records, failed-stream detection and refusal to overwrite previous evidence. A10 adds the DRA-74 comparator arms, the TTFT rows (`prompts/ttft.jsonl`, generated by `bench/make_ttft_prompts.py`), comma-list cell sets and in-window sessions. Passing these CPU-only controls does not qualify a model or complete the GPU benchmark. Historical rows without an admission ledger retain their original limitations.
The separate `shared-model-guard.py` checks the saved executable, arguments, working directory, required environment, idle health, connections, GPU inventory and the coordinator-reviewed BOARD checksum. Its stop mode signals a bound Linux process handle and refuses an exited handle. The controller must record intent and undo before stopping, hold the GPU lock and restore the same shared setup afterward. Guard controls use fixtures and harmless child processes; they never access the shared model, its port or GPU inventory.
Session cleanup now enforces the protocol's unload gate: no GPU compute processes remain and available memory is no more than 2 GiB below its pre-launch baseline. Missing or malformed memory readings and failed GPU queries also fail the session and remove its DONE marker. `unload-status.txt` records both checks; more available memory is acceptable. The check observes memory after process cleanup without flushing caches or killing unrelated processes. A failure requires investigation before another arm starts. Fixture tests exercise the actual cleanup function; real-model unload and shared-service restoration still require hardware evidence.
`bench/shared-window.py` integrates the guard, one arm session and same-configuration restoration. It requires a fresh output directory, the saved process snapshot, exact file hashes in a JSON mapping of absolute paths to SHA-256, and the checksum of BOARD after the coordinator has reviewed live test activity. It appends intent and undo, then refuses if the board changes before stopping. Required pins cover the controller, guard, launcher, snapshot, shared executable, runner and its helpers and prompts, plus `arms.conf` if present. Prepare frozen copies and their pins before use. The launcher contract is the existing 35B batch model with eight slots and context 49152; a different snapshot is refused before stop. The controller does not authorize a model swap.
The controller holds the global lock through restoration, passes descriptor 9 to the runner, and closes it for the restored service. Failed or interrupted tests still attempt restoration only after the original and runner have exited, GPU inventory is empty and memory has recovered. It refuses overlapping launches and never kills a foreign process. A runner that cannot finish cleanup retains its inherited lock; a failed recovery gate leaves the model unrestored and records the reason in `window-result.json`. Such a failure requires investigation, not another launch. Events, runner output and restoration output remain in the fresh attempt directory.
Use `python3 bench/shared-window.py --help` for required arguments. Host-only controls exercise sequencing and refusal paths, real fixture-child lock inheritance, and a fixture restoration launcher. They do not establish real GPU unloading, actual shared-model recovery, or completion of the larger-model comparison. Those hardware checks remain pending.
## License
Apache-2.0 WITH LLVM-exception, see LICENSE .
## Human-Directed Agentic Engineering
Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions. This describes the development method, not a change to runtime autonomy or historical evidence.
For the documented method and a systems-software case study, see Gregory M. Kurtzer (2026), *Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering*, technical report, v1, Zenodo, https://doi.org/10.5281/zenodo.`23682548` .
## For developers: proof and records
The full record of this project. Words that are used only here are explained once:
ID
The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:9dbe50fe2ccb357e9628197eb9af21fc28eac0e1690c278e9b53b189adece1f8`. Its old id, kept only so that old links still work: `z3ZSvMF8VFFGa5FyyKXGh4Vv6NBpS`.
Owner
The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`.
Refs and HEAD
Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch.
Patch
A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes .
Receipt
A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet.
Clones and fetches over HTTPS: 6 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired)
Downloads: 3 by visitors (3 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07)
commit `48e331f2cf5e39ab1eda06f1a98e4b4a22ba8f2f` Branches Tags History
`48e331f` docs: retire the hand-made Chinese README; readers translate with their own tools Drake Stapleton committed 2026-11-11
```
bench/
coldstart/
prompts/
q35-9b/
results/
.goals.json 478
LICENSE 12278
PROTOCOL.md 35798
README.md 6943
```
Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON