Leanpub Header

Skip to main content

Filters

Category: "Large language models"

Large language models

New to Artificial Intelligence? Read the Artificial Intelligence article

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

  2. Context Driven Development
    Context Driven Development
    Beyond Prompt Engineering: A Systematic Approach to Building Software with AI Agents
    Luca Sepe

    Stop asking one giant prompt to carry your whole software system. Context Driven Development teaches you how to give AI coding agents explicit requirements, architecture decisions, constraints, tasks, and verification loops so they can work inside a reliable engineering environment.

  3. Agentic AI Explained
    Agentic AI Explained
    From Neural Networks to Autonomous Agents: How It Works, How to Build It, and What It Means
    Steve Publications

    Agentic AI is everywhere, but what does it actually mean? This book cuts through the hype and explains how AI agents work, how they are built and where they can go wrong. Starting from the basics, it gives you a clear, practical understanding of the technology and what it takes to trust an agent in the real world.

  4. Guardrails for AI Agents
    Guardrails for AI Agents
    Building agents that act safely in production, with Python, LangGraph and LLM
    Sameer Shukla

    Nine small LangGraph agents, each adding one guardrail: PII, financial actions, risk routing, human approval, memory, retrieval, plans, output and cumulative limits. Plain Python, fully tested, no theory.

  5. The LLM Cost Engineering Handbook
    The LLM Cost Engineering Handbook
    Measure, Model, and Cut AI Spend Without Losing Quality
    Nix

    This book shows you how.What you'll be able to do:Say what one resolved ticket, generated report, or active customer actually costs youFind where the money goes in a real system, in about an hourCut your bill by 40% to 70% without making the product worse, and prove it didn'tStop a code change from tripling your costs before it shipsWalk into a budget meeting with a number and an argument instead of an apology What's inside: sixteen chapters. Measure what you're paying for. Apply six levers, ordered by how much they pay back. Then keep the savings from creeping away, which is the part that decides whether any of this survives the year.

  6. The Beginner's Guide to AI
    The Beginner's Guide to AI
    Understanding Artificial Intelligence, How LLMs Work, What They Can Do, Their Limitations, and How to Use Them Effectively
    Steve Publications

    AI is changing how we work, learn and live, but understanding it does not have to be complicated. This practical guide explains how modern AI and LLMs work, what they can do, where they fall short and how to use them effectively without the hype.

  7. Claude Code & AI Coding Agents Practical Workbook
    Claude Code & AI Coding Agents Practical Workbook
    50 Real-World Workflows, Command Cheatsheets, Prompt Templates, Debugging Checklists & Hands-On Exercises for Developers
    Dr. Mapesho Chibata

    Stop guessing at prompts. This visual workbook gives you 50 ready-to-run workflows, command cheatsheets, and debugging checklists for Claude Code, Cursor, and GitHub Copilot — so you can open any page and immediately know what to type.

  8. Jev: The Definitive Guide to System One AI in TypeScript
    Jev: The Definitive Guide to System One AI in TypeScript
    Building Sub-100ms Decision Engines, Calibrated Guardrails, and Two-Speed Architectures with Jev and Generative LLMs
    Edgar Milvus
    No Description Available
  9. Frontier AI Safety, Mechanistic Interpretability & Alignment Engineering
    Frontier AI Safety, Mechanistic Interpretability & Alignment Engineering
    Inspecting Neural Circuits, Steering Vectors, Autonomous Capability Evals, and Scalable Oversight for Superintelligent Systems.
    Edgar Milvus
    No Description Available
  10. Engineering Autonomous AI Agents
    Engineering Autonomous AI Agents
    Architecture, Tool Use, Security and Operations
    Steve Publications

    Build AI agents that actually hold up in production. This practical guide covers agent architecture, tool use, multi-agent systems, security, reliability, observability and operations, with working code throughout. Learn how to build agents that are dependable, cost-aware and ready for the real world.

  11. Kubernetes & Cloud-Native Engineering
    Kubernetes & Cloud-Native Engineering
    Building, Deploying, and Operating Production-Grade Systems
    AhmedAdawy

    ​A system-first engineering guide to building, deploying, operating, and securing production-grade Kubernetes clusters, cloud-native platforms, and AI inference workloads.

  12. Irreplaceable
    Irreplaceable
    Learn the craft of working with AI, and your value goes up, not away.
    Duncan McTavish

    Written for people who never asked to become AI users and now are. Not a tour of the technology, but a practical guide to working with it well — the habits that make good results repeatable, and the judgement to know when to check.

  13. Mastering PyTorch and Lightning
    Mastering PyTorch and Lightning
    A Step-by-Step Practical Guide with QA
    Aghiles Kebaili

    Master deep learning with PyTorch & Lightning. Core concepts, practical Q&A, and production-ready code with a full companion GitHub repository.

  14. Building Hallucination-Resistant RAG and AI Agents
    Building Hallucination-Resistant RAG and AI Agents
    A Complete Guide to Reliable, Evidence-Grounded AI Systems
    Steve Publications

    AI can sound certain even when it is completely wrong. This book takes a practical approach to building RAG systems and AI agents that ground answers in evidence, verify what they generate and know when to stop. Learn how to make AI more reliable in the places where getting it wrong really matters.

  15. Distilling Intelligence
    Distilling Intelligence
    Industrial-Scale AI Model Distillation and API Security
    Steve Publications

    AI models do not have to be huge, slow or expensive. Distilling Intelligence explores how to build smaller models that perform at scale, then secure the APIs that serve them. From compression and distributed serving to extraction attacks, observability and incident response, this book covers what it takes to run AI reliably in the real world.