PROTOCOL: same-machine head-to-head, Qwen3.6-35B-A3B on one DGX Spark (bar P0)
Predeclared before any timed run. This file is committed and pushed before the first arm starts; any later change to it is a separate, dated commit listed in section 10, and results say which protocol commit they were taken under.
1. Question
On one DGX Spark (GB10, sm_121, driver 580.173.02, 121 GiB unified LPDDR5x), serving the same model to the same prompts over the same HTTP API, how do three stacks compare end to end?
- OURS:
aien-serve-http, binarybin-19173f9e, run from its directory with the live cmdline. - VLLM: vLLM
0.29.0+5013de39.devfrom NVIDIA's NGC containernvcr.io/nvidia/vllm:26.09-py3, digestsha256:557747337846eecf34486866f3d992383c6f8af869fdb0e365b5093fcaee02c2(torch 2.14.0a0 nv26.09, CUDA 13.4), pulled withdocker pull; no system install. - LLAMA: llama.cpp
b11913(commit7aca0d2ea8d92b56911233b822db01f9fbb1ae50), the ggml-org CI release assetllama-b11913-bin-ubuntu-cuda-13.4-arm64.tar.gz(sha25655ee2ae4…18f4) run with its companioncudart-llama-b11913-bin-ubuntu-cuda-13.4-arm64.tar.gz(sha256f6a5a023…599a) first onLD_LIBRARY_PATH. The release carries sm_121a machine code.
Every number in this repo is end to end: an HTTP client on the same host, timestamps taken in the client. **No chip-only number (kernel time, GPU timer, per-launch microbenchmarks) appears in the results table.** Numbers from other repos are not mixed in.
2. Model and weights
- Checkpoint:
Qwen/Qwen3.6-35B-A3B-FP8revision95a723d08a9490559dae23d0cff1d9466213d989, local~/models/qwen3.6-35b-a3b-fp8-95a723d0, sha256 listqwen3.6-35b-a3b-fp8-95a723d0.sha256(56 files verified 2026-10-20). FP8 e4m3, block-wise scales, dynamic activation scales. - OURS and VLLM load this folder directly (read-only).
- LLAMA cannot load safetensors. A GGUF is converted from the same folder with
convert_hf_to_gguf.pyat the same llama.cpp commit,--outtype q8_0. Quantization difference, labeled on every LLAMA row: Q8_0 (int8, one fp16 scale per 32 weights, FP8 weights dequantized first and re-quantized) is not the FP8 e4m3 block-128 format the other two arms run. Agreement numbers against LLAMA therefore mix engine and quantization effects. If the converter refuses the FP8 checkpoint, LLAMA is NOT_RUN with the converter error quoted; no GGUF from other weights (e.g. a third-party GGUF) is substituted. - Text only. Vision tower and MTP heads are not used by any arm (no speculative decoding anywhere).
3. API and request shape (identical for all arms)
POST /v1/chat/completions, one user message, stream: true,
stream_options.include_usage: true, temperature: 0, top_p: 1, seed: 0,
chat_template_kwargs.enable_thinking: false (OURS also runs --thinking off).
The client is bench/bench.py (Python 3 stdlib, http.client, one thread per stream, a barrier
releases concurrent streams together). One JSON row per request is written to results/raw/.
Timestamps (client time.monotonic()): t_send before the request is written; t_first at the first
SSE chunk carrying non-empty content or reasoning_content; t_last at the last such chunk.
Token counts come from the server's usage (prompt_tokens, completion_tokens). If an arm reports no
usage, the count is re-derived by tokenizing the returned text with the checkpoint's
tokenizer.json and the row is labeled count=retokenized.
4. Prompts (prompts/, generated by bench/make_prompts.py, committed before runs)
decode.jsonl: 16 distinct short instructions asking for long prose (≈30-60 prompt tokens).prefill.jsonl: three documents of deterministic synthetic prose (seeded generator) plus one closing question, calibrated with the checkpoint tokenizer so that the chat-rendered prompt is ≈256, ≈2048, ≈8192 tokens. Actualprompt_tokensare reported per arm.- Agreement reuses
decode.jsonl(all 16).
5. Metrics
| ID | Metric | Cell | Definition |
|---|---|---|---|
| M1 | TTFT | decode c=1 | t_first - t_send, short prompt |
| M2 | decode tok/s, 1 stream | decode c=1, max_tokens 256 | (completion_tokens - 1) / (t_last - t_first) |
| M3 | decode tok/s at 4/8/16 concurrent | decode c=4/8/16, max_tokens 256 | per batch: aggregate = sum(completion_tokens) / (max(t_last) - min(t_send)); also per-stream M2 |
| M4 | prefill tok/s at 256/2k/8k | prefill, max_tokens 1, nonce prefix | prompt_tokens / (t_first - t_send) (end-to-end: includes HTTP, template, tokenizer, first sampled token) |
| M5 | peak memory | whole arm session | MemAvailable(baseline, before launch) - min(MemAvailable during session) from /proc/meminfo at 1 Hz; plus peak summed VmRSS of the server process tree (host-side view; on GB10 device allocations are system memory) |
| M6 | output agreement | agree c=1, 16 prompts, max_tokens 128 | per prompt, tokenize both outputs with tokenizer.json; matched = common-prefix length; rate = Σ matched / Σ max(len_a, len_b); also count of byte-identical outputs out of 16; pairs OURS–VLLM, OURS–LLAMA, VLLM–LLAMA; plus within-arm R1 vs R2 |
A nonce line (Request id <uuid>. Ignore this line.) is prepended to every prefill prompt so that no
arm's prefix cache can hit. Decode prompts carry no nonce (they are short; prefix caching of 40 tokens
does not change decode rate; TTFT on a repeated short prompt is labeled as such in M1).
Concurrency is what the arm is configured for as deployed: OURS runs the live --batch-slots 8. At
c=16, OURS refuses requests beyond 8 with HTTP 503 server_busy ("retry shortly"); the client
retries those every 50 ms with the clock running from the first send (amendment A1), and the retry
count is stored per row. That is part of the end-to-end result and is stated beside it.
6. Arm configuration
- OURS: cwd
~/.local/state/aien-q36/bin-19173f9e; `./aien-serve-http --engine omega --model-dir ~/models/qwen3.6-35b-a3b-fp8-95a723d0 --port 18190 --max-context 49152 --max-tokens-cap 16384 --thinking off --batch-slots 8`; env `AIEN_Q36_STROKE=1 Q36_BATCH_BIN=bin-19173f9e AIEN_SERVE_GPU_LOCK=/tmp/aien-serve-18190.lock AIEN_GB10_LOCK_HELD=1(the harness holds/tmp/aien-gb10.lock` for the whole session). Identical to the 2026-10-27T01:11:57Z live snapshot except port and lock path. - VLLM: `docker run --rm --runtime nvidia --gpus all --ipc host --network host --cpuset-cpus <SRV>
-v <model>:/model:ro image@digest vllm serve /model --served-model-name q36 --host 127.0.0.1 --port 18191
--max-model-len 49152 --max-num-seqs 32 (A3; was 16) --gpu-memory-utilization <U>
--language-model-only`. Everything else default (CUDA graphs, prefix
cache, chunked prefill as the image ships them).
<U>is the smallest of 0.50/0.60/0.70 that starts; the value used is recorded. - LLAMA: `llama-server -m q36-q8_0.gguf --host 127.0.0.1 --port 18192 -ngl 999 -fa on
-c 393216 -np 32 --jinja
(A3; was-c 196608 -np 16`: 12288 tokens per slot either way). Everything else default. - Ports 18190-18193 only. Port 18091 is never touched.
- CPU pinning (A2): cpus 5-9 and 15-19 are Cortex-X925 (
/proc/cpuinfoCPU part 0xd85), cpus 0-4 and 10-14 are Cortex-A725 (0xd87). Every server arm gets the identical X925 set5-9,15-17,19(core 18 excluded: the nvidia-modeset kthread sits there). OURS and llama-server viataskset -c, VLLM via--cpuset-cpus.bench.pyruns on A725 cores12-13. Both lists are stored in every row (server_cpus,client_cpus). VLLM uses host networking so no docker-proxy sits in the path. - LLAMA16 (A2, optional BF16 reference arm): same llama-server and flags as LLAMA on port 18193,
with
q36-35b-a3b-bf16.gguf(converted from the same checkpoint with--outtype bf16, i.e. the FP8 weights dequantized to BF16) and--no-mmap(a 70 GB file mapped beside 70 GB of device buffers would not fit in 121 GiB of unified memory).
7. Schedule, repetitions, statistics
- Two rounds, interleaved by arm: R1 = OURS, VLLM, LLAMA; R2 = LLAMA, VLLM, OURS. Then, only if the night's quiet window still has room, LLAMA16 R1 and R2 (A2).
- One model in memory at a time. Between arms: server stopped, process gone, `nvidia-smi --query-compute-apps` empty, MemAvailable back to within 2 GiB of the pre-launch baseline.
- Per arm session, cells in this order, each with 2 warmup batches then 3 measured batches: decode c=1, c=4, c=8, c=16; prefill 256, 2k, 8k. Then the agreement cell (16 prompts, once each, no warmup). So each timing cell has 6 measured batches per arm across R1+R2.
- Reported per cell: median and IQR over the measured values (6 batch values for aggregate
metrics; all per-stream values for per-stream metrics, count stated). Computed with Wolfram
Language
MedianandInterquartileRange(Wolfram's default quartile definition); the query and result are kept inresults/wolfram/. If the Wolfram MCP is not mounted, only exact counts and the raw rows are published and the table says so. - No significance tests. A difference is called a win/loss only when the IQRs do not overlap; otherwise "overlapping".
8. Load and GPU-lock gates
- (A2) A session starts only when, over a 60 s window, no process outside the harness used more than
20% of one CPU and
load1 < 6(bench/quiet.py). Not gated, but recorded in every check: the nvidia-modeset kthread and theompagent-harness process that hosts this lane (it averages ~38% of one core while other agents run; gating on it would never start). Before every cell the same foreign-process check runs over 10 s with no load threshold (the arm's own server is excluded). Every check is stored inresults/logs/<arm>-<round>/quiet.jsonl;vmstat -t 1andload1(per row) are recorded for every session. A cell that ran after the gate timed out (50 min into the session) is labeled LOADED and excluded from the headline table. - (A2) The nvidia-modeset kthread (pid 1671, affinity 0-19, not pinned) has its
psr(field 39 of/proc/1671/stat) sampled every 1 s inmem.tsv(5th column) and logged at session start and end. A cell during which any sample shows it on a server core is VOID: its id goes toresults/voids.jsonl, its rows stay in the raw file but are dropped byextract.py, and the cell is re-run (at most 3 tries). The void count is reported. - GPU: each arm session runs inside
flock -w 900 /tmp/aien-gb10.lock, at most 60 minutes, with BOARD lines at START, T-5 (55 min) and END. The harness kills its own server at 60 min. No module reloads, no reboots,/dev/nvidia-modesetis never opened by the harness. - An arm that cannot start (unsupported model, OOM, converter refusal) is recorded NOT_RUN with the exact error and log; it is not retried with different weights.
9. Publication
Everything is published even if OURS loses: results/RESULTS.md (table), results/raw/*.jsonl
(every request row incl. warmups), results/logs/ (server stdout/stderr, memory samples, BOARD
lines, versions), bench/ (exact commands). Evidence label of every number: MEASURED, end to end,
on this one Spark, on the stated date and load.
10. Amendments
- A1 (2026-10-27, before any timed run, found with OURS
--engine stubon port 18199, no GPU): OURS answers HTTP 503server_busywhen every generation slot is taken instead of queueing.bench.pynow retries 429/503 every 50 ms (bounded by the 1800 s request timeout), keepst_sendat the first attempt, and recordsbusy_retries. Section 5 updated. Server launches read/dev/nullas stdin (OURS exits silently when started in the background without it). - A2 (2026-10-27, before any timed run, Main's decision):
load1 < 4is unreachable on this host (the nvidia-modeset kthread holds one core permanently; other lanes' short bursts dominate load1 while the CPU is ~68% idle). The gate is replaced by the 20%-CPU foreign-process check plusload1 < 6(section 8), servers and client are pinned to fixed cores (section 6), VLLM uses host networking, and vmstat is logged per session. Other lanes are in a declared quiet window (no local builds or tests). Additionally (Main, same day): (a) The core sets of section 6: identical Cortex-X925 server set minus core 18 for every arm, client on Cortex-A725, core lists in every row. The split is recorded inresults/env/cpu.txtfrom sysfscpu_capacity(X925 997-1024, A725 718-731) and/proc/cpuinfoCPU part. Rule: P cores are those withcpu_capacity >= 990; minus core 18 that is5-9,15-17,19(9 cores). (b) The kthreadpsrsampling and void/re-run rule of section 8. (c) Environment fact: nobody renices or pins the nvidia-modeset kthread during the study, so the machine state is the same for every arm. (d) Optional reference arm LLAMA16 (section 6). Cost: two more sessions of at most 60 min each, during which the quiet window keeps blocking other lanes; they run last and are dropped (listed as a follow-up, NOT_RUN) if the window closes first. If it runs, M6 also reports each arm's agreement against LLAMA16, named as **llama.cpp b11913 with BF16 weights dequantized from the FP8 checkpoint**. It is a reference engine, not ground truth: no arm runs the model unquantized, and the checkpoint itself is FP8. Pairwise agreement between OURS, VLLM and LLAMA is labeled as mixing engine and quantization effects. - A3 (2026-10-27, before any timed run; Main, after a second outside audit Drake adopted):
(a) More arms. SGLANG: the official SGLang server, run like VLLM (container, host network,
same X925 core set, port 18194, `--context-length 49152 --max-running-requests 32
--mem-fraction-static 0.50`, raised 0.60/0.70 like VLLM if it does not start), only if an image
with an arm64 manifest that runs on sm_121 exists; the exact image digest is recorded in
bench/arms.conf. 4-bit arms, one per engine, each labeled **different numeric format from the FP8 checkpoint OURS runs**: VLLM4 / SGLANG4 on a published NVFP4 checkpoint of the same model (repo id and revision recorded), LLAMA4 on an MXFP4 (else Q4_K_M) GGUF produced withllama-quantizeb11913 from the BF16 GGUF of A2. An arm whose image or weights are not available is NOT_RUN with the reason; nothing third-party is substituted silently. (b) Grid, added to every session after the existing cells: N = 1, 8, 32 concurrent streams × promptsp512(502 chat tokens, added toprefill.jsonl; the other prompts are byte-identical) andp8k(8184), 256 new tokens, nonce prefix per stream, 1 warmup + 3 measured runs. Reported: TTFT; TPOT =(t_last - t_first) / (completion_tokens - 1)per stream, p50 and p99 over all measured streams of a cell (WolframQuantile, count stated; the client records first/last token times, not every token, so p99 is over streams, not tokens); aggregate tok/s as M3; peak memory as M5. To serve N = 32, VLLM runs--max-num-seqs 32and llama-server-np 32 -c 393216(still 12288 tokens per slot); OURS stays at its deployed--batch-slots 8with the A1 retry. (c) Order and cost. The 8-bit arm of every engine runs first, interleaved (R1 forward, R2 reversed); then LLAMA16 (A2), then the 4-bit arms, queued inbench/schedule.txt. Each session is at most 60 min of GPU lock with the quiet window blocking other lanes: SGLANG +2 sessions; VLLM4 +2; SGLANG4 +2; LLAMA4 +2, plus about 15 min of CPU quantization before them (no GPU). The grid cells are last in each session, so a session that reaches 60 min loses grid cells first; missing cells are listed as NOT_RUN (timeout). Arms that do not fit tonight's window stay queued and are reported as follow-up, NOT_RUN. (d) Published Spark figures for this model from other parties are quoted in the README as context only, with their source and numeric format. The only claims are same-box results from this protocol. (e) GPU-lock priority (Main, 2026-10-27): after HeadToHead's FP8 sessions, OmegaVfio and the C1 lanes take the lock before any queued A2/A3 arm. - **A4 (2026-10-27, HeadToHead after restart; written before any OURS/LLAMA cell and before any
VLLM number was read):**
(a) In-cell foreign-process check. During every timed cell
bench/coremon.py(pinned to A725 core 11) samples the server cores every second; a process outside the session's trees with more than 20% of one server core over the cell voids it, like the kthread rule of section 8. Only a coremon summary that names offenders voids a cell. A monitor that wrote no summary makes that cell's foreign check NOT_RUN (logged insession.log), not a void. (b) Harness defects found, with their effect. OURS R1 attempt 1 (02:09:51Z) never started a server:run_arm.shranenv VARS... exec taskset ..., andexecis a shell builtin (`env: 'exec': No such file or directory`). No GPU work, no rows; log kept inresults/logs/attempts/OURS-R1-a1-launch-bug/. Fixed toexec env VARS... taskset ...and OURS R1 re-runs after VLLM R1 (the only change in session order). The VLLM R1 session ran from a snapshot in whichMON_CPUwas unset:taskset -c python3 coremon.pyfailed with exit 1, so every VLLM R1 try was written tovoids.jsonlwith an empty foreign-process reason. Those records are not voids under (a);extract.pyhonours a void record only when its reason names the kthread or a non-empty offender list. The session was not killed (rule: a running session is never disturbed); its foreign check is NOT_RUN for every cell, and that is stated in RESULTS. (c) One try per cell. When re-runs leave several non-void tries of one cell, only the lowest numbered non-void try is used; the others stay in the raw file. (d) Order and lock priority (A3(e)). The FP8 sessions OURS, VLLM, LLAMA x R1, R2 run; LLAMA16 (A2) and the A3 arms are not started tonight. They are reported NOT_RUN (deferred: GPU-lock priority for OmegaVfio W0 and C1 per A3(e)), with the BF16 GGUF kept for a later window. (e) Server core set per session. At 02:17Z, 6.5 min into VLLM R1, the nvidia-modeset kthread moved from core 18 to server core 17 and stayed there, so the A2 rule voided every try of VLLM R1's cells (mem.tsvcolumn 5). From OURS R1 on, each session takes the 10 X925 cores minus the one the kthread is on when the session takes the GPU lock (core 18 if it is on an A725 core): always 9 X925 cores, the set logged insession.logand stored in every row. The kthread is still never pinned or reniced (A2(c)); the A2 void rule is unchanged. (f) Session re-run. A session in which any cell ended void after its 3 tries is re-run once in full after the other FP8 sessions; the re-run replaces it, and the first stays underresults/logs/attempts/andresults/raw/attempts/. - A5 (2026-10-27 ~02:48Z, HeadToHead after the second restart; before any OURS/LLAMA cell):
(a) Accidental stop. At about 02:45Z Main relayed a STOP-all order that was a misread of
Drake's instruction (Drake afterwards: "I didn't mean to stop everything. Just keep them
going."). The driver was killed and the
h2h-vllmcontainer stopped withdocker stopduring VLLM R1's grid cellp8k-n1(last memory sample 02:45:55Z; the server log shows the shutdown with 7 requests running). No other session was running; OURS R1 had not started. (b) Effect. None on any result: VLLM R1 attempt 1 was already void in every cell under A4(e) (kthread on server cores 17, then 16) and had been scheduled for a full re-run under A4(f). Its raw file, logs and void records move toresults/raw/attempts/VLLM-R1-a1.jsonl,results/raw/attempts/VLLM-R1-a1-voids.jsonlandresults/logs/attempts/VLLM-R1-a1-kthread-void-stopped/; none of its numbers is reported. (c) Order.bench/schedule.txtnow reads OURS R1, LLAMA R1, LLAMA R2, VLLM R2, OURS R2, VLLM R1 (the re-run last, per A4(f)). Apart from (d), nothing changes: same cells, server core rule and void rules. (d) Quiet window and client cores. Other lanes resumed after the stop; their builds run on A725 cores 10-14 only (Main's rule), which held the client (12-13) and coremon (11). From OURS R1 on, the client runs on A725 cores 0-1 and coremon on A725 core 2 (run_arm.sh), so builds never share a core with the measurement side; every row still records its core lists. The A2 gate and the A4(a) in-cell foreign-process check on the server cores are unchanged. (e) GPU-lock wait. Other lanes take/tmp/aien-gb10.lockbetween sessions. A session whoseflock -w 900times out never took the GPU and ran no cell;run_all.shnow moves its pre-lock logs toresults/logs/attempts/<ARM>-<R>-lockwait-<time>/and retries the same session, instead of recording it NOT_RUN and skipping it. The first OURS R1 lock wait (02:51Z, Provenance holding the lock) was stopped by hand before that change and is kept the same way. (f) Loopback guard (Main). OURS now gets--bind 127.0.0.1explicitly (VLLM, SGLANG and llama-server already had--host 127.0.0.1). After the server answers and before the first cell,run_arm.shwritesss -ltnH 'sport = :<port>'toresults/logs/<ARM>-<R>/listen.txt; any listener that is not 127.0.0.1 makes the session a FAIL: server stopped, no cell run. Self-test of that check (stub--bind 127.0.0.1PASS; negative control, a 0.0.0.0 listener, FAIL):results/receipts/A5f-loopback-guard-selftest.log. (g) OURS R1 attempt aborted by the harness operator. To add (f), HeadToHead stopped the driver at 02:57Z believing the session was still in its quiet gate; it had taken the lock at 02:56:04Z and was uploading weights (no request served, no cell run). The server was stopped by hand and the lock released; logs are inresults/logs/attempts/OURS-R1-prelock-restart-*/. OURS R1 then runs from the start with (f): driver relaunched 02:57:09Z, quiet gate and lock taken 03:02:09Z (results/logs/OURS-R1/session.log), server cores 5-9,15-18 (kthread on 19). (h) Campaign-end contract (Main). From Main's GPU-freeze order until the campaign ends, no other lane takes/tmp/aien-gb10.lock, gaps between sessions included. The campaign ends with exactly one BOARD line<UTC ts> HeadToHead: ... FINAL IDLE, posted even if the campaign ends early or aborts; queued chip jobs wait on that anchored line. If HeadToHead is about to stop mid-run it postsHeadToHead: ABORTED, not FINAL IDLEinstead. - **A7 (2026-10-29, cold-start study; numbered A7 because A6 is the llama.cpp methodology amendment
d3426b2 on branch
results/2026-10-27-a6, not yet on main):** a separate study, predeclared in coldstart/PROTOCOL.md and committed before its GPU window opens, measures process cold start to first verified result on GB10 for CUDApp's own ioctl path (arm CUDAPP) against NVIDIA's run-time compile paths (arms PTXC and NVRTC), with its harness incoldstart/and its results inresults/coldstart/. It is a chip-level microbenchmark, so section 1 still holds: none of its numbers enters the main results tableresults/RESULTS.md, and none of this protocol's end-to-end numbers is mixed into it. NoHeadToHead: ... FINAL IDLEline (A5(h)) is on the BOARD as of 2026-10-29 22:15Z; the study takes/tmp/aien-gb10.lockonly inside its own spark-window, under Drake's GPU authorization for this lane given on 2026-10-29.
A8 (2026-10-29, before resumed 35B timing): external measurement integrity
Numbered A8 and A9 because A6 is the llama.cpp methodology amendment on branch
results/2026-10-27-a6 and A7 is the cold-start study above.
Drake clarified that Aien architecture and structural implementation stay Python-free, while external testing equipment, independent references and calculations may use Python, with Wolfram preferred for calculations. These host measurement tools are external equipment; this amendment introduces no Python production dependency.
The legacy 35B runner could return success after a failed client, a missing foreign-process monitor summary, an exhausted disturbed-cell retry, or a session timeout. Its Python client also returned zero after failed HTTP requests and accepted truncated streams. Synthetic regressions reproduced these paths before the fixes. New resumed runs use the following controls:
- The client retains failed raw rows, requires content, a finish reason and the SSE DONE marker, and returns nonzero if any request fails. Missing usage remains eligible for the original separately labeled retokenization path; it is not invented by the client.
- No quiet gate means NOT_RUN. A monitor must exit 0 or 1 and provide exactly one summary with a positive elapsed-tick count; missing or invalid kthread samples also mean NOT_RUN. Named interference keeps the existing VOID rule and three-attempt limit.
- Every attempted cell records PASS, FAIL, NOT_RUN or VOID in
results/cell-status.jsonl. When that ledger exists,bench/extract.pyadmits only cell ids with exactly one PASS record. Missing, duplicate or conflicting records exclude a cell. Historical runs without this ledger retain the legacy extraction behavior and are not retrospectively qualified by this fix. - DONE requires all fourteen declared cells accepted and no TIMEOUT. An incomplete session returns
nonzero and retains its rows and logs. Existing session files are refused rather than overwritten.
H2H_RESULTSselects a fresh results directory while leaving the frozen instruments and prompts atH2H_REPO; for extraction, supply a parent directory containing thatresults/directory.
CPU-only controls: python3 bench/test-run-arm.py, python3 bench/test-bench-python.py, and
python3 bench/test-extract-admission.py; shell syntax: bash -n bench/run_arm.sh.
This fixes acceptance/reporting defects only. The runner's shared-model coordination, lifecycle,
current source/weight verification and resumed 35B execution still require qualification before
use. The active 9B campaign uses frozen instruments recorded in its own manifest and is unchanged.
A9 (2026-10-29, before resumed 35B timing): owned-process lifecycle
The external runner now sources bench/session-lifecycle.sh. It tracks child process identities
using Linux /proc/<pid>/stat starttime, rechecks identity before signaling, snapshots descendants,
waits for children, and refuses untracked or stale live process identities. A pid whose /proc
entry is already gone was reaped by the shell and is not waited for again: Bash 5.2 wait on it
from the EXIT trap that interrupted the client wait (the watchdog's TERM) blocked forever. It no
longer searches process command lines to decide which server to stop or count for memory. Native
server identity is published to the sampler because a sampler started before launch cannot see
later shell-variable updates; container memory sampling includes the owned container root and
descendants.
Each container has a unique session name and aien.stack-comparison.run ownership label. Creation
completes before docker start --attach; missing images are refused with --pull never. Shutdown
checks the label before stopping a container. The historical shared container names are unused.
EXIT, INT and TERM enter one cleanup path for the client, monitor, server, watchdog and samplers. The client runs as a tracked child so the parent can interrupt its wait. The watchdog warns at 55 minutes from GPU-lock acquisition and ends request execution at 59 minutes, reserving the last minute of the original 60-minute limit for cleanup. Cleanup gives process waits a shared 30-second budget, bounds container stop and GPU inventory commands, and removes DONE on failure. These are host-exercised controls; an actual model/session and unload-baseline qualification remain required.
Before model launch, the GPU inventory must be empty. The runner itself never stops the shared
18091 model; the authorized exclusive-window controller must check activity, stop it only when
idle, and restore its exact configuration afterward. H2H_GPU_LOCK_FD=9 permits that controller
to lend the already-open GPU-lock descriptor. The runner checks its path and acquires it
nonblockingly; cleanup preserves a borrowed lock so the controller can retain exclusivity through
restoration. A standalone runner releases only its own lock.
CPU-only controls: python3 bench/test-run-arm-lifecycle.py, plus the A8 controls. Tests cover
foreign container refusal, labeled owned launch, create failure, normal/failing/interrupted exits,
watchdog interruption, stale/untracked process refusal, descendant shutdown, termination-resistant
children, sampler identity and parent-versus-child lock ownership. No GPU, real model or real
container is used by these controls. The active frozen 9B campaign is unchanged. Source and runtime
pins, the shared-service controller, unload/memory evidence and full 35B execution remain separate
requirements before this runner is used for the larger-model comparison.
A10 (2026-10-31, before DRA-74 35B timing): comparator arms, TTFT rows, window sessions
Arms. bench/arms.conf declares every comparator arm; run_arm.sh hashes it into
driver-sha256.txt, so the record carries the exact hooks.
- OURS: the prebuilt
aien-serve-httpof bin-19173f9e, sha25619173f9e…f22b3aeb, checked before launch (--max-context 49152 --batch-slots 8 --thinking off, port 18190). The variableAIEN_OMEGA_FP8_GROUPED_WAVEis passed explicitly and recorded as 0. That binary has no reader for it (grep -c GROUPED_WAVE= 0 onaien-serve-httpandlibomega_gpu.a). The 0 therefore records the binary's behaviour; it is not a setting. - VLLM_FP8, VLLM_FP8_MTP (MTP, 3 speculative tokens), VLLM_FP8_MTP2 (MTP, 2): checkpoint
qwen3.6-35b-a3b-fp8-95a723d0, KV dtype auto, FLASH_ATTN, DeepGEMM MoE, prefix caching off. - VLLM_NVFP4, VLLM_NVFP4_MTP (MTP 3, draft MoE on Triton), VLLM_NVFP4_NSYS: checkpoint
nvidia/Qwen3.6-35B-A3B-NVFP4@1355db6a, quantization modelopt, KV fp8, FLASHINFER, Marlin MoE, prefix caching off. VLLM_NVFP4 supersedes the legacy A3 VLLM4 arm. - All vLLM arms use image
nvcr.io/nvidia/vllm@sha256:55774733…02c2(release 26.09, image id8ec4dbb7a3d1, vLLM 0.29.0) with `--max-model-len 49152 --max-num-seqs 32 --gpu-memory-utilization 0.50 --language-model-only` before the per-arm hooks. - KV-dtype confound: the FP8 arms run KV auto (bf16) and the NVFP4 arms run KV fp8, as each checkpoint declares. A FP8-vs-NVFP4 difference therefore includes the KV dtype and is reported as such, not as a weight-format effect alone.
Cell sets. H2H_CELLS is a comma list without duplicates, so one model load can serve several
sets:
full: the 14 A3 cells.dra74: 7 cells. Decode at c1/c4/c8/c16 withmax_tokens256, plus prefill p256/p2k/p8k with the per-request nonce.nsys-c8: one c8 decode cell. It runs alone, only on anARM_PROFILE=nsysarm. nsys starts with--capture-range=cudaProfilerApi, and the capture opens and closes through vLLM's/start_profileand/stop_profile.bench/nsys_classify.pyclassifies its kernels.extract.pyexcludes every*_NSYSrow from timing results.ttft-fresh: one cell per item ofH2H_TTFT_PROMPTS(distinct, from t2k, t8k, t32k), namedttft-fresh-2k/8k/32k. Each cell runs 1 warmup on t2k, thenH2H_TTFT_REPS(1-9) measured reps numbered fromH2H_TTFT_REP_BASE(0-99). Reps can therefore be split across sessions without reusing a nonce. Prefix caching must be off.ttft-turn2: one cell. OURS has no prompt cache (L375 is not in bin-19173f9e), so its row isttft-turn2-reread. On a VLLM_* arm the row isttft-turn2-cachedand needsH2H_PREFIX=on.H2H_PREFIX=onis accepted only for a VLLM_* arm whoseH2H_CELLSis exactlyttft-turn2.
TTFT rows. prompts/ttft.jsonl (sha256 348c36ec…2f0e59) is generated by
bench/make_ttft_prompts.py. The generator pins its sources by sha256 and exits 2 on a mismatch.
- Sources: judge checkout b129e1ea
long-2048.txt(26a44c50…),long-8192.txt(2bcc84b2…) andlong-256.txt(153a5f88…); DRA-85long-32768.txt(791ef12b…, which is long-8192 ×3 + long-2048 ×3 + long-256 ×2, 32771 raw-text tokens as measured by DRA-85). - Prompts: t2k, t8k and t32k are the fresh prompts. Turn 2 is t32k, a fixed short assistant reply,
then
turn2-new(long-256 ×4). - Nonce: every request starts with a nonce line, the first 16 hex digits of
sha256("h2h-ttft|<id>|<w|r><rep>"). It contains no arm and no clock. Request bodies are therefore byte-identical across arms, while no two reps share a prefix. Each row recordsmessages_sha256. - Turn 2, per rep: a priming request (the turn-1 conversation, metric suffix
-prime), then the 3-message conversation, whose first message is byte-identical to the primed prompt (prefix_sha256). For vLLM the runner records the/metricsprefix-cache lines before and after each turn-2 request, so a cache hit or miss is observed, not assumed. - Token counts come from
usage.prompt_tokensunder each server's own tokenizer. They are recorded, not asserted. - M1 TTFT is
t_first - t_send(section 6). TPOT is(t_last - t_first)/(completion_tokens - 1)from the usage counts (the M2 rule). All derived values are computed from theh2hRowsthatextract.pyemits.
Session control.
- Core 17 is excluded from every role. This supersedes A4(e); the kthread-core fallback is 18.
- In a chip slice the client runs on core 5 at nice 19 (
H2H_CLIENT_CPUS,H2H_CLIENT_NICE, checked bycpu_guard). - Inside an exclusive spark-window,
AIEN_GB10_LOCK_HELD=1is accepted only whenSPARK_WINDOW,SPARK_WINDOW_DIR,spark-window idand$SPARK_WINDOW_DIR/gb10 = exclusiveall agree. H2H_DEADLINE_EPOCHmust lie more than 600 s ahead. Request execution stops at min(lock + 3540 s, deadline − 60 s).- Defect fix: the
mark_completecall that writes DONE had been lost. Before the fix every session ended INCOMPLETE. It is restored and covered bybench/test-run-arm-dra74.py.
These numbers are HTTP-only (client-side t_send, t_first, t_last) and are never placed beside
chip-only measurements.
Named limit: DRAM GB/s. The DRA-74 acceptance item "DRAM GB/s per arm" is NOT_RUN-able on this host as configured.
- nsys 2025.3.2 has no DRAM-throughput metric for this GPU:
GpuMetrics/gb20b.configlists only NVENC/OFA counters, and SocMetrics ships onlyt234.config. - The driver runs with
RmProfilingAdminOnly: 1(/proc/driver/nvidia/params), which restricts hardware counters to root. - Changing that parameter needs root and an nvidia module reload, which takes down the live servers. It is Drake's decision. The runner does not change it and does not work around it.
- The available substitute is MODELED: bytes read per decoded token, multiplied by measured tok/s. It is labelled MODELED and reported in a separate table, never as a measured DRAM rate.
Not yet verified on the chip: whether vLLM prefix caching hits on this hybrid DeltaNet model (the
/metrics capture will show it), and whether OURS accepts a multi-turn chat that includes an
assistant message.
CPU-only controls: python3 bench/test-run-arm-dra74.py, python3 bench/test-ttft.py,
python3 bench/test-nsys-classify.py and node bench/test-bench-node.mjs, plus the A8 and A9 controls.
They use fake servers and fixtures and never touch a GPU, model or container.