LLM Training Explained: Pre-Training vs. Post-Training with Julien Launay
Super Data Science: ML & AI Podcast with Jon KrohnAugust 13, 20255 min3,405 views
11 connectionsΒ·18 entities in this videoβThe Two Phases of LLM Training
- π‘ Historically, LLM creation involved two main phases: pre-training and post-training.
- π― Pre-training is the most computationally intensive phase, involving training on vast amounts of text and data from the web, books, and papers.
- π The primary goal of pre-training is to train the model to predict the next word or token, enabling it to learn language patterns at scale.
Challenges with Pure Pre-Training
- β οΈ Models that undergo only pre-training can be unwieldy and not very interactive.
- π¬ A common failure mode is when a pre-trained model, asked a question, instead generates more questions similar to the prompt, as this pattern is equally likely in its training data.
- π§© This limitation led to the development of a second phase to refine the model's behavior.
The Role of Post-Training
- π οΈ Post-training aims to sharpen the model and align it with its intended use, such as becoming a helpful chat assistant.
- π§ While post-training can involve continued pre-training on specialized data (like chat transcripts), a major success has been the use of reinforcement learning.
- π Reinforcement learning allows models to learn from feedback (e.g., human ratings like thumbs up/down) rather than just explicit demonstrations, guiding the model to improve its responses.
Blurring Lines in Modern LLM Training
- π The distinction between pre-training and post-training is becoming less rigid, with pre-training now incorporating dynamic data distributions and higher-quality data as it progresses.
- π Some approaches are beginning to integrate reinforcement learning techniques directly into the pre-training phase.
- π° There's a significant trend of scaling up post-training, with recent models spending nearly as much on post-training as on pre-training, a substantial shift from historical practices.
Knowledge graph18 entities Β· 11 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
18 entities
Chapters3 moments
Key Moments
Transcript19 segments
Full Transcript
Topics13 themes
Whatβs Discussed
Large Language Models (LLMs)Pre-trainingPost-trainingReinforcement LearningReinforcement Learning from Human Feedback (RLHF)Next Word PredictionData ScienceHuggingFaceAdaptiveChatbotsModel AlignmentComputational CostData Distribution
Smart Objects18 Β· 11 links
PersonΒ· 1
ConceptsΒ· 13
CompaniesΒ· 2
LocationΒ· 1
MediaΒ· 1