Skip to content

Native-stack campaign: ROCm decode parity + unified quant + Metal fixes - #8

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 campaign into the ml tree.

ROCm / quant compute (gfx1151 / Radeon 8060S)

  • Lane-strided unified qmatvec_core in hanzo-rocm-kernels/src/kernels/quant.hip: decode 8.5 -> 24.5 t/s = ~0.98x llama.cpp parity at the memory-bandwidth wall.
  • Unified 1-bit -> full-precision quant compute core. quant_format! macro decomplects quant support (iq_grids.rs, iq_quants.rs, quant_format.rs); proof.rs + qmmq_numeric.rs assert 6 formats bit-exact vs the hand-written impls.
  • Native MoE expert-matmul path (~2x).
  • rocm_backend device / wrappers / miopen plumbing; broad quant-type coverage.

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

  • hanzo-metal-kernels: add call_quantized_matmul_mv_t_offset / _mm_t_offset (offset-aware variants for the resident [E,n,k] MoE bank path) + re-export.
  • hanzo-ml/src/quantized/metal.rs: wire the offset kernels in moe_expert_matmul; non-exhaustive GgmlDType match -> honest catch-all bail! in dequantize(); drop(encoder) borrow (E0505) fix.

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

🤖 Generated with Claude Code

…nt core + native MoE + Metal fixes

Decode 8.5->24.5 t/s (0.98x llama, at the BW wall via lane-strided unified qmatvec_core<WTYPE>);
unified quant compute core (6 native + IQ/ternary/FP4 bit-exact, one core); native MoE ~2x;
ROCm decode-graph machinery; Metal build fixes (offset kernels, exhaustive match, borrow, dep).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@hanzo-dev
hanzo-dev force-pushed the perf/native-stack-campaign-2026-06 branch from 21177b5 to 353f00b Compare June 8, 2026 20:57
@hanzo-dev
hanzo-dev merged commit 7c98eed into main Jun 8, 2026
1 of 13 checks passed
@hanzo-dev
hanzo-dev deleted the perf/native-stack-campaign-2026-06 branch June 8, 2026 21:48
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