kserve / kserve

Standardized Serverless ML Inference Platform on Kubernetes
https://kserve.github.io/website/
Apache License 2.0
3.47k stars 1.03k forks source link

Proposal: Create KFServing Python SDK #160

Closed yuzisun closed 5 years ago

yuzisun commented 5 years ago

/kind feature

CUJ

Describe the solution you'd like

rakelkar commented 5 years ago

Might be worth looking to see if this can align with something like MLFlow? @aronchick thoughts?

rakelkar commented 5 years ago

MLFlow has the concept of flavors for frameworks and talks about this:

MLflow Models: A model packaging format and tools that let you easily deploy the same model (from any ML library) to batch and real-time scoring on platforms such as Docker, Apache Spark, Azure ML and AWS SageMaker.

Would be cool to have KFServing on that list :-) and not require data scientists to learn something different... also as I was trying to debug stuff, would be nice to have this SDK/CLI have the smarts to pull out logs from the right places so that users dont need to Kubernetes...

rakelkar commented 5 years ago

Opened related issue in MLFlow to get feedback: https://github.com/mlflow/mlflow/issues/1465

jinchihe commented 5 years ago

@yuzisun Great idea! Recently I created a PR to deploy kfservice in the kubeflow Fairing. If we have kfserving, that's better to intergrate kfserving with kubeflow pipeline, fairing, and MLFlow as @rakelkar mentioned above.

I'm interested in doing this :-)

/assign @jinchihe

jinchihe commented 5 years ago

Followed instruction from @yuzisun, I generated the openapi model and swagger.json by using openapi-gen and generate KFServing python sdk for the python object models using swagger-codegen.

Will have a short discussion with @yuzisun before taking next steps, seems Dan has done some preliminary work, need to confirm more with Dan, thanks.

jinchihe commented 5 years ago

Just discussed with @yuzisun, I will do more tesing for the python SDK, and the deliver a PR for reviewing later, thanks.

ellistarn commented 5 years ago

/area infrastructure-feature