AI engineering glossary · Transformers LLM architecture

What is Switch Transformer?

Switch Transformer: A mixture-of-experts Transformer from Google that simplifies routing by sending each token to just one expert (top-1). It showed that sparse models with very many parameters can train efficiently and introduced a capacity limit and an auxiliary balancing loss.

Level: advancedTopic: Transformers LLM architecture

Switch Transformer: an example

In a Switch layer with 128 experts, each token is handled by exactly one expert feed-forward network.

Related terms

More Transformers LLM architecture terms

Where you learn it

Switch Transformer is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.