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