Leanpub Header

Skip to main content

Filters

Deep Learning

Deep Learning books

New to Artificial Intelligence? Read the Artificial Intelligence article

  1. Super Study Guide: Transformers & Large Language Models

    A clear, illustrated guide to large language models, covering key concepts and practical applications. Ideal for projects, interviews, or personal learning.

  2. How AI works
    How AI works
    Krzysztof Kołek

    Learn how AI really works: 184 algorithms, from k-means to Transformers, with every equation explained and two hand-solved examples each.

  3. The Hundred-Page Language Models Book
    The Hundred-Page Language Models Book
    hands-on with PyTorch
    Andriy Burkov

    Master language models through mathematics, illustrations, and code―and build your own from scratch!

  4. The Agentic AI book
    The Agentic AI book
    From Language Models to Multi-Agent Systems
    Dr. Ryan Rad

    It's never been easier to build an AI agent — and never been harder to make one that actually works. This book takes you from language model foundations to production-ready multi-agent systems with the depth to predict failure before it happens, engineer graceful degradation over catastrophic failure, and take absolute architectural ownership. Get the paperback from amazon.

  5. Super Study Guide: Трансформеры и большие языковые модели
    Super Study Guide: Трансформеры и большие языковые модели
    Shervine Amidi, Afshine Amidi, and Виктор Зайцев (Viktor Zaitsev)

    Понятный иллюстрированный путеводитель по ключевым концепциям и практическим применениям больших языковых моделей. Идеально подходит для работы над проектами, подготовки к собеседованиям и самостоятельного обучения.

  6. Forecasting Metrics That Don’t Lie
    Forecasting Metrics That Don’t Lie
    Choosing, Testing, and Monitoring Forecast Metrics for Demand, Inventory, and Risk Decisions
    Valery Manokhin

    A model that wins on MAPE can lose money on the shelf. A 15% accuracy gain can hide a 12% bias. An interval that looks tight can be wrong a third of the time.Forecast metrics are decision instruments, not neutral truth detectors — and most teams are still choosing them by habit. This book shows where MAE, MAPE, sMAPE, WAPE, MASE, RMSSE, CRPS, pinball loss, energy scores, bias measures and cost-based metrics help, and where they quietly mislead.Twelve chapters take you from elicitation and baselines through intermittent demand, probabilistic and hierarchical scoring, and the accuracy–utility gap, to a production evaluation system with monitoring, drift detection, alerting and governance. Every metric arrives with its assumptions, every criticism carries a remedy, and a retrospective Walmart M5 case study runs throughout, with Python listings and reproducibility checks.For demand planners, forecasting data scientists, ML engineers and analytics leads who need evaluation choices they can defend. Measure what matters.

  7. 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.

  8. Super Study Guide: Transformer と大規模言語モデル
    Super Study Guide: Transformer と大規模言語モデル
    Afshine Amidi, Shervine Amidi, and Yoshiyuki Nakai

    大規模言語モデル (LLM) の主要な概念から実践的な応用例まで、簡潔に図解されている学習ガイドです。プロジェクトでの利用、面接対策、個人的な学習にも最適です。

  9. 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.

  10. Mathematics for artificial intelligence VOL-1
    Mathematics for artificial intelligence VOL-1
    Foundation of linear algebra and probality A complete guide for data science machine learning and ai students
    Anshuman Mishra

    Benefits of Studying This Book 1. Deep Conceptual Understanding You will understand why AI algorithms work, not just how to run them. This allows you to innovate, debug, and improve models. 2. Career Advantage Strong mathematical foundations make you stand out in interviews for AI, ML, and DS roles. Many recruiters test candidates on linear algebra and probability skills. 3. Research Readiness Postgraduate students and researchers can directly apply these mathematical tools to design and analyze experiments. 4. Practical AI Skills Python-based implementation examples ensure that you can directly apply mathematical concepts in real-world AI systems. 5. Interdisciplinary Edge Mathematics learned here is not limited to AI — it can be applied in robotics, quantum computing, finance, bioinformatics, and more. How This Book Helps After StudyAfter completing this book, you will be able to:·        Build AI models from scratch, knowing exactly what mathematical operations are happening inside.·        Optimize models for performance using a deep understanding of linear algebra operations.·        Analyze and interpret model predictions probabilistically.·        Handle uncertainty and noise in datasets effectively.·        Implement advanced AI concepts like PCA, SVD, Bayesian inference, and Markov models without relying solely on pre-built libraries.This knowledge will directly help in:·        Academics: Scoring well in AI/ML/DS university courses.·        Industry: Working as an AI engineer, data scientist, ML engineer, or research scientist.·        Competitive Exams: Preparing for GATE, NET, and other AI-related exams where mathematics is heavily tested.·        Research: Publishing papers where mathematical rigor is required to explain new AI techniques. 

  11. Super Study Guide: 트랜스포머와 대형 언어 모델
    Super Study Guide: 트랜스포머와 대형 언어 모델
    Afshine Amidi, Shervine Amidi, and Yongjin Kim

    이 책은 면접 준비, 프로젝트 진행, 또는 순수한 지적 호기심을 위해 대규모 언어 모델의 내부 구조와 작동 원리를 이해하고 싶은 모든 분들을 위한, 그림으로 설명하는 핵심 가이드입니다.

  12. Super Study Guide: Dönüştürücüler ve Büyük Dil Modelleri
    Super Study Guide: Dönüştürücüler ve Büyük Dil Modelleri
    Afshine Amidi, Shervine Amidi, and Merve Ayyüce KIZRAK

    Büyük dil modellerine dair ana kavramları ve pratik uygulamaları kapsayan, açık ve görsellerle desteklenmiş bir rehber. Projeler, mülakatlar ve kişisel öğrenme için idealdir.

  13. LLM Inference Engineering Memory, Kernels, and Production Serving
    LLM Inference Engineering Memory, Kernels, and Production Serving
    Mastering LLM Runtimes, Memory Architectures, Multi-Agent Swarms, and Scalable Serving Infrastructure
    AhmedAdawy

    About the Book Running an LLM is one problem. Understanding its memory footprint, execution phases, and serving behavior is another.LLM Inference Engine Architecture explores the engineering behind language-model inference—from prefill and decode to KV-cache management, attention kernels, quantization, and request scheduling.Written for software engineers and ML engineers with a working knowledge of Python and transformer fundamentals, the book connects mathematical explanations with implementation examples and serving-system design considerations.What You Will ExploreInference fundamentals: Trace the request lifecycle and understand the different computational characteristics of prefill and decode.Memory budgeting: Work through model-weight and KV-cache estimates, including the effects of context length, KV-head count, precision, and concurrent sequences.Attention and memory management: Explore PagedAttention, non-contiguous KV allocation, and the relationship between attention computation and memory access.Quantization: Examine weight and KV-cache precision choices, including FP8 and low-bit weight-quantization approaches.Serving architecture: Study continuous batching, request scheduling, multi-GPU execution, and latency and throughput metrics.Kernel development: Explore CUDA and Triton concepts, kernel fusion, and a quantized matrix-multiplication case study.The book includes numerical examples, reference code, and an educational asynchronous serving simulator. These examples are intended to explain mechanisms and trade-offs—not to replace hardware-specific profiling or production validation.Read the sample to review the mathematical level, coding style, and scope before purchasing.

  14. Mathematics for   artificial Intelligence-ii
    Mathematics for artificial Intelligence-ii
    (statistics and optimization)
    Anshuman Mishra

     Closing Thoughts“Mathematics for Artificial Intelligence – II (Statistics and Optimization)” is more than a textbook—it is a guidebook for mastering the mathematics behind AI. While Volume I laid the foundation and your other book covered data science statistics, this volume pushes students, researchers, and practitioners into the advanced territory where modern AI thrives.Whether you want to become a machine learning engineer, AI researcher, data scientist, or academic scholar, mastering the material in this book will give you the edge to not only use AI tools but also innovate and push the boundaries of artificial intelligence.

  15. Naciro: The New Code of Global Intelligence
    Naciro: The New Code of Global Intelligence
    Why traditional geopolitics fails and how algorithms measure the world of tomorrow.
    Sven Neawolf (Schmidt)

    Geopolitics is too late. Discover how the Naciro Engine uses AI to measure the pulse of nations in real-time, providing a 15-minute recalibration of global truth and power. Check the live data on https://nationfiles.com