
Large-scale language models, fast and focused!
Description
Book Introduction
We've simplified the complex theories and included only the essential key points!
The most concise guide to learning language modeling
This book, a sequel to Andriy Burkov's best-selling book Machine Learning: A Fast, Straightforward Guide, begins with the fundamentals of language modeling and provides a concise yet thorough treatment of the latest large-scale language models (LLMs).
Through this book, readers can systematically learn the mathematical foundations of modern machine learning and neural networks, counting implemented in Python, RNN-based language models, transformers created directly with PyTorch, and LLM practice (directed fine-tuning, prompt engineering).
This hands-on book, based on executable Python code and the Google Colab environment, allows anyone to follow along step by step and expand their understanding.
This book explains how language models have evolved from simple n-gram statistics to become the core technology of today's AI, starting with count-based methods and moving on to the latest transformer architectures, covering both principles and implementation.
Each chapter builds on the preceding material, and even complex concepts are easily understood through clear explanations, illustrations, and practical exercises.
The most concise guide to learning language modeling
This book, a sequel to Andriy Burkov's best-selling book Machine Learning: A Fast, Straightforward Guide, begins with the fundamentals of language modeling and provides a concise yet thorough treatment of the latest large-scale language models (LLMs).
Through this book, readers can systematically learn the mathematical foundations of modern machine learning and neural networks, counting implemented in Python, RNN-based language models, transformers created directly with PyTorch, and LLM practice (directed fine-tuning, prompt engineering).
This hands-on book, based on executable Python code and the Google Colab environment, allows anyone to follow along step by step and expand their understanding.
This book explains how language models have evolved from simple n-gram statistics to become the core technology of today's AI, starting with count-based methods and moving on to the latest transformer architectures, covering both principles and implementation.
Each chapter builds on the preceding material, and even complex concepts are easily understood through clear explanations, illustrations, and practical exercises.
- You can preview some of the book's contents.
Preview
index
Translator's Note
Recommendation
Author's Note
Chapter 1: Machine Learning Fundamentals
1.1 AI and Machine Learning
1.2 Model
1.3 Four-Step Machine Learning Process
1.4 Vectors
1.5 Neural Networks
1.6 Matrix
1.7 Gradient descent
1.8 Automatic differentiation
Chapter 2: Language Modeling Fundamentals
2.1 BoW
2.2 Word embeddings
2.3 byte pair encoding
2.4 Language Model
2.5 Count-based language models
2.6 Language Model Evaluation
2.6.1 Congestion
2.6.2 ROUGE
2.6.3 Human Evaluation
Chapter 3 Recurrent Neural Networks
3.1 Elman RNN
3.2 Mini-batch gradient descent
3.3 Implementing RNN
3.4 RNN language model
3.5 Embedding Layer
3.6 Training an RNN Language Model
3.7 Dataset and DataLoader
3.8 Training Data and Loss Calculation
Chapter 4 Transformers
4.1 Decoder Block
4.2 Self-Attention
4.3 Position-based multilayer perceptron
4.4 Rotary position embedding
4.5 Multi-head attention
4.6 Residual linking
4.7 RMS normalization
4.8 Key-Value Caching
4.9 Transformer Implementation
Chapter 5 Large-Scale Language Models
5.1 Why Bigger is Better
5.1.1 Large number of parameters
5.1.2 Large context size
5.1.3 Large-scale training datasets
5.1.4 Large amount of computation
5.2 Fine-tuning supervised learning
5.3 Fine-tuning the pretrained model
5.3.1 Baseline Emotion Classifier
5.3.2 Creating Emotion Labels |
5.3.3 Fine-tuning to follow instructions
5.4 Sampling the language model
5.4.1 Basic sampling using temperature
5.4.2 Top-k sampling
5.4.3 Nucleus (top-p) sampling
5.4.4 Penalty
5.5 LoRA
5.5.1 Core Idea
5.5.2 PEFT
5.6 LLM for Classification
5.7 Prompt Engineering
5.7.1 Characteristics of a Good Prompt
5.7.2 Follow-up on Actions
5.7.3 Code Generation
5.7.4 Document Synchronization
5.8 Hallucinations 182
5.8.1 Causes of hallucinations
5.8.2 Anti-hallucination
5.9 LLM, Copyright, Ethics
5.9.1 Training Data
5.9.2 Generated Content
5.9.3 Open Weight Model
5.9.4 Broad Ethical Considerations
Chapter 6 Additional Materials
6.1 MoE
6.2 Model Merging
6.3 Model Compression
6.4 Preference-based sorting
6.5 Advanced Reasoning
6.6 Language Model Security
6.7 Vision Language Model
6.8 Preventing overfitting
6.9 Conclusion
6.10 Other books by the author
Recommendation
Author's Note
Chapter 1: Machine Learning Fundamentals
1.1 AI and Machine Learning
1.2 Model
1.3 Four-Step Machine Learning Process
1.4 Vectors
1.5 Neural Networks
1.6 Matrix
1.7 Gradient descent
1.8 Automatic differentiation
Chapter 2: Language Modeling Fundamentals
2.1 BoW
2.2 Word embeddings
2.3 byte pair encoding
2.4 Language Model
2.5 Count-based language models
2.6 Language Model Evaluation
2.6.1 Congestion
2.6.2 ROUGE
2.6.3 Human Evaluation
Chapter 3 Recurrent Neural Networks
3.1 Elman RNN
3.2 Mini-batch gradient descent
3.3 Implementing RNN
3.4 RNN language model
3.5 Embedding Layer
3.6 Training an RNN Language Model
3.7 Dataset and DataLoader
3.8 Training Data and Loss Calculation
Chapter 4 Transformers
4.1 Decoder Block
4.2 Self-Attention
4.3 Position-based multilayer perceptron
4.4 Rotary position embedding
4.5 Multi-head attention
4.6 Residual linking
4.7 RMS normalization
4.8 Key-Value Caching
4.9 Transformer Implementation
Chapter 5 Large-Scale Language Models
5.1 Why Bigger is Better
5.1.1 Large number of parameters
5.1.2 Large context size
5.1.3 Large-scale training datasets
5.1.4 Large amount of computation
5.2 Fine-tuning supervised learning
5.3 Fine-tuning the pretrained model
5.3.1 Baseline Emotion Classifier
5.3.2 Creating Emotion Labels |
5.3.3 Fine-tuning to follow instructions
5.4 Sampling the language model
5.4.1 Basic sampling using temperature
5.4.2 Top-k sampling
5.4.3 Nucleus (top-p) sampling
5.4.4 Penalty
5.5 LoRA
5.5.1 Core Idea
5.5.2 PEFT
5.6 LLM for Classification
5.7 Prompt Engineering
5.7.1 Characteristics of a Good Prompt
5.7.2 Follow-up on Actions
5.7.3 Code Generation
5.7.4 Document Synchronization
5.8 Hallucinations 182
5.8.1 Causes of hallucinations
5.8.2 Anti-hallucination
5.9 LLM, Copyright, Ethics
5.9.1 Training Data
5.9.2 Generated Content
5.9.3 Open Weight Model
5.9.4 Broad Ethical Considerations
Chapter 6 Additional Materials
6.1 MoE
6.2 Model Merging
6.3 Model Compression
6.4 Preference-based sorting
6.5 Advanced Reasoning
6.6 Language Model Security
6.7 Vision Language Model
6.8 Preventing overfitting
6.9 Conclusion
6.10 Other books by the author
Into the book
“The advent of large language models (LLMs) changed everything.
For the first time, computers can converse fluently with people and follow spoken instructions with remarkable accuracy.
But like all tools, the immense power of these models has its limits.
Some are easy to handle, but others are subtle and require a high degree of expertise to handle properly.
If you try to build a skyscraper without fully understanding the tools, you'll end up with nothing more than a mountain of concrete and rebar.
The same goes for language models.
Performing large-scale text processing or building reliable commercial products requires precision and knowledge.
“Speculation is not a consideration.”
For the first time, computers can converse fluently with people and follow spoken instructions with remarkable accuracy.
But like all tools, the immense power of these models has its limits.
Some are easy to handle, but others are subtle and require a high degree of expertise to handle properly.
If you try to build a skyscraper without fully understanding the tools, you'll end up with nothing more than a mountain of concrete and rebar.
The same goes for language models.
Performing large-scale text processing or building reliable commercial products requires precision and knowledge.
“Speculation is not a consideration.”
--- From "The Author's Note"
Publisher's Review
What this book covers
● Core concepts of machine learning and neural networks
● Text representation techniques and basic language modeling
Implementing RNNs and Transformers with PyTorch
● Language Model Fine-Tuning and Prompt Engineering Practice Guidelines
● Key considerations regarding hallucination issues and model evaluation
● Core concepts of machine learning and neural networks
● Text representation techniques and basic language modeling
Implementing RNNs and Transformers with PyTorch
● Language Model Fine-Tuning and Prompt Engineering Practice Guidelines
● Key considerations regarding hallucination issues and model evaluation
GOODS SPECIFICS
- Date of issue: October 30, 2025
- Page count, weight, size: 220 pages | 172*225*11mm
- ISBN13: 9788966264940
You may also like
카테고리
korean
korean