Leanpub Header

Skip to main content

Filters

Category: "Machine Learning"

Books

  1. How Transformers Actually Work
    How Transformers Actually Work
    From First Principles to Production Inference
    Steve Publications

    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.

  2. Local AI on RTX Spark Laptops
    Local AI on RTX Spark Laptops
    A Hands-On WSL2 Laboratory for Inference, Training, and Deployment, CUDA Programming, GPU Diagnostics, Observability, and Debugging with Complete Exercise Transcripts
    Dmitry Vostokov

    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.

  3. JEPA and World Models
    JEPA and World Models
    Teaching Machines to Understand Reality
    Steve Publications

    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.

  4. Build Your Own GPT From Scratch
    Build Your Own GPT From Scratch
    Train a Tiny Language Model on Your Laptop and Chat With It in Your Browser
    Sourabh Somani

    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.

  5. Build an LLM Inference Engine in C++
    Build an LLM Inference Engine in C++
    A Challenge-Driven Guide to Building a CPU-First Inference Engine in C++20
    Hatem M.

    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.

  6. A Hands-On Guide to Fine-Tuning Large Language Models with PyTorch and Hugging Face

    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.

  7. Complete Machine Learning Algorithms
    Complete Machine Learning Algorithms
    Reference Guide With Detailed Formula Explanations
    Krzysztof Kołek

    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.

  8. Machine Learning Engineering

    "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

  9. Simulation-Based Inference: A Practical Guide for Scientists

    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.

  10. AI Engineering Visualized, Volume 4: Production AI
    AI Engineering Visualized, Volume 4: Production AI
    A Visual Guide to Shipping, Scaling and Securing AI Apps
    Prateek Singh

    From one laptop to real users: APIs, workers, SLOs, traces, shadow scoring, rollbacks, cost, routing, security and incidents, drawn and built in Python.

  11. AI Engineering Visualized, Volume 3: RAG & Knowledge Systems
    AI Engineering Visualized, Volume 3: RAG & Knowledge Systems
    A Visual Guide to RAG and Knowledge Systems
    Prateek Singh

    RAG answers you can trace to a source: ingestion, permissions, hybrid search, reranking, evals and regression gates, drawn and built in Python.

  12. AI Engineering Visualized, Volume 2: Agents
    AI Engineering Visualized, Volume 2: Agents
    A Visual Guide to Designing Agents That Plan, Act and Recover
    Prateek Singh

    Agents that plan, act and recover: the harness around the model. Tools, plans, checks, state, approvals and memory, drawn and built in Python.

  13. AI Engineering Visualized, Volume 1: Foundations
    AI Engineering Visualized, Volume 1: Foundations
    A Visual Guide to Building LLM Apps, RAG and Agents
    Prateek Singh

    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.

  14. Deep Learning in Production
    Deep Learning in Production
    Sergios Karagiannakos

    Build, train, deploy, scale and maintain deep learning models. Understand ML infrastructure and MLOps using hands-on examples.

  15. OpenAI GPT For Python Developers
    OpenAI GPT For Python Developers
    The art and science of building AI-powered apps with GPT-4, Whisper, Weaviate, and beyond
    Aymen El Amri

    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!