Implement expert-parallel dispatch/combine with a simulated all-to-all and verify outputs

Mixture-of-Experts Models4 / 4

Chapter 084 / 4

Mixture-of-Experts Models

Implement expert-parallel dispatch/combine with a simulated all-to-all and verify outputs

Super-hard

Implement expert-parallel dispatch/combine with a simulated all-to-all and verify outputs match a dense reference for the same routing.

Target interface
class EP_MoE

Complete the starter code in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.