Chapter 081 / 4
Mixture-of-Experts
Implement top- routing (softmax top- renormalized gates) in PyTorch
Easy
Target interface
class TopKRouterImplement the function/class skeleton in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.