Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorAniruddha Choudhury

An insightful journey to MLOps, DevOps, and Machine Learning in the real environment. Key Features ● Extensive knowledge and concept explanation of Kubernetes components with examples. ● An all-in-one knowledge guide to train and deploy ML pipelines using Docker and Kubernetes. ● Includes numerous MLOps projects with access to proven frameworks and the use of deep learning concepts. Description 'Continuous Machine Learning with Kubeflow' introduces you to the modern machine learning infrastructure, which includes Kubernetes and the Kubeflow architecture. This book will explain the fundamentals of deploying various AI/ML use cases with TensorFlow training and serving with Kubernetes and how Kubernetes can help with specific projects from start to finish. This book will help demonstrate how to use Kubeflow components, deploy them in GCP, and serve them in production using real-time data prediction. With Kubeflow KFserving, we'll look at serving techniques, build a computer vision-based user interface in streamlit, and then deploy it to the Google cloud platforms, Kubernetes and Heroku. Next, we also explore how to build Explainable AI for determining fairness and biasness with a What-if tool. Backed with various use-cases, we will learn how to put machine learning into production, including training and serving. After reading this book, you will be able to build your ML projects in the cloud using Kubeflow and the latest technology. In addition, you will gain a solid knowledge of DevOps and MLOps, which will open doors to various job roles in companies. What you will learn ● Get comfortable with the architecture and the orchestration of Kubernetes. ● Learn to containerize and deploy from scratch using Docker and Google Cloud Platform. ● Practice how to develop the Kubeflow Orchestrator pipeline for a TensorFlow model. ● Create AWS SageMaker pipelines, right from training to deployment in production. ● Build the TensorFlow Extended (TFX) pipelin

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical, project-driven guide for DevOps and ML engineers who want to move machine learning models from notebooks to production using Kubernetes, Kubeflow, and TFX, with hands-on examples on Google Cloud Platform and AWS SageMaker. 【Book Arc】 - **Opening (~0%–6%)**: Introduces the core problem—most ML projects fail to reach production—and sets the stage for a DevOps/MLOps approach. It outlines the book’s promise: using Kubernetes and Kubeflow to build, train, and serve ML pipelines reliably. - **Early (~6%–22%)**: Covers Kubernetes fundamentals: pods, deployments, services, namespaces, and stateful containers with persistent volumes. It then walks through setting up the Google Cloud SDK, installing Kubeflow with kfctl, and configuring a Jupyter notebook server with CPU/GPU and PVC storage. - **Early–Middle (~22%–39%)**: Shifts to building a Kubeflow pipeline for a breast cancer classification model. It details containerizing each pipeline step (data extraction, preprocessing, training) with Docker, pushing images to Google Container Registry, and serving the model with KF Serving, including canary and BlueGreen deployment strategies. - **Middle (~39%–56%)**: Expands into a computer vision use case—brain tumor detection. It covers image preprocessing with OpenCV, building a custom KF Serving endpoint for batch predictions, and creating and running pipeline experiments from the Kubeflow UI. It also introduces TensorFlow Extended (TFX) components for a taxi demand prediction problem. - **Late (~56%–61%)**: Focuses on TFX pipeline components in depth: ExampleGen, StatisticsGen, SchemaGen, ExampleValidator, Transform, Tuner, Trainer, Evaluator, and Pusher. It explains how these components handle data validation, training-serving skew, and model evaluation, then shows how to serve the blessed model with TensorFlow Serving. 【Key Takeaways】 - **Kubernetes is the backbone of modern MLOps** (Early): Understanding pods, deployments, and persistent volumes is essential because they provide the scalability, self-healing, and state management that ML workloads need. This foundation is non-negotiable for anyone deploying models at scale. - **Kubeflow turns Kubernetes into an ML platform** (Early): By adding profiles, notebook servers, and pipeline orchestration, Kubeflow gives data scientists a self-service interface while keeping the operational power of Kubernetes underneath. This is the key to bridging the gap between development and operations. - **Containerizing every pipeline step is a best practice** (Early–Middle): The book demonstrates building Docker images for data extraction, preprocessing, and training separately. This modularity makes each step reproducible, testable, and independently scalable—a core principle of reliable MLOps. - **KF Serving supports safe rollout strategies** (Middle): With endpoints for "default" and "canary," you can deploy new model versions with canary or BlueGreen strategies, enabling parallel testing and automatic rollback on failure. This is critical for maintaining service reliability during model updates. - **TFX provides a complete, production-grade pipeline framework** (Late): Components like ExampleValidator and Evaluator automate data anomaly detection, training-serving skew checks, and model fairness analysis. This reduces manual oversight and makes ML pipelines more trustworthy and auditable. - **Auto-scaling is built into the serving layer** (Middle): The book shows how Knative-based serving endpoints can scale automatically based on traffic, ensuring cost efficiency and responsiveness without manual intervention. 【Reading Tips】 - **Skim the Kubernetes fundamentals if you're experienced** (Early): If you already know pods, deployments, and services, jump ahead to the Kubeflow setup and pipeline chapters. The real value is in the project walkthroughs. - **Deep-read the KF Serving and TFX chapters** (Middle–Late): These are the most technically dense and practically useful parts. Pay close attention to the component architecture and how they connect—this is where you'll learn to design your own pipelines. - **Follow along with the code, don't just read** (All): The book is highly hands-on. Set up a GCP account and run the commands yourself, especially the Docker builds and pipeline compilations. This is the fastest way to internalize the workflow. - **Watch for the GCP-specific setup steps** (Early): The gcloud SDK and kfctl installation instructions are detailed but version-specific. If you're using a different cloud provider, focus on the concepts and adapt the commands. 【Coverage Limits】 The excerpts focus on Kubernetes/Kubeflow fundamentals, KF Serving, and TFX pipeline components. They do not cover AWS SageMaker pipeline details, the Streamlit UI deployment, or the What-if Tool for Explainable AI in depth—these topics are mentioned in the book's description but not detailed in the provided material.
Excerpt 1
eploy from scratch using Docker and Google Cloud Platform. ● Practice how to develop the Kubeflow Orchestrator pipeline for a TensorFlow model. ● Create AWS...
View in text
Excerpt 2
the following command: ```bash $ curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google- cloud-sdk-302.0.0-linux-x86_64.tar.gz $ tar zxvf...
View in text
Excerpt 3
this section, we will build a TensorFlow model, and then we will build a distributed model strategy, save the model in the GCP bucket, and push the Tensorboa...
View in text
Excerpt 4
will redirect to a new screen for experiment creation page. Figure 3.21: Pods of autoscale Open the Grafana dashboard. View the Knative Serving Scaling dashb...
View in text
Excerpt 5
ensorFlow Serving and start serving the inference requests. Installation We're preparing to install the TensorFlow Serving using Aptitude since this Colab ru...
View in text
Excerpt 6
"simpletransformers") Figure 6.24: Sweep Configuration Link Let’s break the preceding configuration for the sweep metric method and also we will talk about L...
View in text
Excerpt 7
ot Figure 7.25: Probability plot Figure 7.33: Outlier Table Now we will delete the outliers via the index lists. raw_data = raw_data.drop(raw_data.index[outl...
View in text
Excerpt 8
omputer-vision --num- nodes=2 Figure 8.31: Cluster Creation Connect to cluster by clicking on the Connect button. gcloud container clusters get-credentials s...
View in text
Tags
AI categories
Cloud NativeDevOpsArtificial Intelligence
ISBN: 938989851X
Publish Year: 2021
Language: English
Pages: 552
File Format: PDF
File Size: 10.8 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…