LLM Learning Roadmap
✨ Awesome-Anything
🖼️ Digital Image Processing
🍃 LLM Components
🌱 LLM Pre-training
☘️ LLM Post-Training
🍀 LLM Popular Models
🪴 LLM Applications
🌿 LLM Optimization
🌾 LLM Compression
🌵 LLM Hands-on Practice
🌴 LLM Must-read Papers
🌳 LLM Q&A
🐝 VLM Image Encoders
📝 MISC.
2.1 Pre-training Definition
2.1 Definition of Pre-training
The goal of pre-training large language models is to enable them to learn general features and patterns from large-scale datasets, thereby improving their performance and generalization across various tasks while reducing reliance on labeled data. This process equips the model with universal capabilities, producing a base model and accelerating its adaptation and training for new tasks. Specifically, self-supervised learning is conducted on extensive corpora, distinct from unsupervised learning methods like clustering, where Next Token Prediction (NTP) uses the next token as a label for self-supervised learning. The specific training objective is the NTP loss:
The core idea is for the model to predict the next most probable word based on the context. The Next Token Prediction Loss trains the model to make more accurate next-word predictions by computing the logarithmic likelihood loss for each prediction.
When calculating the loss, both the prompt and response sections must be included
Prev
1.6 Architecture & Decoding Policy
Next
2.2 Pre-training Data
Loading...