Skip to content
ImagineWorld

Build a Large Language Model

node_idnode-book_build-a-large-language-model
node_typenode-book
schema_profileworld.node_book.v1
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityinforms
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the llms field, the work builds a large language model from scratch — tokenizer to pretraining to alignment — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-publication
compared_byworld-comparison-pillar-f-compiler-trinity-and-training-infrastructure
grounded_by
anchors_into
peer_node_books
pillar_membershipF — training_infrastructure
book_titleBuild a Large Language Model
book_subtitleFrom Scratch
book_authorSebastian Raschka
book_publisherManning
book_year2024
total_chapters7
total_source_pages347
total_nodes18
source_pdfbuild-a-large-language-model_author_sebastian-raschka.pdf
source_pdf_sha25677b0471c44fbe4b750179ec9b87c6bc39ccfb5baa78d8e4a75ce7e9cca0f1543
source_text_output_slugbuild-a-large-language-model
ocr_sourceQwen3-VL-8B-Instruct via llama-server (scaffold-ocr-batch-v2; pdftoppm 150dpi grayscale)
ocr_quality_classdraft
verification_statusunverified
verification_progress{"all_nodes":"stitched from OCR output; frontier verification status per node"}
stitched_bykimi-k3-frontier-transposition-pass
generated_at2026-09-20
pillar_normalizedF-training_infrastructure
updated_at2026-10-14T05:45:16Z
not_stitchedTitle Page, Copyright, Table of Contents, Preface, Index
local graph

Build a Large Language Model — Sebastian Raschka

Section titled “Build a Large Language Model — Sebastian Raschka”

From Scratch — Manning, 2024.

The book is organized as 7 chapters followed by appendices A–E and an index; there are no part dividers. Known scan gaps, documented in the stitch spec: acknowledgments, about-this-book, and about-the-author are absent, and the index is likely truncated. Companion volume to Build a Reasoning Model (already in the corpus).

node-book_build-a-large-language-model_front-about-the-cover — About the Cover Illustration

node-book_build-a-large-language-model_chapter-01-understanding-large-language-models — Chapter 1 — Understanding large language models

node-book_build-a-large-language-model_chapter-02-working-with-text-data — Chapter 2 — Working with text data

node-book_build-a-large-language-model_chapter-03-coding-attention-mechanisms — Chapter 3 — Coding attention mechanisms

node-book_build-a-large-language-model_chapter-04-implementing-a-gpt-model-from-scratch-to-generate-text — Chapter 4 — Implementing a GPT model from scratch to generate text

node-book_build-a-large-language-model_chapter-05-pretraining-on-unlabeled-data — Chapter 5 — Pretraining on unlabeled data

node-book_build-a-large-language-model_chapter-06-fine-tuning-for-classification — Chapter 6 — Fine-tuning for classification

node-book_build-a-large-language-model_chapter-07-fine-tuning-to-follow-instructions — Chapter 7 — Fine-tuning to follow instructions

node-book_build-a-large-language-model_appendix-a-introduction-to-pytorch — Appendix A: Introduction to PyTorch

node-book_build-a-large-language-model_appendix-b-references-and-further-reading — Appendix B: References and further reading

node-book_build-a-large-language-model_appendix-c-exercise-solutions — Appendix C: Exercise solutions

appendix-d-adding-bells-and-whistles-to-the-training-loop

Section titled “appendix-d-adding-bells-and-whistles-to-the-training-loop”

node-book_build-a-large-language-model_appendix-d-adding-bells-and-whistles-to-the-training-loop — Appendix D: Adding bells and whistles to the training loop

appendix-e-parameter-efficient-fine-tuning-with-lora

Section titled “appendix-e-parameter-efficient-fine-tuning-with-lora”

node-book_build-a-large-language-model_appendix-e-parameter-efficient-fine-tuning-with-lora — Appendix E: Parameter-efficient fine-tuning with LoRA