Building Large Language Models from Scratch: Design, Train, and Deploy LLMs with PyTorch

- 50%

Original price was: $13.99.Current price is: $7.00.

Add to wishlistAdded to wishlistRemoved from wishlist 0

Product Specs:

  • File Type: PDF
  • File Size: 20.7 MB
  • Book Language: English
  • Total Page Count: 547
  • Instant Download
SKU: DIGI-007828

Building Large Language Models from Scratch: Design, Train, and Deploy LLMs with PyTorch is a practical, developer-focused guide to understanding how LLMs are built, trained, and deployed. Rather than treating large language models as a black box, it walks through the moving parts that make them work: tokenization, transformer architecture, attention, positional embeddings, training workflows, and inference.

From First Principles to Working Systems

The book begins with the foundations and steadily builds toward more advanced implementation topics. Readers move from language modeling basics into tokenizer design, model configuration, RMS normalization, rotary positional embeddings, and the attention mechanisms that underpin modern transformer systems. The progression is deliberate and technical, making the material especially useful for readers who want to understand both the theory and the code.

What the Book Covers

  • Tokenization and byte-pair encoding
  • Transformer architecture and core language-model math
  • RMSNorm, RoPE, and modern model configuration choices
  • Attention, grouped query attention, and sliding-window ideas
  • Mixture of Experts and SwiGLU-based model components
  • Dataset preparation, training, prompting, and inference
  • Advanced training topics, including CUDA kernel integration

Built for Technical Readers

This is a strong fit for developers, AI practitioners, data scientists, and advanced learners who want a serious, implementation-oriented guide to LLM development. The emphasis on PyTorch and modern architecture details gives the book a clear engineering focus, while the chapter structure makes it easy to follow as a reference or as a start-to-finish learning path.

A Useful Addition to an AI Library

If you are looking for a book that explains how contemporary language models are assembled and optimized, this title offers a substantial, hands-on roadmap. It is especially appealing for readers who want to move beyond API use and into the mechanics of model design, training, and deployment.

Additional Book Details

Book specifications and digital file information

File Size
20.7 MB
File Type
PDF
Language
English
Page Count
547
Publisher
Apress
ISBN
ISBN_13_electronic: 979-8-8688-2297-1 | ISBN_13_pbk: 979-8-8688-2296-4
Edition
First edition
Authors
Dilyan Grigorov
Copyright
Dilyan Grigorov 2026
File Information
Building Large Language Models from Scratch Des.pdf
Additional Information
publication_location: Berkeley, CA | DOI: https://doi.org/10.1007/979-8-8688-2297-1 | Number_of_Illustrations: 1382 b/w illustrations | Number_of_Pages: XXV, 530

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
Write a review

There are no reviews yet.

Be the first to review “Building Large Language Models from Scratch: Design, Train, and Deploy LLMs with PyTorch”

Added to wishlistRemoved from wishlist 0
- 50%
Intermediate Python and Large Language Models

Intermediate Python and Large Language Models

Sold by Dilyan Grigorov
Original price was: $54.99.Current price is: $27.50.
Building Large Language Models from Scratch: Design, Train, and Deploy LLMs with PyTorch
Building Large Language Models from Scratch: Design, Train, and Deploy LLMs with PyTorch

Original price was: $13.99.Current price is: $7.00.

Your Next Chapter Starts Here.

Discover digital books that spark curiosity, inspire fresh ideas, and encourage learning. Explore the BooksStore collection and find your next great read.

Digital eBooks only
Downloadable file formats
Customer support available
Need Assistance?

Email us at [email protected]

Customer Support

General enquiries: response within 24–48 hours. Some issues may require additional time to resolve.

A World of Ideas Awaits

Good reads. Fresh possibilities.

Find something new to learn, enjoy, or explore. Browse the BooksStore collection and discover your next digital read.

Browse eBooks

Digital books only. No physical shipping. File formats vary by product.

Books Store
Logo
Shopping cart