Skip to content

topk-moe: additive-epsilon weight norm; inkling2: pad the bias table once per layer - #134

Merged
rafasmour merged 1 commit into
masterfrom
inkling/upstream-opt
Nov 22, 2026
Merged

rafasmour merged 1 commit into
masterfrom
inkling/upstream-opt

Conversation

@rafasmour

Copy link
Copy Markdown
Owner

Follow-up to #133.

  • CUDA topk-moe fusion: the weight norm may add an epsilon to the sum (SCALE with scale 1, expert_weights_norm_eps, DeepSeek-V4.1 and Inkling 2) instead of clamping it; before, the norm, sum and scale ran as separate kernels for those models
  • inkling2: the looped cache slots share the padded relative-position bias table of their physical layer (pad kernels 48 -> 24 per token)
  • test-backend-ops: TOPK_MOE cases with Inkling 2 shapes (128 experts, 8 used, sigmoid + bias, additive epsilon)

RX 7900 XT, Inkling-2-Mini UD-Q3_K_XL: tg128 43.3 -> 44.6 t/s, decode kernels per token 3664 -> 3447. KL divergence vs the build before #132: 0.0025 (noise floor 0.0023). TOPK_MOE 697/697 and the Inkling fusion groups pass on ROCm0 vs CPU.

Assisted-by: Claude Opus 5.5

…kling2: pad each rel-pos bias table once

Assisted-by: Claude Opus 5.5
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