[PR #3094] [CLOSED] Gfx906 exact pipeline j48 20261018 #4452

Closed
opened 2026-11-07 15:36:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3094
Author: @0FL01
Created: 10/18/2026
Status: ❌ Closed

Base: main ← Head: gfx906-exact-pipeline-j48-20261018


📝 Commits (7)

  • 185d9cc gfx906: add opt-in Q2 spreading and bounded FIT17 with parity tests
  • 10651f8 serving: guard primary commit overlap and empty PCIe groups
  • 06ab098 prefill: add owned gfx906 N4 and exact HC F16 opt-ins with tests
  • 744243d bench: document six paired gfx906 runs and reproducible qualification
  • 963f1a5 gfx906: qualify exact pipeline and opt-in J48 prefill bundle
  • 64a3363 bench: isolate existing HIP prerequisites from proposed optimization code
  • 413dbf6 docs: add copy-ready dependent draft PR description

📊 Changes

153 files changed (+71889 additions, -52 deletions)

View changed files

📝 CMakeLists.txt (+93 -0)
➕ bench/results/2026-10-17-gfx906-combined/BUILD.md (+60 -0)
➕ bench/results/2026-10-17-gfx906-combined/CONFIG.example.json (+171 -0)
➕ bench/results/2026-10-17-gfx906-combined/CONFIG.test.json (+47 -0)
➕ bench/results/2026-10-17-gfx906-combined/COVERAGE.md (+32 -0)
➕ bench/results/2026-10-17-gfx906-combined/README.md (+68 -0)
➕ bench/results/2026-10-17-gfx906-combined/SHA256SUMS.json (+106 -0)
➕ bench/results/2026-10-17-gfx906-combined/VALIDATION.json (+44 -0)
➕ bench/results/2026-10-17-gfx906-combined/build-baseline.sh (+5 -0)
➕ bench/results/2026-10-17-gfx906-combined/build-candidate.sh (+5 -0)
➕ bench/results/2026-10-17-gfx906-combined/common-build-prerequisites.patch (+57 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/asset-hash-provenance.json (+12 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/baseline-startup-reserve-v3/receipt.json (+45 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/baseline-startup-reserve-v3/stdout.log (+2 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-A.receipt.json (+1114 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-A.stdout (+1046 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-B.receipt.json (+1114 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-B.stdout (+1046 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/status.json (+2214 -0)
➕ bench/results/2026-10-17-gfx906-combined/evidence/candidate-startup-reserve-v3/receipt.json (+45 -0)

...and 80 more files

📄 Description

Dependent draft — builds on #2966

This is a supplement to #2966, not a replacement or a claim that its existing optimizations are new. Until #2966 lands, the main-branch diff includes its commits. Review the incremental commits starting at 744243d293d63c8647f83ece6b5621f2f84f8747.

The new work adds exact-F16 workspace reuse, shape-aware preparation around the existing decode pipeline, and an opt-in, guarded J48 MMQ hint for local full-routing gfx906 prefill. The existing pipeline mode 2 itself is not introduced by this PR.

Measured whole operating profile

Two Radeon Pro VII 16 GiB (gfx906), same model and expert-cache capacity; 65,536 prompt / 1,024 generated tokens, six interleaved pairs, all runs retained.

Baseline Candidate Paired change 95% paired-log t interval
PP, t/s 644.6466 649.5473 +0.7585% −0.7457% to +2.2855%
TG, t/s 55.2240 61.6476 +11.6318% +11.4085% to +11.8555%

All 12 runs matched all 1,024 reference output token IDs. All six TG pairs were positive. This comparison includes pipeline/reserve configuration changes; it is not an isolated J48 gain or a comparison with identical speculative work. Zero PP regression is not established.

Correctness and incremental checks

  • J48 held-out component replay: 35 vectors, two campaigns, both GPUs; exact output/canary checks.
  • 64K accepted0705→J48 ABBA: PP +0.6716%, TG +0.1926%; all four outputs exact.
  • 200K/256 single pair: PP 605.4084→612.5657, TG 54.0826→54.1112; exact output. Preliminary.
  • 8K repeat ON/OFF/OFF/ON: exact outputs; PP +1.5043%, TG −0.2820%. An initial 8K PP slowdown is retained and unexplained; it did not repeat.

Why this stays Draft

  • CUDA and other HIP-device builds/runtimes remain unverified. Shared host code changes include Product, verify capture, and prompt preparation ordering; this does not claim non-gfx906 host execution is untouched.
  • Existing HIP build prerequisites overlap #2020, #2460 and #2459/#3083. They are documented as a reproducibility patch, not proposed again as optimization code. The published source is not claimed to build standalone on gfx906 without those prerequisites.
  • Do not combine with #1457 workspace-lifetime changes without fresh analysis/tests.
  • #3078's void cudaFree wrapper conflicts with checked frees in the inherited HC code; it is not imported.
  • Fixed synthetic fixtures and token equality do not establish all model-quality, vision or agent-session behavior.
  • No production deployment.

Full report, per-run results, hashes, benchmark script and prerequisites

The source and raw local test artifacts are preserved on the MI50 host; the earlier accepted +11.48% TG result is retained as a rollback.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3094 **Author:** [@0FL01](https://github.com/0FL01) **Created:** 10/18/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `gfx906-exact-pipeline-j48-20261018` --- ### 📝 Commits (7) - [`185d9cc`](https://github.com/Niko1221/Strata/commit/185d9cca991a90034baed255874d6d2a9c675ffe) gfx906: add opt-in Q2 spreading and bounded FIT17 with parity tests - [`10651f8`](https://github.com/Niko1221/Strata/commit/10651f8d950fc61f2f6f794b839ca446453687e3) serving: guard primary commit overlap and empty PCIe groups - [`06ab098`](https://github.com/Niko1221/Strata/commit/06ab098d4143d0c2f93c04755798639f0af8f5c1) prefill: add owned gfx906 N4 and exact HC F16 opt-ins with tests - [`744243d`](https://github.com/Niko1221/Strata/commit/744243d293d63c8647f83ece6b5621f2f84f8747) bench: document six paired gfx906 runs and reproducible qualification - [`963f1a5`](https://github.com/Niko1221/Strata/commit/963f1a59c628d3a0874bd3965d0f8e9094d0381c) gfx906: qualify exact pipeline and opt-in J48 prefill bundle - [`64a3363`](https://github.com/Niko1221/Strata/commit/64a33632164059477146ebec0eaf2487c2ab6797) bench: isolate existing HIP prerequisites from proposed optimization code - [`413dbf6`](https://github.com/Niko1221/Strata/commit/413dbf648b0b59014c3d3a648ab068f5fbc9e444) docs: add copy-ready dependent draft PR description ### 📊 Changes **153 files changed** (+71889 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+93 -0) ➕ `bench/results/2026-10-17-gfx906-combined/BUILD.md` (+60 -0) ➕ `bench/results/2026-10-17-gfx906-combined/CONFIG.example.json` (+171 -0) ➕ `bench/results/2026-10-17-gfx906-combined/CONFIG.test.json` (+47 -0) ➕ `bench/results/2026-10-17-gfx906-combined/COVERAGE.md` (+32 -0) ➕ `bench/results/2026-10-17-gfx906-combined/README.md` (+68 -0) ➕ `bench/results/2026-10-17-gfx906-combined/SHA256SUMS.json` (+106 -0) ➕ `bench/results/2026-10-17-gfx906-combined/VALIDATION.json` (+44 -0) ➕ `bench/results/2026-10-17-gfx906-combined/build-baseline.sh` (+5 -0) ➕ `bench/results/2026-10-17-gfx906-combined/build-candidate.sh` (+5 -0) ➕ `bench/results/2026-10-17-gfx906-combined/common-build-prerequisites.patch` (+57 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/asset-hash-provenance.json` (+12 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/baseline-startup-reserve-v3/receipt.json` (+45 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/baseline-startup-reserve-v3/stdout.log` (+2 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-A.receipt.json` (+1114 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-A.stdout` (+1046 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-B.receipt.json` (+1114 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/canary-B.stdout` (+1046 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/canary-64k-reserve-v3/status.json` (+2214 -0) ➕ `bench/results/2026-10-17-gfx906-combined/evidence/candidate-startup-reserve-v3/receipt.json` (+45 -0) _...and 80 more files_ </details> ### 📄 Description ## Dependent draft — builds on #2966 This is a supplement to #2966, not a replacement or a claim that its existing optimizations are new. Until #2966 lands, the main-branch diff includes its commits. Review the incremental commits starting at `744243d293d63c8647f83ece6b5621f2f84f8747`. The new work adds exact-F16 workspace reuse, shape-aware preparation around the existing decode pipeline, and an opt-in, guarded J48 MMQ hint for local full-routing gfx906 prefill. The existing pipeline mode 2 itself is not introduced by this PR. ### Measured whole operating profile Two Radeon Pro VII 16 GiB (gfx906), same model and expert-cache capacity; 65,536 prompt / 1,024 generated tokens, six interleaved pairs, all runs retained. | | Baseline | Candidate | Paired change | 95% paired-log t interval | |---|---:|---:|---:|---:| | PP, t/s | 644.6466 | 649.5473 | +0.7585% | −0.7457% to +2.2855% | | TG, t/s | 55.2240 | 61.6476 | +11.6318% | +11.4085% to +11.8555% | All 12 runs matched all 1,024 reference output token IDs. All six TG pairs were positive. This comparison includes pipeline/reserve configuration changes; it is not an isolated J48 gain or a comparison with identical speculative work. Zero PP regression is **not** established. ### Correctness and incremental checks - J48 held-out component replay: 35 vectors, two campaigns, both GPUs; exact output/canary checks. - 64K accepted0705→J48 ABBA: PP +0.6716%, TG +0.1926%; all four outputs exact. - 200K/256 single pair: PP 605.4084→612.5657, TG 54.0826→54.1112; exact output. Preliminary. - 8K repeat ON/OFF/OFF/ON: exact outputs; PP +1.5043%, TG −0.2820%. An initial 8K PP slowdown is retained and unexplained; it did not repeat. ### Why this stays Draft - CUDA and other HIP-device builds/runtimes remain unverified. Shared host code changes include Product, verify capture, and prompt preparation ordering; this does not claim non-gfx906 host execution is untouched. - Existing HIP build prerequisites overlap #2020, #2460 and #2459/#3083. They are documented as a reproducibility patch, **not proposed again as optimization code**. The published source is not claimed to build standalone on gfx906 without those prerequisites. - Do not combine with #1457 workspace-lifetime changes without fresh analysis/tests. - #3078's void cudaFree wrapper conflicts with checked frees in the inherited HC code; it is not imported. - Fixed synthetic fixtures and token equality do not establish all model-quality, vision or agent-session behavior. - No production deployment. [Full report, per-run results, hashes, benchmark script and prerequisites](https://github.com/0FL01/Strata/tree/64a33632164059477146ebec0eaf2487c2ab6797/bench/results/2026-10-18-gfx906-exact-pipeline-j48) The source and raw local test artifacts are preserved on the MI50 host; the earlier accepted +11.48% TG result is retained as a rollback. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:36:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4452
No description provided.