Skip to content

Triton backend: F.grouped_mm runs as an Inductor extern call, so the MoE expert matmul has no kernel #398

Closed

Description

@YWHyuk

With TORCHSIM_TRITON_CODEGEN=1, Qwen3-30B-A3B's expert matmul (F.grouped_mm(x, w, offs), as tpu-perf-archive harness/qwen_moe_layer_v1.py writes it) is lowered by Inductor to an aten extern call, not a Triton kernel. The validation bundle for the layer suite (branch bundle/layer-suite, #397) therefore holds only the offsets' cumsum kernel for the gmm_gate_up / gmm_down op rows (4417 cycles on tpuv6e), and the layer rows lose the expert matmul entirely; the simulator never sees it.

Needed: a route that gives grouped_mm a Triton kernel on this backend (a template or a decomposition through the public Inductor extension points). Until then the bundle records the call as extern (not simulated) and the compiler's report leaves those workloads out of its verdicts (PSAL-POSTECH/PyTorchSim-Triton-Backend#210).

🤖 Generated with Claude Code

https://claude.ai/code/session_011cGNfHFySFsi7feZKKvq7e

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions