SlideShare a Scribd company logo
Kubeflow Pipelines component
for KFServing
Animesh Singh, Paul Van Eck
Kubeflow Pipelines
•Pre-built components: Just provide params or code snippets
(e.g. training code)
•Create your own components from code or libraries
•Use any runtime, framework, data types
•Attach k8s objects - volumes, secrets
Containerized implementations of ML Tasks
•Specified via Python DSL
•Inferred from data dependencies on input/output
Specification of the sequence of steps
•A “Run” = Pipeline invoked w/ specific parameters
•Can be cloned with different parameters
Input Parameters
•Invoke a single run or create a recurring scheduled pipeline
Schedules
KFServing Component
● Allows usage of KFServing
within a Kubeflow pipeline.
● Uses KFServing Python
package (v0.5.1) and v1beta1
API.
● Can easily deploy
InferenceServices and perform
canary rollouts.
● Supports passing in raw
InferenceService YAML
● Source Code
Sample Usage
import kfp
kfserving_op =
kfp.components.load_component_from_url('.../kfserving/component.yaml')
@dsl.pipeline(
name='KFServing Pipeline',
description='Pipeline for KFServing.'
)
def kfserving_pipeline():
kfserving_op(
action='apply',
model_name='tf-sample',
model_uri='gs://kfserving-samples/models/tensorflow/flowers',
framework='tensorflow',
)
kfp.Client().create_run_from_pipeline_func(
kfserving_pipeline,
arguments={}
)
Deploy a TensorFlow model
Kubeflow Pipelines can train, deploy and serve
5
Open Source Dojo
More use cases!
Analysis
● Pipeline components rely on passing in
specific args to some CLI program.
● The primary support is for predictors with
limited customization options.
● KFServing supports many PodSpec fields
that aren’t first-class component
arguments.
● Transformers and explainers are also not
first class.
Analysis
● Users can still deploy InferenceServices
with full customizability by passing the
component their YAML definitions.
○ All PodSpec fields.
○ Transformers/Explainers.
○ Specific annotations/labels.
● This is the most flexible format.
○ Perhaps this should be the recommended way?
○ Offers format consistency compared with
kubectl/KFServing interactions.
isvc_yaml = '''
apiVersion: serving.kubeflow.org/v1beta1
kind: InferenceService
metadata:
name: torchserve-transformer
spec:
transformer:
containers:
- image: kfserving/torchserve-image-transformer:latest
name: kfserving-container
predictor:
nodeSelector:
disktype: ssd
pytorch:
storageUri: gs://torchserve/image_classifier
'''
kfserving_op(
action='apply',
inferenceservice_yaml=isvc_yaml
)
KFServing-Pipeline Demo

More Related Content

PDF
End to end Machine Learning using Kubeflow - Build, Train, Deploy and Manage
Animesh Singh
 
PDF
Kubeflow Pipelines (with Tekton)
Animesh Singh
 
PDF
Advanced Model Inferencing leveraging Kubeflow Serving, KNative and Istio
Animesh Singh
 
PPSX
Docker Kubernetes Istio
Araf Karsh Hamid
 
PDF
MLOps with Kubeflow
Saurabh Kaushik
 
PDF
Kubeflow
Karane Vieira
 
PPTX
IBM RedHat OCP Vs xKS.pptx
ssuser666667
 
PDF
KFServing - Serverless Model Inferencing
Animesh Singh
 
End to end Machine Learning using Kubeflow - Build, Train, Deploy and Manage
Animesh Singh
 
Kubeflow Pipelines (with Tekton)
Animesh Singh
 
Advanced Model Inferencing leveraging Kubeflow Serving, KNative and Istio
Animesh Singh
 
Docker Kubernetes Istio
Araf Karsh Hamid
 
MLOps with Kubeflow
Saurabh Kaushik
 
Kubeflow
Karane Vieira
 
IBM RedHat OCP Vs xKS.pptx
ssuser666667
 
KFServing - Serverless Model Inferencing
Animesh Singh
 

What's hot (20)

PDF
Machine Learning using Kubeflow and Kubernetes
Arun Gupta
 
PDF
MLOps - Build pipelines with Tensor Flow Extended & Kubeflow
Jan Kirenz
 
PDF
Introduction to Kubernetes Workshop
Bob Killen
 
PPTX
OpenTelemetry For Architects
Kevin Brockhoff
 
PDF
Kubernetes architecture
Janakiram MSV
 
PDF
Ml ops intro session
Avinash Patil
 
PDF
Kubernetes dealing with storage and persistence
Janakiram MSV
 
PDF
Introducing Kubeflow (w. Special Guests Tensorflow and Apache Spark)
DataWorks Summit
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
GitOps 101 Presentation.pdf
ssuser31375f
 
PDF
How to Utilize MLflow and Kubernetes to Build an Enterprise ML Platform
Databricks
 
PDF
(Draft) Kubernetes - A Comprehensive Overview
Bob Killen
 
PPTX
Kubernetes presentation
GauranG Bajpai
 
PDF
CI:CD in Lightspeed with kubernetes and argo cd
Billy Yuen
 
PPTX
CI/CD trên Cloud OpenStack tại Viettel Networks | Hà Minh Công, Phạm Tường Chiến
Vietnam Open Infrastructure User Group
 
PPTX
From Data Science to MLOps
Carl W. Handlin
 
PPTX
An Introduction to Confluent Cloud: Apache Kafka as a Service
confluent
 
PDF
Kubernetes a comprehensive overview
Gabriel Carro
 
PPTX
OpenTelemetry For Operators
Kevin Brockhoff
 
PPT
presentation on Docker
Virendra Ruhela
 
Machine Learning using Kubeflow and Kubernetes
Arun Gupta
 
MLOps - Build pipelines with Tensor Flow Extended & Kubeflow
Jan Kirenz
 
Introduction to Kubernetes Workshop
Bob Killen
 
OpenTelemetry For Architects
Kevin Brockhoff
 
Kubernetes architecture
Janakiram MSV
 
Ml ops intro session
Avinash Patil
 
Kubernetes dealing with storage and persistence
Janakiram MSV
 
Introducing Kubeflow (w. Special Guests Tensorflow and Apache Spark)
DataWorks Summit
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
GitOps 101 Presentation.pdf
ssuser31375f
 
How to Utilize MLflow and Kubernetes to Build an Enterprise ML Platform
Databricks
 
(Draft) Kubernetes - A Comprehensive Overview
Bob Killen
 
Kubernetes presentation
GauranG Bajpai
 
CI:CD in Lightspeed with kubernetes and argo cd
Billy Yuen
 
CI/CD trên Cloud OpenStack tại Viettel Networks | Hà Minh Công, Phạm Tường Chiến
Vietnam Open Infrastructure User Group
 
From Data Science to MLOps
Carl W. Handlin
 
An Introduction to Confluent Cloud: Apache Kafka as a Service
confluent
 
Kubernetes a comprehensive overview
Gabriel Carro
 
OpenTelemetry For Operators
Kevin Brockhoff
 
presentation on Docker
Virendra Ruhela
 
Ad

Similar to KFServing and Kubeflow Pipelines (6)

PPTX
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
CodeOps Technologies LLP
 
PDF
Intro - End to end ML with Kubeflow @ SignalConf 2018
Holden Karau
 
PDF
Vertex AI Presentation
Knoldus Inc.
 
PPTX
GDG Cloud meetup november 2019 - kubeflow pipelines
Sven Degroote
 
PDF
running Tensorflow in Production
Matthias Feys
 
PDF
Migrating Apache Spark ML Jobs to Spark + Tensorflow on Kubeflow
Databricks
 
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
CodeOps Technologies LLP
 
Intro - End to end ML with Kubeflow @ SignalConf 2018
Holden Karau
 
Vertex AI Presentation
Knoldus Inc.
 
GDG Cloud meetup november 2019 - kubeflow pipelines
Sven Degroote
 
running Tensorflow in Production
Matthias Feys
 
Migrating Apache Spark ML Jobs to Spark + Tensorflow on Kubeflow
Databricks
 
Ad

More from Animesh Singh (20)

PDF
Machine Learning Exchange (MLX)
Animesh Singh
 
PDF
KFServing Payload Logging for Trusted AI
Animesh Singh
 
PDF
KFServing and Feast
Animesh Singh
 
PDF
Kubeflow Distributed Training and HPO
Animesh Singh
 
PPTX
Defend against adversarial AI using Adversarial Robustness Toolbox
Animesh Singh
 
PDF
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
Animesh Singh
 
PDF
Trusted, Transparent and Fair AI using Open Source
Animesh Singh
 
PDF
AIF360 - Trusted and Fair AI
Animesh Singh
 
PDF
AI & Machine Learning Pipelines with Knative
Animesh Singh
 
PDF
Fabric for Deep Learning
Animesh Singh
 
PDF
Microservices, Kubernetes and Istio - A Great Fit!
Animesh Singh
 
PDF
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Animesh Singh
 
PDF
How to build an event-driven, polyglot serverless microservices framework on ...
Animesh Singh
 
PDF
As a Service: Cloud Foundry on OpenStack - Lessons Learnt
Animesh Singh
 
PDF
Introducing Cloud Native, Event Driven, Serverless, Micrsoservices Framework ...
Animesh Singh
 
PDF
Finding and-organizing Great Cloud Foundry User Groups
Animesh Singh
 
PDF
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
Animesh Singh
 
PDF
Building a PaaS Platform like Bluemix on OpenStack
Animesh Singh
 
PDF
Cloud foundry Docker Openstack - Leading Open Source Triumvirate
Animesh Singh
 
PDF
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
Animesh Singh
 
Machine Learning Exchange (MLX)
Animesh Singh
 
KFServing Payload Logging for Trusted AI
Animesh Singh
 
KFServing and Feast
Animesh Singh
 
Kubeflow Distributed Training and HPO
Animesh Singh
 
Defend against adversarial AI using Adversarial Robustness Toolbox
Animesh Singh
 
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
Animesh Singh
 
Trusted, Transparent and Fair AI using Open Source
Animesh Singh
 
AIF360 - Trusted and Fair AI
Animesh Singh
 
AI & Machine Learning Pipelines with Knative
Animesh Singh
 
Fabric for Deep Learning
Animesh Singh
 
Microservices, Kubernetes and Istio - A Great Fit!
Animesh Singh
 
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Animesh Singh
 
How to build an event-driven, polyglot serverless microservices framework on ...
Animesh Singh
 
As a Service: Cloud Foundry on OpenStack - Lessons Learnt
Animesh Singh
 
Introducing Cloud Native, Event Driven, Serverless, Micrsoservices Framework ...
Animesh Singh
 
Finding and-organizing Great Cloud Foundry User Groups
Animesh Singh
 
CAPS: What's best for deploying and managing OpenStack? Chef vs. Ansible vs. ...
Animesh Singh
 
Building a PaaS Platform like Bluemix on OpenStack
Animesh Singh
 
Cloud foundry Docker Openstack - Leading Open Source Triumvirate
Animesh Singh
 
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
Animesh Singh
 

Recently uploaded (20)

PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
The Future of Artificial Intelligence (AI)
Mukul
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Doc9.....................................
SofiaCollazos
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 

KFServing and Kubeflow Pipelines

  • 1. Kubeflow Pipelines component for KFServing Animesh Singh, Paul Van Eck
  • 2. Kubeflow Pipelines •Pre-built components: Just provide params or code snippets (e.g. training code) •Create your own components from code or libraries •Use any runtime, framework, data types •Attach k8s objects - volumes, secrets Containerized implementations of ML Tasks •Specified via Python DSL •Inferred from data dependencies on input/output Specification of the sequence of steps •A “Run” = Pipeline invoked w/ specific parameters •Can be cloned with different parameters Input Parameters •Invoke a single run or create a recurring scheduled pipeline Schedules
  • 3. KFServing Component ● Allows usage of KFServing within a Kubeflow pipeline. ● Uses KFServing Python package (v0.5.1) and v1beta1 API. ● Can easily deploy InferenceServices and perform canary rollouts. ● Supports passing in raw InferenceService YAML ● Source Code
  • 4. Sample Usage import kfp kfserving_op = kfp.components.load_component_from_url('.../kfserving/component.yaml') @dsl.pipeline( name='KFServing Pipeline', description='Pipeline for KFServing.' ) def kfserving_pipeline(): kfserving_op( action='apply', model_name='tf-sample', model_uri='gs://kfserving-samples/models/tensorflow/flowers', framework='tensorflow', ) kfp.Client().create_run_from_pipeline_func( kfserving_pipeline, arguments={} ) Deploy a TensorFlow model
  • 5. Kubeflow Pipelines can train, deploy and serve 5 Open Source Dojo
  • 7. Analysis ● Pipeline components rely on passing in specific args to some CLI program. ● The primary support is for predictors with limited customization options. ● KFServing supports many PodSpec fields that aren’t first-class component arguments. ● Transformers and explainers are also not first class.
  • 8. Analysis ● Users can still deploy InferenceServices with full customizability by passing the component their YAML definitions. ○ All PodSpec fields. ○ Transformers/Explainers. ○ Specific annotations/labels. ● This is the most flexible format. ○ Perhaps this should be the recommended way? ○ Offers format consistency compared with kubectl/KFServing interactions. isvc_yaml = ''' apiVersion: serving.kubeflow.org/v1beta1 kind: InferenceService metadata: name: torchserve-transformer spec: transformer: containers: - image: kfserving/torchserve-image-transformer:latest name: kfserving-container predictor: nodeSelector: disktype: ssd pytorch: storageUri: gs://torchserve/image_classifier ''' kfserving_op( action='apply', inferenceservice_yaml=isvc_yaml )