LLM Inference in C++: Building High-Throughput Engines with PagedAttention and CUDA Kernels (High-Performance C++ Engineering)

ANT

4.3
$15.33 $25.55You save $10.22
Format
Digital edition
PDFEPUB
Works on phone, tablet and computer Instant access after checkout Personal-use digital license
About this edition

• Instant access to your digital edition.
• Read anytime, anywhere, on your favorite device.
• No shipping — your book is delivered digitally.
• Simple, secure access after purchase.

Published date April 27, 2026
Author Billie S. Lightner
$15.33 $25.55

Instant digital delivery after purchase.

Download link available immediately after checkout.
In stock
Quantity
Secure checkout — encrypted end to end Free exchange or return within 30 days if the product is defective. Digital formats available instantly
Readers also enjoyed

Discover another great read to add to your digital library.

$15.33 $25.55

Description

Stop Wasting GPU Compute. Build the High-Throughput, Low-Latency AI Infrastructure of 2026.

The VRAM Wall is the biggest bottleneck in modern AI. Standard Python wrappers and out-of-the-box runtimes are fine for prototyping, but at scale, memory fragmentation and Global Interpreter Lock (GIL) overhead will destroy your throughput. LLM Inference in C++ is the definitive engineering manual for bypassing Python entirely and building custom, bare-metal inference engines that maximize hardware utilization.

Focusing on the cutting-edge 2026 landscape, this book bridges the gap between high-level AI concepts and low-level GPU execution. You will learn how to implement enterprise-grade features like PagedAttention, FlashAttention-3, and Continuous Batching directly in C++ and CUDA, unlocking massive performance gains for large-scale language models.
Inside, you will discover: Hardware-Aware Memory Management: Eliminate memory waste by implementing PagedAttention logic and custom allocators to bypass std::malloc overhead. Accelerated Tensor Algebra: Master C++23's std::mdspan and write fused SIMD kernels with AVX-512 to minimize GPU context switching. Custom CUDA Kernels: Write high-speed FlashAttention-3, LayerNorm, and RMSNorm kernels while managing CUDA streams for maximum GPU occupancy. The Cost Killer (Quantization): Slash VRAM requirements with bit-level manipulation for 4-bit (AWQ) and 8-bit (FP8) inference using NVIDIA Tensor Cores. Distributed & Speculative Execution: Scale across clusters using zero-copy NCCL/RDMA interconnects and implement Draft Models to accelerate massive architectures. The Production Serving Layer: Build lock-free C++ request queues for continuous batching and track P99 Time to First Token (TTFT) at the systems level. THE IMPLEMENTATION VAULT (Appendix)

Built for the infrastructure engineer in the trenches, the Appendix provides immediate, battle-tested utility: The 15-Point Production-Ready Checklist: Your mandatory safety and performance audit before deploying any custom engine. Latency vs. Throughput Reference Table: The ultimate cheat sheet for balancing batch sizes against user wait times. Troubleshooting Guide: Direct solutions for the top 10 most common and devastating CUDA and C++ memory errors. Don't let inefficient software architecture throttle your hardware. Master C++ LLM inference and build the fastest, most cost-effective AI engines in the industry.

Specifications

FormatEPUB, PDF
LanguageEnglish

Frequently asked

Do I need an account to download?

No. After purchase, you can access your ebook directly from the order confirmation or download page.

What if a copy arrives damaged?

Contact us and we’ll help you access the file or provide a replacement download if needed.

Reviews

4.3 0
5★84%4★11%3★3%2★1%1★1%
J Joana K. Verified
★★★★★The diagrams do the teachingSeeing the concept drawn before the notation appears changed everything for me.
M Marcus T. Verified
★★★★★A set text for my classThe problem sets are graded properly and the solutions are complete.
See all reviews

Customers also downloaded