Questions

What limits how much text a model can read at once?

The amount of text a model can take in at once is its context window, measured in tokens (pieces of words). Two things make long windows hard.

The first is cost. The Transformer architecture behind today's language models (Attention Is All You Need) works by letting every token "attend" to every other token. Double the length of the text and there are four times as many pairs to compare, so memory and compute grow quickly.

The second is that a model has to understand where each token is. Many models do this with rotary position embedding (RoPE), and a model that only saw short texts in training does not automatically make sense of positions far beyond them. Base of RoPE Bounds Context Length argues that one of RoPE's settings puts a hard lower limit on what a model can genuinely use, and that some popular tricks for stretching the window only appear to work.

Where does the training data for language models come from?

Mostly from the public web, collected by crawling billions of pages, then filtered heavily to remove spam, duplicates and low-quality text. This is usually mixed with books, academic papers, code and smaller hand-picked datasets for particular skills such as maths.

Much of that text is copyrighted, and most companies say little about exactly what they used. Two efforts show what a more open approach looks like:

  • The Common Pile collects 8TB of text that is public domain or openly licensed, and shows that models trained only on it can be competitive with older models trained on unrestricted web data.
  • "Fully open" models such as OLMo 2 and SmolLM2 publish details of their training data along with the models, so anyone can inspect what went into them.
Why does AI need so much compute?

AI companies in the past few years have been building out huge amount of compute. Why do the need so much? Blah blah example example link.

Another paragraph another link.