Skip to content

Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes - #18

Merged
hanzo-dev merged 1 commit into
mainfrom
perf/native-stack-campaign-2026-06
Jun 8, 2026
Merged

hanzo-dev merged 1 commit into
mainfrom
perf/native-stack-campaign-2026-06

Conversation

@hanzo-dev

Copy link
Copy Markdown
Member

Brings the native-stack serving campaign into the engine tree. Companion to hanzoai/ml#8.

ROCm serving (gfx1151 / Radeon 8060S)

  • Native ROCm PagedAttention backend (hanzo-paged-attn/src/rocm/*): HIP paged_attention + reshape_and_cache kernels, FFI, and the Rust backend.
  • ROCm decode-graph machinery (hanzo-engine/src/pipeline/rocm_graph.rs, plus metal_graph.rs) for low-overhead captured decode steps.
  • ROCm device-map support across hanzo-engine / hanzo-quant.
  • Numeric + perf correctness tests for the fused kernels: qmatvec (bf16 / q4k / unified), qmmq prefill, rmsnorm, rope, silu_mul, softmax.

Pairs with the ml-side decode parity work: lane-strided unified qmatvec_core (decode 8.5 -> 24.5 t/s = ~0.98x llama.cpp at the BW wall); unified 1-bit -> full quant core, 6 formats bit-exact; native MoE ~2x.

Metal (Apple Silicon, --features metal builds + runs)

  • hanzo-engine/Cargo.toml: dead candle-metal-kernels -> hanzo-metal-kernels.
  • hanzo-engine/src/pipeline/chat_template.rs: unresolved-EOS panic -> skip-with-warning (some MoE GGUFs carry an EOS string absent from the tokenizer vocab, which otherwise blocks model load).

1378 files; no file deletions; same-lineage update.

🤖 Generated with Claude Code

@hanzo-dev
hanzo-dev force-pushed the perf/native-stack-campaign-2026-06 branch from 7f5f623 to dcd7bfe Compare June 8, 2026 20:57
…used kernels + Metal fixes

ROCm PagedAttention backend (paged_attention.hip.cpp/reshape_and_cache, device-side seqlen);
rocm_graph.rs decode-graph machinery; fused rmsnorm/rope/softmax/silu_mul (decode 8.5->24.5);
numeric+perf gates. Metal build fixes (engine Cargo.toml hanzo-metal-kernels dep, chat_template EOS).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@hanzo-dev
hanzo-dev merged commit 2d19d12 into main Jun 8, 2026
1 of 18 checks passed
@hanzo-dev
hanzo-dev deleted the perf/native-stack-campaign-2026-06 branch June 8, 2026 21:48
@hanzo-dev
hanzo-dev restored the perf/native-stack-campaign-2026-06 branch June 19, 2026 22:16
@hanzo-dev
hanzo-dev deleted the perf/native-stack-campaign-2026-06 branch June 26, 2026 18:25
hanzo-dev added a commit that referenced this pull request Jul 16, 2026
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
zeekay pushed a commit that referenced this pull request Jul 26, 2026
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
zeekay pushed a commit that referenced this pull request Jul 26, 2026
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
hanzo-dev added a commit that referenced this pull request Jul 27, 2026
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
zeekay added a commit that referenced this pull request Sep 15, 2026
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
zeekay added a commit that referenced this pull request Sep 15, 2026
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
breezesamuel added a commit to breezesamuel/engine that referenced this pull request Nov 18, 2026
…w-up)

Completes the four remaining contract items from review:
- Matched baselines: unpinned-LRU (phase A) vs tenant-pinned (phase B)
  on the identical storm fixture - committed as
  hanzo-kv-fabric/results/lora-paging-results.json
- Raw measurements: 0/2048 (0.0%) unpinned vs 248/256 (96.9%) pinned;
  evictions 2038 vs 1800; policy cost ~302 ns hit / ~709 ns admission;
  8/8 pinned pages survive
- HIP-1345 update: results/HIP-1345-update.md proposes the §2.4 status
  addendum (§2.4 = Bounties hanzoai#14-hanzoai#15; the §2.3 label in the first cycle
  was a mislabel - §2.3 is Bounties hanzoai#13/hanzoai#18) - section refs corrected
  in module docs and the bench
- Out-of-scope statement: explicit 7-item list (training lifecycle,
  attention-path hot-swap, device I/O, cross-worker replication,
  multi-GPU placement, pin-quota arbiter, Bounty hanzoai#14)
zeekay pushed a commit to breezesamuel/engine that referenced this pull request Nov 21, 2026
…w-up)

Completes the four remaining contract items from review:
- Matched baselines: unpinned-LRU (phase A) vs tenant-pinned (phase B)
  on the identical storm fixture - committed as
  hanzo-kv-fabric/results/lora-paging-results.json
- Raw measurements: 0/2048 (0.0%) unpinned vs 248/256 (96.9%) pinned;
  evictions 2038 vs 1800; policy cost ~302 ns hit / ~709 ns admission;
  8/8 pinned pages survive
- HIP-1345 update: results/HIP-1345-update.md proposes the §2.4 status
  addendum (§2.4 = Bounties hanzoai#14-hanzoai#15; the §2.3 label in the first cycle
  was a mislabel - §2.3 is Bounties hanzoai#13/hanzoai#18) - section refs corrected
  in module docs and the bench
- Out-of-scope statement: explicit 7-item list (training lifecycle,
  attention-path hot-swap, device I/O, cross-worker replication,
  multi-GPU placement, pin-quota arbiter, Bounty hanzoai#14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant