Training

Pinned sources The Llama 3 Herd of Models (arXiv 2407.21783v3), whose results are all for Llama 3.1 · for Llama 3, its model card (meta‑llama/llama3 @ a0940f9) and Meta’s post of April 2024 · no training code is published

  1. Start of training
  2. Initial pre‑trainingat 4K, then 8K15.6T8KNTPWhat trains: all
  3. Long‑context pre‑trainingsix stages, 8K to 128K800B128KNTPWhat trains: allcontext to 128K
  4. Annealinglearning rate to 040M128KNTPWhat trains: all
  5. Pre-trained model
  6. Off this path: Reward model 1 stage
  7. Reward modelin each roundnot statednot statedRMLlama 2’s, no marginnot statednot stated: tokens, context, what trains
  8. Reward model
  9. × 6 roundsRejection sampling and SFTthen DPO, each roundnot stated128KSFTRS and synthetic datanot statednot stated: tokens, what trains
  10. DPOafter SFT, each roundnot statedshort contextDPO+ NLL 0.2not statednot stated: tokens, what trains
  11. Llama 3.1 405B Instruct
  • tokens, log scale
  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained
  • data from a branch into a stage
  • stages repeated together

Reward model

×

A reward model is trained on top of the pre-trained checkpoint, from human preference data ranked edited > chosen > rejected.

Reward model

A model learns to give a response a score, from responses people ranked, so that the preferred one scores higher.

The paper gives the loss as Llama 2’s without its margin term; Llama 2’s paper is not pinned, so the atlas does not write it.

Start
The pre-trained checkpoint
Data
preference data rated significantly better or better, ranked edited > chosen > rejected

Not disclosed Learning rate · Steps

All settings5
Start
The pre-trained checkpoint
Objective
Llama 2’s, without the margin term
Data
All preference data available in the round, only samples rated significantly better or better, similar responses filtered out; two or three ranked responses concatenated in one row, shuffled
Model averaging
Models from experiments with various data or hyperparameters are averaged at each RM, SFT and DPO stage
The loss’s formula
By reference to Llama 2’s paper, which the atlas has not pinned
Sources3