LLaVA-OneVision-2 icon indicating copy to clipboard operation
LLaVA-OneVision-2 copied to clipboard

Fix fused indices conversion for non-power-of-two topk/local experts

Open zhujian19891203 opened this issue 6 months ago • 0 comments

Summary

Port the Megatron-LM fix for fused indices-to-multihot conversion when topk or num_of_local_experts is not a power of two. This fixes a Triton compilation failure seen with DeepSeek V2 MoE models when using DeepEP/flex MoE token dispatch, for example with topk=7.

Source

Upstream fx: NVIDIA/Megatron-LM@bc705358bceb0b4550bdc7b013cf4df84d134da8.

zhujian19891203 avatar May 20 '26 03:05 zhujian19891203