A clear, illustrated guide to large language models, covering key concepts and practical applications. Ideal for projects, interviews, or personal learning.
Master language models through mathematics, illustrations, and code―and build your own from scratch!
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.
Revised for PyTorch 2.x! In 2019, I published a PyTorch tutorial on Towards Data Science and I was amazed by the reaction from the readers! Their feedback motivated me to write this book to help beginners start their journey into Deep Learning and PyTorch. I hope you enjoy reading this book as much as I enjoy writing it.
Este libro es una guía concisa e ilustrada para cualquiera que desee comprender el funcionamiento interno de los Grandes Modelos de Lenguaje, ya sea de cara a realizar entrevistas, proyectos o para satisfacer su curiosidad.
Build GPT-2, Llama 3, and DeepSeek from scratch in PyTorch. Every chapter has runnable end-to-end code and loads real pretrained weights. Goes well past where most LLM tutorials stop.
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.
A Sample Learning Journey with This Book Imagine a final-year MCA student who needs to select a project topic.· After Chapter-3, they can identify a novel, research-worthy problem.· By Chapter-5, they will know how to collect, clean, and preprocess relevant data.· Using Chapter-6 and 8, they can implement a fair and unbiased ML model.· Through Chapter-9 and 10, they can interpret results with statistical confidence.· By Chapter-11, they will have the skills to write a publication-ready paper.In short, the book transforms a student project into publishable research.
Master deep learning with PyTorch & Lightning. Core concepts, practical Q&A, and production-ready code with a full companion GitHub repository.
This book is a quick foray into the world of deep learning-based computer vision and abnormal equipment sound detection. The readers are introduced to the ease with which powerful equipment and product quality monitoring solutions can be built using sound and visual data.
From a single neuron to transformer-based LLMs in production — the deep-learning, NLP, and shipping capstone of the Data Science, End to End series, derived from first principles in Python.
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.
Понятный иллюстрированный путеводитель по ключевым концепциям и практическим применениям больших языковых моделей. Идеально подходит для работы над проектами, подготовки к собеседованиям и самостоятельного обучения.
هذا الكتاب هو دليل مختصر وموضّح بالرسوم لأي شخص يرغب في فهم الآلية الداخلية للنماذج اللغوية الضخمة، سواء في سياق المقابلات أو المشاريع أو بدافع الفضول الشخصي.
Stop building brittle LLM wrappers and start engineering production-grade autonomous agent networks.This hands-on guide takes you from fundamental Transformer mechanics to orchestrating multi-agent architectures under Kubernetes with Python. Step beyond basic prototypes to master graph-based orchestration, grammar-constrained outputs, LoRA fine-tuning, RAG, and MCP. Learn to navigate critical production trade-offs—model routing, quantization, cost control, prompt injection security, and human-in-the-loop monitoring—to deploy resilient, enterprise-ready AI systems.