Skip to content

docs/hybrid: the split's end-to-end ceiling per board model, from the recorded kernel shares (refs #754) - #1287

Merged
bong-water-water-bong merged 5 commits into
mainfrom
i754-e2e-table
Nov 6, 2026
Merged

bong-water-water-bong merged 5 commits into
mainfrom
i754-e2e-table

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Refs #754. A one-paragraph follow-up to #1274 (46e9106b), which merged before this landed on that branch.

#1274's doc section quotes the 47.7 % attention share, which is Qwen3-4B's. The same arithmetic from the recorded per-kernel
shares caps the split lower on every other model the scoreboard compares, because attention is a larger share:

model (largest measured prefill kernel, EXP-49) split-able share end-to-end ceiling
qwen38-27b (dp_mm_q5_k_m128_w8_f2_sb) 39.8 % 1.013x
coder30b-a3b (mul_mat_id_swiglu) 46.2 % 1.015x
qwen36-35b-a3b (prefill_mmid_swiglu_iq3) 30.8 % 1.010x
zaya1-8b 43.8 % 1.014x
Qwen3-0.6B at 16k (attention 73.8 %) 26.2 % 1.008x

end_to_end = 1/((1-s) + s/ceiling) with the per-GEMM ceiling at today's post-#782 iGPU (1.032x, tools/split_ceiling.py).
So the split is worth at most 1.5 % of prefill, everywhere, before the pipeline cost that pi-hrx-sched's 0.00 %
cross-submission overlap bounds — which is why #754 is Refs and not Fixes: no engine code reaches that win.

Docs only; no code, no device work — the shares are already-measured numbers from pi-hrx-sched's EXP-49 captures and the
ceiling comes from the tool #1274 added (ctest -R split_ceiling, Passed).

cc @pi-prs

bong-water-water-bong and others added 5 commits November 6, 2026 16:04
… recorded kernel shares (refs #754)

PR #1274 merged before this paragraph landed on the branch, so it comes as its own change. The 47.7 % attention
figure quoted there is Qwen3-4B's; using each compared model's largest measured prefill kernel as the
split-able share (EXP-49's captures: 39.8 / 46.2 / 30.8 / 43.8 / 26.2 %) the end-to-end ceiling is
1.008x-1.015x, i.e. at most 1.5 % of prefill everywhere - the number that settles #754 on this box rather
than the per-GEMM one. Amdahl over numbers already measured; no device work.
@bong-water-water-bong
bong-water-water-bong merged commit 5f7bc9a into main Nov 6, 2026
9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the i754-e2e-table branch November 6, 2026 20:34
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

754 - Partially compliant

Compliant requirements:

Non-compliant requirements:

  • The actual NPU prefill GEMM performance improvement (~4x) has not been implemented yet
  • The hybrid route implementation with GPU+NPU split has not been built
  • The ratio-based splitting algorithm has not been implemented
  • The shared weight layout and buffer sharing have not been implemented
  • The recorded-event + poll pattern for engine ordering has not been implemented

Requires further human verification:

  • The claimed performance ceiling of 1.5% across all models needs to be validated with actual measurements
  • The correctness of the end-to-end ceiling calculation needs to be confirmed

782 - Partially compliant

Compliant requirements:

Non-compliant requirements:

  • The actual performance regression in libggml-hrx has not been fixed
  • The root cause of the build knob difference has not been resolved

Requires further human verification:

  • The actual performance measurements need to be validated to confirm the regression is fixed
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Documentation inconsistency

The documentation states that the hybrid route offers no split due to a 30:1 row-cost asymmetry, but then goes on to describe how the split ceiling is calculated across different models. This creates a contradiction in the narrative as to whether the split is currently viable or not.

the number engine#754 is blocked on, and it is why this route offers no split: not because the idea is wrong, but
because at a 30:1 row-cost asymmetry between the two engines there is nothing left to win.

Across the models the scoreboard compares, the same arithmetic from the recorded per-kernel shares caps the split even
lower, because attention is a larger share than on the 4B: using each model's largest measured prefill kernel as the split-able
share (qwen38-27b 39.8 %, coder30b-a3b 46.2 %, qwen36-35b-a3b 30.8 %, zaya1-8b 43.8 %, Qwen3-0.6B at 16k 26.2 %), the
end-to-end ceiling is **1.008x-1.015x** - i.e. **at most 1.5 % of prefill, everywhere**, before the pipeline cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant