bentoml / BentoML

The easiest way to serve AI apps and models - Build Model Inference APIs, Job queues, LLM apps, Multi-model pipelines, and more!
https://bentoml.com
Apache License 2.0
7.17k stars 792 forks source link

Uploading Model to Yatai #2269

Closed mlopezfernandez closed 2 years ago

mlopezfernandez commented 2 years ago

Describe the bug

I have managed to create a model and even dockerize the service with the information specified in the guides. The next step was to use Yatai to serve different models. Currently I have managed to start the service and create a token with which I make the authentication. The problem comes when I try to upload the model that returns the following error:

image

I may have done something wrong. Any ideas?

To Reproduce

After having the model available: image

Login against the yatai service: image

Upload model: image

Environment:

aarnphm commented 2 years ago

cc @yetone

parano commented 2 years ago

Hi @mlopezfernandez - may I ask how/where did you deploy yatai? Is it a local Minikube or a managed K8S service? And did you modify the helm chart for installing Yatai? It looks like Yatai is expecting the Minio installation in the same cluster but failed to query its credentials.

mlopezfernandez commented 2 years ago

Hi @parano I am deploying yatai locally using Minikube. I have not modified the helm chart and as you indicate it is possible that the MinIO installation is missing in the same cluster. If I check the containers in the cluster, the MinIO container is not found as you can see in the image. Would it be necessary to add it manually or would I have to specify something else in the yatai installation. Thanks you for answering.

image

yetone commented 2 years ago

@mlopezfernandez Is the cluster without a load balancer? If you are using minikube, you should start a load balancer manually with this command: sudo minikube tunnel

mlopezfernandez commented 2 years ago

@yetone Repeated the process making the tunnel with administrator permissions and it works correctly. Thank you very much for the help. The next step is to deploy it to AWS using S3.

image

parano commented 2 years ago

Thanks for the feedback @mlopezfernandez - we will improve the documentation to make this steps more clear. What happened was that the MinIO installation can not proceed until there's a working load-balancer in the cluster. You should be able to check the progress by:

kubectl -n yatai-operators logs -f deploy/deployment-yatai-deployment-comp-operator

In the case of Minikube, running minikube tunnel will unblock that process and allow Minio to be installed properly.