What is new compared with Llama 2?
| Aspect | Llama 2 | Llama 3.1 |
|---|---|---|
| Training tokens | 2 trillion | More than 15 trillion |
| Vocabulary | 32 thousand | 128 thousand |
| Context | 4096 | 128 thousand |
| Alignment | PPO | DPO with rejection sampling |
Tokens-to-parameters ratio
An 8-billion model on 15 trillion tokens means about 1875 tokens per parameter, roughly 94 times the Chinchilla ratio. This is an explicit application of the idea that a small model trained for long is cheaper at inference.
DPO instead of PPO
Direct preference optimization (DPO) turns the RLHF problem into a classification loss directly on preference pairs, without a separate reward model or reinforcement learning:
It is simpler and more stable, so Meta adopted it in this generation.
A causal mask stops each token from seeing what comes after it, so the model learns to predict the next token. Generation repeats this token by token.
