How does it work?
Training shows the model a very large body of text and asks it, over and over, to predict the next token. Each miss nudges billions of internal weights. Nothing in that process teaches it facts as facts — it learns the statistical shape of language, and a great deal of world knowledge comes along for the ride because accurate text is more predictable than inaccurate text.
After that comes a second stage, usually some mix of supervised fine-tuning and learning from human feedback, which is what turns a raw text predictor into something that follows an instruction rather than continuing it. A base model given "Write me a poem about rain" might reply with three more writing prompts. An instruction-tuned model writes the poem.
