MoE Load-Balancing Auxiliary Loss

hard
Unit 29 · Safety0/0 to milestone

Mixture-of-Experts routers tend to collapse onto a few favourite experts. The Switch Transformer auxiliary loss pushes routing towards uniform:

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
MoE Load-Balancing Auxiliary Loss · TechGradify