chapter 1 of 9
Neurons to a language model
Goal: Follow one neuron's weighted sum all the way up to a model that guesses the next word
Neurons to a language model
testbeatenThe learning rateTokens and embeddingsNon-linearity: why a hundred layers can equal oneWhat deep learning actually is: backprop, and why language was hardFrom a model to an app
testbeatenThe batch size dialThe temperature dialRL fine-tuning: reward models, RLHF and DPOVector databases and RAG, end to endPast the basics
testbeatenThe decision thresholdTokens and embeddingsAttention in production: KV cache, MQA, GQA and MLAMixture of experts, reasoning, and test-time computeThe string and the contract
testbeatenThe loop and its harness
testbeatenThe loop capGPT, built from scratch
testbeatenThe learning rateTokens and embeddingsWhat deep learning actually is: backprop, and why language was hardAttention from scratch: the mechanism that ate the fieldOn a real model
testbeatenThe chunk sizeVector databases and RAG, end to endServe the GPT you built
testbeatenServing LLMs
testbeatenThe cascade thresholdA chip built for one sumThe machine that finds rulesFree with an accountOdds and surpriseWith a planBlame, handed backwardsWith a planOne knob, one slopeWith a planWhen the loss won't fallWith a planWords as points on a mapWith a planThe helper with one slipWith a planAsk everyone, weigh, blendWith a planGuess the next wordWith a planThe raffle drumWith a planThe writer with no memoryWith a planA text finisher learns mannersWith a planEight cards or oneWith a planThe Netflix table that was mostly emptyWith a planSix cases that were not thereWith a planThe helper with no handsWith a planNine hops to a labelWith a planWhy the chatbot ran outWith a planThe lost applesWith a planLearning from just a scoreWith a planThe exam that liesWith a planWhere to set the barWith a planMany small trees beat oneWith a planGroups nobody labelledWith a planThe half nobody could seeWith a planThe model that was a bridgeWith a planThe card with a holeWith a planBorrowed eyesWith a planThe ink you undoWith a planEyes for a readerWith a planSound and moving picturesWith a planA hospital, not a doctorWith a planFast and slow at onceWith a planPainters and paintWith a planA big brain on a laptopWith a planPacking eight suitcasesWith a planWhat the model ateWith a planThe kitchen that keeps stoppingWith a planPeople who bought thisWith a planFour bubbles, one stringWith a planThe desk that kept changing its storyWith a planThirty days or fourteenWith a planA slip, not a sentenceWith a planThe loop with no brakesWith a planWhich model, this weekWith a planThe chatbot that promised a fareWith a planOne plug for every toolWith a planSame as last timeWith a planSix boxes on a napkinWith a planTen pages, one full notepadWith a planWhich two rows?With a planAn agent with a computerWith a planFair on average, unfair to a groupWith a planThree budgets in codeWith a planThe desk that foldsWith a planThe mystery shopperWith a planBlame walks backwardsWith a planBuild the tokenizerWith a planCount the pairsWith a planEight characters of memoryWith a planA finger on the pageWith a planAdd a note, never rewriteWith a planChoosing the next characterWith a planBorrowing the big machineWith a planSearch first, then answerWith a planThe page the search never foundWith a planThe dress rehearsalWith a planThe kitchen around the cookWith a planThe writer's margin notesWith a planThe account book that ate the cardWith a planThe bus that never waitsWith a planBenches, not booked tablesWith a planPrint the letterhead onceWith a planThe helper drafts, the GPT checksWith a planThe engine, with a stopwatchWith a planThe two clocksWith a planSame start, computed onceWith a planRead the book a few pages at a timeWith a planTwo pools, one gigabyte in flightWith a planThe grammar holds the penWith a planWhich door gets the questionWith a planStop, and the stream that returns