Black Friday Sale: 20% off Premium yearly · $105.60 for the first year · until Monday, Nov 30Get it

Deep-ML
Learn
ProblemsPractice, projects, collections, and your progressLearning PathA guided route through the fundamentalsLabsInteractive labs on real techniquesProjectsBuild a GPT, an RL agent, CUDA kernelsCollectionsCurated problem sets and videosMathPen-and-paper math for MLIntuitionInvent the idea behind the formula yourselfPlaylistsYour own problem lists, shareableStudy AssistantAn AI teacher that knows your progress
Interview Prep
Compete
ContestsFresh problem sets, ranked liveLeaderboardWhere you stand, globallyBuddiesSolve with a friend: streaks, a weekly board, chat
Discuss
Deep-Path
Premium
      ← back to the problem

      Prerequisite path

      Implement a Sparse Mixture of Experts Layer

      CodinghardOpen goal
      Start path
      Whole map

      Dependency network

      FoundationsGoal
      IntuitionMathCoding
      Goal · Coding

      Implement a Sparse Mixture of Experts Layer

      Open goal

      Needs first 2

      32 nodes · 39 connections

      After this goal

      • Anticipatory Routing for MoE Training Stability
      • Hierarchical Mixture of Experts: Two Levels of Gating
      • Latent MoE: Route at Full Width, Run the Experts in a Smaller Latent Space
      • Mixtral's Sparse MoE Block: Top-2 Routing Over SwiGLU Experts, Computed Only Where Routed
      • MoE with Shared Expert Forward Pass
      • Muon for Experts: Orthogonalize Each Expert Separately, Not the Stacked Tensor
      • One gpt-oss Transformer Block, End to End
      • Routing Replay for MoE RL: Measure Rollout-Trainer Routing Mismatch and Replay It
      • Token Permute and Unpermute for Grouped GEMM, with Aligned Expert Segments
      • Upcycle a Dense FFN into Fine-Grained Experts and Check Parity at Initialization
      • Zero-Computation Experts: Variable Compute per Token and a Bias That Holds the Budget
      • Trainable Mixture of Experts in CUDA

      And 1 more