Rejection sampling and SFT

Reports The Llama 3 Herd of Models (arXiv 2407.21783v3) · DPO (arXiv 2305.18290v3) · no training code is published · How to read

Rejection sampling and SFT

SFT loss

×

tensor

Its gradient updates the model.

shape
LSFT\mathcal L_{\mathrm{SFT}} [1]
Sources

Contextual evidence from Cross-entropy, prompt masked

§4.1.3: the reward model performs rejection sampling on human annotation prompts; with this data and other sources, including synthetic data, the pre-trained language model is fine-tuned with a standard cross-entropy loss on the target tokens, the loss masked on prompt tokens; learning rate 10⁻⁵ over 8.5K to 9K steps for the largest models.

sft · arXiv 2407.21783 / Llama3-Herd-2407.21783v3.pdf
Pinned revision v3 ↗ · p. 16