Building LLMs from Scratch Building LLMs from Scratch

Building LLMs from Scratch

A Complete Engineering Case Study in Designing, Training, Grounding, and Deploying a Domain-Specific Large Language Model

    • $9.99
    • $9.99

Publisher Description

Most books treat large language models as something you call through an API. This one shows you how to build one.

Building LLMs from Scratch is a single, continuous engineering case study that constructs a domain-specific "Engineering Copilot" from the ground up. Instead of disconnected snippets, it follows one coherent path through every layer of the modern LLM stack:

• Define the problem and lock the scope of a precision-critical assistant
• Curate trusted technical data and build a domain-aware tokenizer that preserves numbers, units, and formulas
• Implement a decoder-only transformer in PyTorch, step by step
• Pretrain and fine-tune for structured, repeatable reasoning
• Ground answers with retrieval-augmented generation (RAG) so the model cites real references instead of guessing
• Delegate calculations to deterministic tools for exact, auditable math
• Enforce evaluation, hallucination control, safety, and guardrails
• Optimize inference and deploy, then maintain the system as standards change

Every chapter adds working code and concrete artifacts, and every design decision is judged by one standard: would this be acceptable in a real engineering environment?

Written for software developers, engineers, and serious learners who can read code and think in systems, this book replaces hype with disciplined engineering. You do not need to be a machine learning researcher—if you understand how software systems are built, you can follow along and finish knowing how LLMs are actually engineered, not just used.

GENRE
Computers & Internet
RELEASED
2026
June 26
LANGUAGE
EN
English
LENGTH
120
Pages
PUBLISHER
Practicing Engineers Network Publications
SELLER
Yuhsiu Lai
SIZE
2.2
MB
Master the IBEW Aptitude Test Master the IBEW Aptitude Test
2026
NEC Electrical Code Inspection Handbook NEC Electrical Code Inspection Handbook
2026
Construction Engineering Drawings Construction Engineering Drawings
2026
Commercial Electrical Systems Illustrated Commercial Electrical Systems Illustrated
2026
Commercial Electrical Design and Construction Drawings Commercial Electrical Design and Construction Drawings
2026
The Visual Handbook of Building Engineering Codes The Visual Handbook of Building Engineering Codes
2026