Log inStart free
LESSON 11.04 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Data mixtures and curriculum

Watch four data sources mix into one model, in a planned order.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 11.04 · DATA BAY4 SOURCES · 8,192 TOKENS
01
Stage 1 of 6 · Four sources
Four sources feed one unigram model. Web holds 19 times more tokens than math.
Explain it simply

You see four piles of training text: web pages, books, code and math. Each bar shows how much text a source holds. The token grid shows how often each source uses each of 8 tokens. These shares are made up for this toy.

Four bars: web 4,864 tokens, books 1,280, code 1,792, math 256. Each source has a row of 8 token shares.

source dataweights, learning rateloss, too many epochsmodel
share of all tokenswebbookscodemaththe.,anddef=x+4,864 tokens1,280 tokens1,792 tokens256 tokensshare of all tokenswebbookscodemaththe.,anddef=x+4,864 tokens1,280 tokens1,792 tokens256 tokens
Toy: 4 sources, 8 tokens, 32 steps of 8 documents
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
shares=nsN\text{share}_s = \frac{\sy{n}{data}{n_s}}{\sy{N}{data}{N}}
sharemath=2568192=0.031\text{share}_{\text{math}} = \frac{256}{8192} = 0.031

A source's share is its tokens over all tokens.

Common mix-ups

MYTHOnly the totals of the mix matter, not the order.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If α falls from 0.5 to 0, does the final math loss go up or down?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.