Go beyond calling transformer libraries and learn what actually happens under the hood. Starting from first principles, this book builds transformers from scratch with NumPy and PyTorch, then takes you through training, optimization and production inference. Along the way, you’ll work through the math, code and practical techniques behind modern transformer systems.
A local model returns the expected answer. How do we know which layers ran on the GPU? In Local AI on RTX Spark Laptops, we investigate questions like this through 251 hands-on WSL2 exercises, following the evidence from model-loader logs down to individual CUDA kernels.
What does it take for a machine to truly understand the world? This book explores the science behind JEPA and predictive world models, from their roots in neuroscience to the latest research and practical implementations. Learn the theory, build working models in Python and PyTorch and discover how machines can learn to predict, reason and act in the physical world.
Build a tiny GPT from scratch, train it on your laptop in minutes, and chat with it in your browser. No API, no pretrained model, no GPU: just clear steps and code you understand line by line.
Build a complete LLM inference engine in C++ — from a blankproject to a working Transformer that loads a real model andgenerates text. Forged one challenge at a time, with teststhat prove every piece works before you move on.
A practical guide to fine-tuning Large Language Models (LLMs), offering both a high-level overview and detailed instructions on how to train these models for specific tasks.Get the paperback version here. Get the Kindle version here.
Stop guessing which machine learning algorithm to use. This book provides clear mathematical explanations, decision frameworks, and real-world examples to help you select, implement, and evaluate models correctly from data to deployment.
"If you intend to use machine learning to solve business problems at scale, I'm delighted you got your hands on this book." —Cassie Kozyrkov, Chief Decision Scientist at Google "Foundational work about the reality of building machine learning models in production." —Karolis Urbonas, Head of Machine Learning and Science at Amazon
Your simulator encodes everything you know about the mechanism, but it has no likelihood anyone can write down. This book shows you how to infer its parameters, with honest uncertainty, from simulations alone.
From one laptop to real users: APIs, workers, SLOs, traces, shadow scoring, rollbacks, cost, routing, security and incidents, drawn and built in Python.
RAG answers you can trace to a source: ingestion, permissions, hybrid search, reranking, evals and regression gates, drawn and built in Python.
Agents that plan, act and recover: the harness around the model. Tools, plans, checks, state, approvals and memory, drawn and built in Python.
Build reliable LLM applications from first prompt to production agent. AI Engineering Visualized uses memorable doodles, practical Python, RAG, evals, tool calling and safety patterns to help you ship AI systems that work on Monday.
Build, train, deploy, scale and maintain deep learning models. Understand ML infrastructure and MLOps using hands-on examples.
Explore the fascinating world of Artificial Intelligence and solve real-world problems! In this practical guide, you will build intelligent real-world applications using GPT-4, Embeddings, Whisper, Weaviate, and more tools from the OpenAI ecosystem. You don't need to be a data scientist or machine learning engineer to follow this guide!