Skip to content
StackDecode
LLM Library
Mixture of expertsOpen weightsArchitecture animation

Llama 4

Meta's first Llama mixture-of-experts models, with native image input.

At a glance

Made by
Meta
Released
2025
Type
Mixture of experts
Access
Open weights
Parameters
Scout about 109B; Maverick about 400B
Active per token
17B for both
Context window
Scout up to 10M tokens
Attention
Grouped-query attention; interleaved attention layers

How it works

Llama 4 Scout has 16 experts and Maverick 128, with 17B parameters active per token. Both accept text and images, and Scout advertises a very long context.

Architecture, step by step

A token travels from text in to prediction out. The boxed layers repeat many times.

× N layersText inTokenizerEmbedding + positionNormSelf-attentionAdd (residual)NormRouter picks top-k expertsSelected experts (MLPs)Add (residual)Final normLM head (vocabulary scores)Softmax, then sample next token

Raw text enters the system, for example "The cat sat on the".

stage:
1/13
part:
Text in
1/13

The green dot is one token travelling through the model. The boxed section repeats for every layer.

What stands out

  • MoE with 17B active
  • Natively multimodal
  • Very long context on Scout

Keep in mind

Reported real-world long-context quality can be below the advertised length.

Related models