LLMs-from-scratch/README.md

38 lines
2.2 KiB
Markdown
Raw Normal View History

2023-12-12 07:27:03 -06:00
# Build a Large Language Model (From Scratch)
2023-12-09 17:13:56 -06:00
2023-12-12 07:27:03 -06:00
<br>
<br>
<a href="http://mng.bz/orYv"><img src="images/cover.jpg" width="250px"></a>
In [*Build a Large Language Model (from Scratch)*](http://mng.bz/orYv), you'll discover how LLMs work from the inside out. In this book, I'll guide you step by step through creating your own LLM, explaining each stage with clear text, diagrams, and examples.
2023-12-13 06:12:50 -06:00
The method described in this book for training and developing your own small-but-functional model for educational purposes mirrors the approach used in creating large-scale foundational models such as those behind ChatGPT.
2023-12-12 07:27:03 -06:00
- Link to the official [source code repository](https://github.com/rasbt/LLMs-from-scratch)
- [Link to the early access version](http://mng.bz/orYv) at Manning
- ISBN 9781633437166
- Publication in Early 2025 (estimated)
<br>
<br>
2023-07-23 13:18:13 -05:00
2023-12-09 17:13:56 -06:00
## Table of Contents
| Chapter | Main code | Code + supplementary |
| ----------------------------------------- | ------------------------------------------------------------ | ---------------------------- |
| Ch 1: Understanding Large Language Models | No code | No code |
| Ch 2: Working with Text Data | [ch02.ipynb](ch02/01_main-chapter-code/ch02.ipynb)<br />[dataloader.ipynb](ch02/01_main-chapter-code/dataloader.ipynb) | [./ch02](./ch02) |
| Ch 3: Understanding Attention Mechanisms | [ch03.ipynb](ch03/01_main-chapter-code/ch03.ipynb)<br />[multihead-attention.ipynb](ch03/01_main-chapter-code/multihead-attention.ipynb) | [./ch03](./ch03) |
| ... | ... | ... |
2023-12-12 07:27:03 -06:00
| Appendix A: Introduction to PyTorch | [code-part1.ipynb](03_main-chapter-code/01_main-chapter-code/code-part1.ipynb)<br />[code-part2.ipynb](03_main-chapter-code/01_main-chapter-code/code-part2.ipynb)<br />[DDP-script.py](03_main-chapter-code/01_main-chapter-code/DDP-script.py) | [./appendix-A](./appendix-A) |
<br>
<br>
2023-12-16 12:43:33 -06:00
<img src="images/mental-model.jpg" width="600px">
2023-12-12 07:27:03 -06:00
2023-12-13 06:12:50 -06:00
(A mental model summarizing the contents covered in this book.)