If you're training a machine learning model but aren't sure how to put it into production, this book will get you there. Kubeflow provides a collection of cloud native tools for different stages of a model's lifecycle, from data exploration, feature preparation, and model training to model serving. This guide helps data scientists build production-grade machine learning implementations with Kubeflow and shows data engineers how to make models scalable and reliable.
Using examples throughout the book, authors Holden Karau, Trevor Grant, Ilan Filonenko, Richard Liu, and Boris Lublinsky explain how to use Kubeflow to train and serve your machine learning models on top of Kubernetes in the cloud or in a development environment on-premises.
• Understand Kubeflow's design, core components, and the problems it solves
• Understand the differences between Kubeflow on different cluster types
• Train models using Kubeflow with popular tools including Scikit-learn, TensorFlow, and Apache Spark
• Keep your model up to date with Kubeflow Pipelines
• Understand how to capture model training metadata
• Explore how to extend Kubeflow with additional open source tools
• Use hyperparameter tuning for training
• Learn how to serve your model in production
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】
If you train machine learning models but struggle to get them into production, this book is your practical bridge: it teaches you how to use Kubeflow on Kubernetes to handle everything from data preparation and model training to serving and lifecycle management, making it essential reading for data scientists and data engineers alike.
【Book Arc】
- **Opening (~0%–9%)**: Introduces Kubeflow's purpose and the machine learning lifecycle problems it solves, contrasting it with alternatives like MLflow and internal platforms (e.g., TFX, Michelangelo). It sets expectations for the reader's background and recommends prerequisite reading on Kubernetes and ML.
- **Early (~9%–28%)**: Walks through hands-on setup, covering local deployment options (Minikube, microk8s, MiniKF) and cloud installation via `kfctl`. It includes a first end-to-end MNIST example, showing how to train and deploy a model, and introduces the pipeline concept that ties Kubeflow together.
- **Early (~28%–34%)**: Explains Kubeflow's core design and components, including JupyterHub for experimentation, training operators (TensorFlow, PyTorch, MXNet, etc.), and the crucial role of ML Metadata for tracking artifacts, lineage, and experiment comparisons.
- **Middle (~34%–44%)**: Dives into support components like Istio (service mesh with Envoy, Mixer, Pilot, Galley, Citadel) for traffic management and security, and covers multiuser isolation through profiles, namespaces, and access control.
- **Middle (~44%–47%)**: Focuses on Kubeflow Pipelines in depth, teaching readers how to author pipelines using the Python DSL, compile them to YAML (executed by Argo), and submit runs via the client or UI, with practical examples of passing data between steps.
【Key Takeaways】
- **Kubeflow is a lifecycle platform, not just a training tool** (Early): It covers the entire ML workflow—data prep, training, hyperparameter tuning, validation, and serving—so you can move from lab experiments to production without stitching together disparate tools.
- **Local setup is a viable starting point** (Early): Options like Minikube, microk8s, and MiniKF let you test Kubeflow on your own machine, but be prepared for a 30-minute deployment and ensure your cluster has enough RAM and disk to avoid pod preemption.
- **ML Metadata is the backbone of reproducibility** (Early): Kubeflow tracks inputs, outputs, and lineage for every pipeline step, enabling you to compare experiments, debug workflows, and even identify all models trained on a bad dataset—critical for governance and data retention.
- **Training operators abstract distributed complexity** (Early): Kubeflow provides application-specific controllers for TensorFlow, PyTorch, MXNet, Chainer, and MPI, so you can launch distributed training jobs without manually managing the underlying Kubernetes resources.
- **Istio provides production-grade traffic control** (Middle): With Envoy proxies, Pilot for intelligent routing, and Citadel for service identity, you get A/B testing, canary rollouts, circuit breakers, and mTLS—essential for safely serving models in production.
- **Pipelines are authored in Python, executed by Argo** (Middle): The `kfp` DSL lets you define pipeline steps as Python functions, pass outputs between containers, and compile to YAML; Argo then orchestrates execution, and you can monitor runs via CLI or the web UI.
- **Multiuser isolation is built-in via profiles** (Middle): Administrators create profiles that group namespaces and resources per user, and Jupyter notebooks are the first component fully integrated with this access control, enabling safe team collaboration.
【Reading Tips】
- **Skim the early comparisons** (~0%–9%): The landscape review of MLflow and internal platforms is useful context but not actionable; focus instead on the case studies (MNIST, mailing list, recommender, CT scans) that recur throughout the book.
- **Deep-read the setup chapter** (~9%–28%): Installation is the biggest hurdle; follow the local deployment steps carefully, and don't skip the troubleshooting note about waiting for all pods to be RUNNING before using the UI.
- **Pay close attention to the pipeline DSL examples** (~44%–47%): The code snippets showing how to pass outputs between steps (`task.output`, `task.outputs['output_name']`) are the core skill you'll need; consider typing them out yourself to internalize the syntax.
- **Treat the Istio section as reference material** (Middle): You don't need to memorize every component (Envoy, Mixer, Pilot, Galley, Citadel); just understand what the service mesh does for traffic splitting and security, and return to it when configuring serving.
- **Use the metadata chapter to plan your own tracking** (Early): Think about which artifacts and lineage you'll want to query later; the operations table (e.g., comparing artifacts, showing DAGs) is a checklist for what you should be logging.
【Coverage Limits】
The excerpts focus on setup, design, and pipelines; they do not cover detailed chapters on hyperparameter tuning, model serving, or extending Kubeflow with additional tools, which are mentioned in the table of contents but not included in the sample.
Page 5
w: What It Is and Who It Is For. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Model Development Life Cycle 1 Where Doe...
d by Databricks as an open source machine learning develop‐ ment platform. The architecture of MLflow leverages a lot of the same architectural paradigms as...
training jobs are managed by application-specific control‐ lers, known as operators. These operators extend the Kubernetes APIs to create, man‐ age, and mani...
cution, which returns the links to execution and experiment. Experiments group the executions together. You can also use kfp.compiler.Compiler().compile and...
ebooks is to explore distributed tools. Distributed Tooling Using a distributed platform makes it possible to work with large datasets (beyond a single machi...
24443Z model to neural recognize network handwritten digits name owner version uri training_framework MNIST someone@kubeflow.org v0.0.1 gcs://my-bucket/mnist...
ing a model “to production,” they mean performing inference. As introduced in Chapter 1 and illus‐ trated in Figure 1-1, a complete inference solution seeks...
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
Kubeflow for Machine Learning From Lab to Production (Trevor Grant, Holden Karau, Boris Lublinsky etc.)(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 E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Kubeflow for Machine Learning From Lab to Production (Trevor Grant, Holden Karau, Boris Lublinsky etc.)(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