Developing an LLM: Building, Training, Finetuning @SebastianRaschka
Developing an LLM: Building, Training, Finetuning  @SebastianRaschka
Uploaded June 2024 | Updated September 2026, 2 weeks ago
REFERENCES:
1. Build an LLM from Scratch book: amzn.to/4fqvn0D
2. Build an LLM from Scratch repo: github.com/rasbt/LLMs-from-scratch
3. Slides: sebastianraschka.com/pdf/slides/2024-build-llms.pdf
4. LitGPT: github.com/Lightning-AI/litgpt
5. TinyLlama pretraining: lightning.ai/lightning-ai/studios/pretrain-llms-tinyllama-1-1b

DESCRIPTION:
This video provides an overview of the three stages of developing an LLM: Building, Training, and Finetuning. The focus is on explaining how LLMs work by describing how each step works.

---

To support this channel, please consider purchasing a copy of my books: sebastianraschka.com/books

---

twitter.com/rasbt
linkedin.com/in/sebastianraschka
magazine.sebastianraschka.com

---

OUTLINE:

00:00 – Using LLMs
02:50 – The stages of developing an LLM
05:26 – The dataset
10:15 – Generating multi-word outputs
12:30 – Tokenization
15:35 – Pretraining datasets
21:53 – LLM architecture
27:20 – Pretraining
35:21 – Classification finetuning
39:48 – Instruction finetuning
43:06 – Preference finetuning
46:04 – Evaluating LLMs
53:59 – Pretraining & finetuning rules of thumb
Developing an LLM: Building, Training, FinetuningL6.5 A Closer Look at the PyTorch APIL10.5.4 Dropout in PyTorchL15.1: Different Methods for Working With Text Data13.2 Filter Methods for Feature Selection   Variance Threshold (L13: Feature Selection)LLM Building Blocks & Transformer AlternativesL19.3 RNNs with an Attention MechanismL8.9 Softmax Regression   Code Example Using PyTorchDeep Learning News #4, Feb 20 2021L18.2: The GAN Objective13.4.3 Feature Permutation Importance Code Examples (L13: Feature Selection)L13.9.3 AlexNet in PyTorch
Sebastian Raschka |

Developing an LLM: Building, Training, Finetuning

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER