Repository navigation
tools: one entry point for the engine#612 demo - #645
Merged
Merged
Conversation
The demo is three rows with three builds and two devices, so the reproducible thing is one command per row plus a table of what each row proves. This drives them: `rows` prints the table, and each row execs the script that measured it (tools/showcase-612-npu-streams.sh from #640, tools/showcase-612-hrx.sh from #643) so a row is one command and its output carries its own pin, repeat count and timestamp. The hybrid row has no script of its own and says why. Refs #612.
bong-water-water-bong
left a comment
Collaborator
Author
There was a problem hiding this comment.
VERDICT: READY (posted as a comment: GitHub refuses --request-changes/--approve on a PR owned by the same account), merge after #640 and #643.
Ran it on this box at 2ab3c1d: bash -n clean, shellcheck -S warning silent.
$ ./tools/showcase-612.sh rows
row script build device
npu-streams tools/showcase-612-npu-streams.sh -DONEBIT_NPU=ON (needs the NPU runtime) accel0 (NPU)
hrx-batched tools/showcase-612-hrx.sh -DONEBIT_HRX=ON (TheRock) HRX0 (iGPU)
hybrid docs/hybrid.md "Status" -DONEBIT_HRX=ON .. --prefill-provider HRX0 + a prefill provider
$ ./tools/showcase-612.sh npu-streams # -> "no ./tools/showcase-612-npu-streams.sh: it is in pull request #640 ..."; rc=1
$ ./tools/showcase-612.sh hrx-batched 2 # -> "no ./tools/showcase-612-hrx.sh: it is in pull request #643 ..."; rc=1
$ ./tools/showcase-612.sh hybrid # -> the "no script of its own" paragraph; rc=0
$ ./tools/showcase-612.sh bogus # -> "unknown row 'bogus'"; rc=1
docs/hybrid.md does have the ## Status heading this points at. The ordering is the only constraint: until #640 and #643 are in, two of the four rows print the "which PR" message, which is what the script says it does. No set -e, so a row script's non-zero exit is the dispatcher's exit through exec, which is what you want from a thin front door.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item 4 of engine#612: one entry point for the demo, so "reproduce the table" is one command per row
instead of three reconstructed command lines.
tools/showcase-612.sh npu-streams→ the row 1 script (PR npu: --npu-streams N, the opt-in second engine — mechanism and its measured cost (engine#612) #640): two opted-in streams(
--npu-streams 2) against solo, 3 reps, refusing to start while another job holds the NPU.tools/showcase-612.sh hrx-batched 2 4 8→ the row 2 script (PR bench: HRX batched decode on Qwen3-Coder-30B-A3B at the current pin (engine#612 item 2) #643): one HRX server load per--parallel N, each load measuring one stream and N streams at once.tools/showcase-612.sh hybrid→ says in two lines why there is no script for it and points atdocs/hybrid.md"Status" (PR docs: what the hybrid route costs at this pin, and why its row is not here (engine#612 item 3) #644), which carries the measured handoff cost and the verdict.Deliberately a dispatcher and not a fourth copy of the measurement code: each row needs a different
build (NPU runtime vs TheRock/HRX) and a different device, and both row scripts are already committed
with the records they produced. Until those pull requests merge, a missing row script says which PR
carries it rather than pretending the row exists.
The issue comment with the full table (pin stamped on every row) is on #612; this PR is only the
entry point.
Refs #612.