diff --git a/docs/PLAN-qwen36-35b-a3b.md b/docs/PLAN-qwen36-35b-a3b.md index 825e925..6245df6 100644 --- a/docs/PLAN-qwen36-35b-a3b.md +++ b/docs/PLAN-qwen36-35b-a3b.md @@ -231,6 +231,18 @@ Instruments, logged per run (the same three serve the engine later): - **Level 1, per point:** a decode-phase kernel timeline (`nsys` or `nvprof`). A script computes busy fraction, gap histogram, memcpy vs kernel share (the H2 test), per-token period, profiler overhead. - **Level 2:** `perf stat` on the server PID, so gaps match CPU time in ggml matmul threads. +- **Timeline videos, prefill and decode (added 2026-10-13, the user's standing requirement).** For the + engine and for llama.cpp, on the 1080 Ti and the 4090, a real-time video of the request's timeline in the + style of `~/projects/ub-strata/strata.mp4`: lanes for CPU cores used (100 ms per-core `/proc/stat` + samples), GPU kernels, PCIe H2D / D2H bytes and GPU copy / idle, a playhead, the engine-reported tok/s + on completion, and the busy fraction stated both with and without the engine's host-wait spin kernel. + Two windows per point: the **prefill** of a long prompt (the regina request's 3.1K prompt, and a 32K + prompt where the budget allows) and the **decode** of the short request. Stacked engine-over-llama.cpp + comparisons at the fit edges. The traces come from the same nsys / nvprof captures as Level 1, so the + profiled request must cover the prefill as well as the decode. Pipeline: `scripts/decode_video_json.py`, + `scripts/decode_video_render.swift`, `scripts/render_decode_videos.sh` in regina (adapted from + `~/Code/strata-workspace/strata-investigation`); output under + `analysis/qwen36-35b-single-gpu-ladder/video/` with a README carrying the method's honesty statements. | # | Where | Arm | N values | ctx | Question | | --- | --- | --- | --- | --- | --- |