LLaVA-OneVision-2
LLaVA-OneVision-2 copied to clipboard
Fix fused indices conversion for non-power-of-two topk/local experts
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.