fix(neuron): route the fused MoE block in the activation dtype (#92) #111

Merged
grenade merged 1 commits from fix/92-fused-router-dtype into main 2026-07-02 04:34:41 +00:00
Owner

Part of #92. The fused path fed f32 activations into the replicated bf16 router — a dtype-mismatched matmul that failed the first live fused request on the 80B and (correctly) tripped the poison/auto-recovery machinery with a clean fast-reject. Route in the original activation dtype like route_scatter does; only the softmax and downstream routing weights are f32 (which the grouped-GEMM kernel requires for topk_weights anyway).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TczcGF7JSjJs8r15RSSGpx

Part of #92. The fused path fed f32 activations into the replicated bf16 router — a dtype-mismatched matmul that failed the first live fused request on the 80B and (correctly) tripped the poison/auto-recovery machinery with a clean fast-reject. Route in the original activation dtype like `route_scatter` does; only the softmax and downstream routing weights are f32 (which the grouped-GEMM kernel requires for `topk_weights` anyway). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01TczcGF7JSjJs8r15RSSGpx
grenade added 1 commit 2026-07-02 04:34:32 +00:00
fix(neuron): route the fused MoE block in the activation dtype (#92)
All checks were successful
CI / Format (push) Successful in 7s
CI / CUDA type-check (push) Successful in 1m38s
CI / Clippy (push) Successful in 2m17s
CI / Test (push) Successful in 5m43s
CI / Build cortex SRPM (push) Has been skipped
CI / Build neuron SRPM (push) Has been skipped
CI / Publish cortex to COPR (push) Has been skipped
CI / Publish neuron to COPR (push) Has been skipped
CI / Bump version in source (push) Has been skipped
CI / Format (pull_request) Successful in 7s
CI / CUDA type-check (pull_request) Successful in 1m39s
CI / Clippy (pull_request) Successful in 2m20s
CI / Test (pull_request) Successful in 6m25s
CI / Build cortex SRPM (pull_request) Has been skipped
CI / Publish cortex to COPR (pull_request) Has been skipped
CI / Build neuron SRPM (pull_request) Has been skipped
CI / Publish neuron to COPR (pull_request) Has been skipped
CI / Bump version in source (pull_request) Has been skipped
40fecb2cf7
The fused path fed f32 activations into the replicated bf16 router —
a dtype-mismatched matmul that failed the first live fused request on
the 80B and (correctly) tripped the poison/auto-recovery machinery.
Route in the original activation dtype like route_scatter does; only
the softmax and downstream weights are f32 (which the grouped-GEMM
kernel requires for topk_weights anyway).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TczcGF7JSjJs8r15RSSGpx
grenade merged commit 35041f11de into main 2026-07-02 04:34:41 +00:00
grenade deleted branch fix/92-fused-router-dtype 2026-07-02 04:34:41 +00:00
Sign in to join this conversation.