Skip to content
StackDecode
LLM Library
Dense decoderOpen weightsArchitecture animation

Llama 3.1

A dense open family up to 405B, trained on about 15 trillion tokens.

At a glance

Made by
Meta
Released
2024
Type
Dense decoder
Access
Open weights
Parameters
8B, 70B, 405B
Context window
128k tokens
Attention
Grouped-query attention

How it works

Llama 3.1 keeps the standard decoder recipe (GQA, RoPE, RMSNorm, SwiGLU) and wins through data quality, scale and careful post-training. A 128k context was added in this release.

Architecture, step by step

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

× N layersText inTokenizerEmbedding + positionNormCausal self-attentionAdd (residual)NormFeed-forward (MLP)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/12
part:
Text in
1/12

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

What stands out

  • 405B dense flagship
  • Trained on over 15T tokens
  • 128k context

Keep in mind

Community licence with conditions.

Related models