AdvancedAbout 30 min

    Mixture of Experts (MoE)

    Read the full article on Substack

    6 min read.

    Discover how Mixtral achieves massive scale efficiently, and how GPT-4 is rumored to use a similar mixture-of-experts approach! Visualize the Mixture of Experts architecture: gating networks, top-K routing, sparse activation, and load balancing. The secret behind modern trillion-parameter models.

    Top K
    Thequickbrownfoxjumpsoverthelazydog.RouterE1E2E3E4E5E6E7E8Weighted sum

    Press Play to route ten tokens. Each one uses only 2 of 8 experts.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Total or active parameters?

    Sort

    Sort each consequence of a sparse MoE layer.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Scales with total parameters

    Drop items here

    Scales with active parameters

    Drop items here
    6 pieces left to place

    Quiz

    22 questions
    Question 1 of 22
    Score: 0

    What is the main benefit of Mixture of Experts over dense models?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going