Remove the MoEGate training assert

#66
by qgallouedec HF Staff - opened

The noaux_tc routing below the assert is the same math as the transformers native deepseek_v3 port, which trains fine: gate weight and expert params all receive gradients (the correction bias is selection-only in both implementations). With the assert, any fine-tuning attempt through this remote code dies in train mode. Removing it is enough: nothing else in the branch depends on eval mode. Related: https://github.com/huggingface/transformers/pull/48358 adds a native kimi_k2 mapping so transformers users get the native port directly.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment