From-Scratch Mixture-of-Experts Routing Layer with Noisy Top‑k Gating and Load‑Balancing Auxiliary Loss
A complete guide and runnable PyTorch implementation of a Mixture‑of‑Experts layer with noisy top‑k routing, auxiliary load‑balancing, and token dispatch, perfect for a portfolio CV.