Bookshelf · If Anyone Builds It, Everyone Dies

If Anyone Builds It, Everyone Dies by Eliezer Yudkowsky and Nate Soares, framework 1 of 5

How a language model is grown

The seven steps by which engineers produce an LLM, showing why nobody designs what ends up inside.

Eliezer Yudkowsky and Nate Soares's framework, from If Anyone Builds It, Everyone Dies, pp. 21 to 101.

  1. Render the input as numbers

    Turn a text fragment into a series of numbers.

  2. Provide parameters

    Acquire storage for billions of numbers, each slot a parameter.

  3. Fill with random weights

    Fill the slots with randomly chosen numbers called weights.

  4. Choose the architecture

    Set the rules that combine the input with the weights.

  5. Read the output

    Treat the output numbers as probabilities for the next letter or token.

  6. Train by gradient descent

    For every weight, work out how a tiny change would make the answer more correct, nudge it that way and repeat over trillions of words.

  7. Generate text

    Feed each predicted token back in to continue the text, then tune the model to answer as an assistant.

From chapter: PART I: NONHUMAN MINDS, pp. 21–101

More from this book

All 5 frameworks

Back to the bookshelf