MoE decode: switch to batched_mm only when it beats grouped_mm for the experts, batch size and device
batched_mm copies one expert per token and top-k slot, so it only wins on launch overhead, for small experts and
few decode tokens. Compare both from the bytes they move (expert sizes, the device's memory bandwidth) and the
kernels they launch, instead of switching on every non-CPU device for every batch size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>