Skip to content
Scan a barcode
Scan
Paperback Build a GPT-Style AI: From Scratch with PyTorch, CUDA AMP, LoRA, QLoRA, Evaluation and Local Serving Book

ISBN: B0H215V6CG

ISBN13: 9798195787608

Build a GPT-Style AI: From Scratch with PyTorch, CUDA AMP, LoRA, QLoRA, Evaluation and Local Serving

Most LLM books show either high-level concepts or finished tools. This book teaches the full engineering path.

Build a GPT-Style AI starts from an empty folder and builds a language model project step by step. You will create the environment, tokeniser, dataset pipeline, decoder-only transformer, training loop, checkpoint system, validation reports, mixed precision path, generation module, LoRA workflow, QLoRA workflow, release checklist, and local API.

The emphasis is practical understanding. You will see why tokenisation comes before modelling, how next-token training works, how checkpoints protect long runs, why validation loss is not enough, how CUDA AMP uses torch.autocast and GradScaler, why BF16 usually does not need gradient scaling in the same way as FP16, and how CPU and MPS fallbacks should be handled cleanly.

The book is honest about scale. A 0.5B model is large enough to teach real engineering pressure. A 7B model changes the hardware conversation. Frontier commercial systems such as GPT-5.5 and Claude require industrial infrastructure, proprietary data pipelines, post-training, safety systems, evaluation programmes, and serving platforms. This book does not pretend otherwise. Instead, it gives you the machinery and judgement to understand how LLM systems are built.

You will learn how to: Build a GPT-style transformer directly in PyTorch.Train and inspect a tokeniser.Prepare datasets for next-token prediction.Implement training, validation, checkpointing, and resume.Use CUDA AMP with torch.autocast and GradScaler.Understand BF16, FP16, CPU fallback, and Apple Silicon MPS behaviour.Design a 0.5B model configuration before wasting compute.Reason about scaling from 0.5B to 3B and 7B.Fine tune existing models with LoRA and QLoRA.Evaluate, release, quantise, and serve a model locally.The companion code is available at https: //github.com/riccione83/tiny-llm.

This is a practical technical book for software engineers, machine learning practitioners, students, founders, and serious builders who want to understand LLMs by constructing the system beneath them.

Recommended

Format: Paperback

Condition: New

$33.60
Save $1.20!
List Price $34.80
Ships within 2-3 days
Save to List

Customer Reviews

0 rating
Copyright © 2026 Thriftbooks.com Terms of Use | Privacy Policy | Do Not Sell/Share My Personal Information | Cookie Policy | Cookie Preferences | Accessibility Statement
ThriftBooks ® and the ThriftBooks ® logo are registered trademarks of Thrift Books Global, LLC
GoDaddy Verified and Secured