modelmesh-serving icon indicating copy to clipboard operation
modelmesh-serving copied to clipboard

How to load model from .tar.gz/.tgz?

Open Thijsvandepoll opened this issue 3 years ago • 4 comments

Hi all, I am new to KServe and Modelmesh Serving and try to get to know the software. I am trying to combine Kubeflow with Modelmesh Serving by using the following pipeline in Kubeflow:

  1. Preprocess data
  2. Train model
  3. Deploy model on Modelmesh

With Kubeflow the output of each of the steps is a .tgz file having the model data that Modelmesh requires. The problem is that serving the model is not working if you point directly to the .tgz file. I am guessing that Modelmesh cannot handle that format. The problem, however, is that I have a full repository of models already in s3 which are compressed in tar.gz.

It would be very useful for me if Modelmesh can handle these extensions. I am not sure if I am missing something, and that it should actually work. Does anyone know if this is possible currently?

Note: I can see in KServe's documentation (https://kserve.github.io/website/0.8/modelserving/storage/uri/uri/#train-and-freeze-the-model_1) that it would be possible to do that.

Thijsvandepoll avatar Sep 06 '22 06:09 Thijsvandepoll

Hi @Thijsvandepoll, this is actually something we had intended to add support for, there is a related in-progress PR here.

In general the plan is to unify the storage handling between modelmesh-serving and single-model kserve. Have a common library and configuration shared by both.

njhill avatar Sep 12 '22 18:09 njhill

Ah that's great @njhill! I will be watching the PR then. Any idea on when this will be available?

Thijsvandepoll avatar Sep 13 '22 09:09 Thijsvandepoll

@Thijsvandepoll there isn't any ETA that I'm aware of at the moment, any help would be welcome though!

njhill avatar Sep 13 '22 16:09 njhill

Yeah I would be happy to help! I need to get to know the project a bit better though as I am new to it. I will spend some time on it.

Thijsvandepoll avatar Sep 13 '22 19:09 Thijsvandepoll