Implement a full sparse MoE FFN with capacity, token dropping, and gate-weighted combinati

Mixture-of-Experts2 / 4

Chapter 082 / 4

Mixture-of-Experts

Implement a full sparse MoE FFN with capacity, token dropping, and gate-weighted combinati

Medium

Implement a full sparse MoE FFN with capacity, token dropping, and gate-weighted combination.

Target interface
class Expert

Implement the function/class skeleton in the editor. Any correct approach is accepted.

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