Generative AI is revolutionizing industries, and Kubernetes has fast become the backbone for deploying and managing these resource-intensive workloads. This book serves as a practical, hands-on guide for MLOps engineers, software developers, Kubernetes administrators, and AI professionals ready to combine AI innovation with the power of cloud native infrastructure. Authors Roland Huß and Daniele Zonca provide a clear road map for training, fine-tuning, deploying, and scaling GenAI models on Kubernetes, addressing challenges like resource optimization, automation, and security along the way.
With actionable insights with real-world examples, readers will learn to tackle the opportunities and complexities of managing GenAI applications in production environments. Whether you're experimenting with large-scale language models or facing the nuances of AI deployment at scale, you'll uncover expertise you need to operationalize this exciting technology effectively.
Learn how to deploy LLMs more efficiently with optimized inference runtimes
Get hands-on with GPU scheduling, including hardware detection and multinode scaling
Monitor and understand LLM-specific metrics like Time to First Token and token throughput
Know when to fine-tune a model or when retrieval augmentation is the better choice
Discover how to evaluate models with standardized benchmarks before committing GPU resources
Learn to run agentic applications with secure tool integration, identity management, and persistent state
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on field guide for turning large language models into reliable production services on Kubernetes, covering everything from GPU scheduling and model formats to inference tuning, evaluation, and agentic applications. Best suited to MLOps engineers, platform/Kubernetes administrators, and developers who already know the cloud native basics and now need to run GenAI workloads at scale.
【Book Arc】
- **Opening (~0%–10%)**: Frames why Kubernetes is the natural home for GenAI workloads—its ability to co-schedule LLMs alongside databases, microservices, and traditional apps—and sketches the historical arc of generative AI from early sequence prediction to the deep learning era.
- **Early (~10%–35%)**: Builds the conceptual and practical foundation: tokenization, embeddings, prompts and system prompts, Transformer attention, and the local-to-cluster jump (memory sizing for 7B vs. 70B models, GPU requirements). Introduces model servers like Hugging Face TGI and the shift from raw Deployments to model server controllers.
- **Middle (~35%–55%)**: Dives into model data plumbing—file formats (GGUF/GGML, ONNX, TensorFlow SavedModel, Safetensors), the trade-offs between self-contained and multi-artifact layouts, and model registries (Hugging Face Hub, MLflow) that index metadata while pointing to external object storage.
- **Late (~55%–85%)**: Moves into production operations: GPU scheduling with the NVIDIA GPU Operator, Dynamic Resource Allocation, sub-GPU and multi-GPU inference, data vs. model parallelism, single-node vs. multinode serving, and runtime tuning (vLLM parameters, startup time, autoscaling, LLM-aware routing).
- **Ending (~85%–100%)**: Closes on the operational frontier—model evaluation and benchmarking before committing GPU resources, compression techniques, and agentic applications with secure tool integration, identity management, and persistent state.
【Key Takeaways】
- **Kubernetes wins by composition, not specialization** (Opening): Unlike Ray or Spark, which are purpose-built for ML, Kubernetes can run LLMs alongside ordinary business workloads, simplifying operations for complex multi-workload applications.
- **Subword tokenization is the quiet enabler of modern LLMs** (Early): Breaking text into subword units (e.g., "regular" + "ization") eliminates the unknown-word problem while keeping vocabularies manageable—a prerequisite for handling rare terms and names.
- **Prompts are more than user input** (Early): System prompts strongly shape model behavior, and prompt engineering—adding context to steer generation—is a first-class skill, not an afterthought.
- **Model size dictates hardware reality** (Early): A 7B model needs roughly 15 GB of GPU memory; a 70B model needs about 140 GB. This single fact drives most deployment topology decisions.
- **Model formats are a compatibility minefield** (Middle): GGUF and Safetensors are the practical choices today; true standardization (à la OCI for containers) is still distant, so format choice ties you to specific runtimes.
- **Registries manage metadata, not weights** (Middle): Production registries live inside the cluster, track versions and governance, and reference external object stores like S3—keeping large model artifacts out of the registry itself.
- **Multinode serving makes deployments stateful** (Late): Distributed inference requires coordination components and changes your topology; MLOps engineers must understand parallelism settings before scaling out.
- **Evaluate before you spend GPU hours** (Ending): Standardized benchmarks and compression trade-offs should be resolved during model development, so inference-time configuration arrives ready to deploy.
【Reading Tips】
- **Skim the history, deep-read the mechanics.** The early GenAI timeline is context; the tokenization, memory-sizing, and format chapters are where decisions get made.
- **Treat the YAML examples as reference, not tutorial.** The LLMInferenceServiceConfig/LLMInferenceService snippets reward readers who already know Kubernetes primitives—pause on the router, scheduler, and parallelism sections.
- **Watch for the recurring "complexity multiplies" theme.** Each new model adds manifests, PVCs, and resource coordination; use this as your mental checklist when planning your own deployments.
- **Bookmark the format comparison and registry sections.** These are the chapters you will return to when choosing runtimes or setting up governance.
- **Read the ending chapters before you provision GPUs.** Evaluation and benchmarking guidance is most valuable before, not after, you commit hardware.
【Coverage Limits】
This guide is synthesized from stratified excerpts covering roughly the first half of the book in detail, with lighter coverage of the production and agentic chapters. Specific chapter titles, benchmark names, and later-chapter examples are not fully represented in the excerpts.
Excerpt 1
49 Kubeflow Model Registry 54 OCI Registry 57 Accessing Model Data in Kubernetes 59 Shared Storage with PersistentVolumes 61 OCI Image for Storing Model Data...
A system prompt can strongly influence the model’s behavior. For an AI assistant, the system prompt might be: “You are a friendly AI assistant named John. Yo...
rformance requirements while main‐ taining a consistent API. Supported backends include TGI’s native CUDA back‐ end (optimized for NVIDIA GPUs), NVIDIA Tenso...
, they reference external object stores like AWS S3 buckets where the actual model data resides. This separation of metadata and model storage ensures greate...
at the runtime starts only when the modelcar is initialized. For setups where sidecars are not enabled, you still can minimize the risk of a race condition b...
ne with more GPUs or switch to pipeline parallelism between nodes, which we explore next. Pipeline parallelism Pipeline parallelism splits the model vertical...
ightly benchmark jobs with instructions. It is not a proper tool but more like a set of scripts that can be used to measure the performance of a specific mod...
he and NVIDIA Inference Xfer Library (NIXL). The claim from LMCache is “Redis for LLMs,” and it implements an API to cache KV blocks. The main benefit applie...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Generative AI on Kubernetes Operationalizing Large Language Models (Roland Huß, Daniele Zonca)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Generative AI on Kubernetes Operationalizing Large Language Models (Roland Huß, Daniele Zonca)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Generative AI on Kubernetes Operationalizing Large Language Models (Roland Huß, Daniele Zonca)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment