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

      Sparse MoE Top-K Routing

      CodingmediumOpen goal
      Start path
      Whole map

      Dependency network

      100%
      FoundationsLayer 2Layer 3Layer 4Layer 5Layer 6Layer 7Goal
      12 nodes · 12 connections

      After this goal

      • bf16 vs fp32 Routers: Round to bfloat16 and Count the Tokens Whose Experts Flip
      • Expert Capacity and Token Dropping: Position vs Probability Drop Policies
      • Expert Parallelism Token Routing and Communication Cost
      • Expert-Choice Routing: Experts Pick Their Top-C Tokens, Combine, and Measure Future-Token Leakage
      • Expert-Threshold Routing: Causal Per-Expert Cutoffs from Earlier Batches and a Variable Number of Experts
      • Implement a Sparse Mixture of Experts Layer
      • Implement Sigmoid MoE Router with Bias Correction
      • Implement the Noisy Top-K Gating Function
      • Loss-Free Bias Balancing: Sign, Centered-Sign and Linear Update Rules over a Stream of Batches
      • MaxVio at Every Scope: Sequence, Micro-Batch, Global Batch and Expert-Parallel Rank
      • Mixture of Experts Load Balancing Loss
      • Mixture-of-Recursions: Token-Choice Depth Assignment

      And 4 more