Open mzhl1111 opened 4 months ago
/assign @mzhl1111
To track the model artifact from mlflow, we need to follow the following steps
This can be done directly via the mlflow Api (Green), but lead us only to the parent directory of the model artifact(gray). The image is an example of a registered model with Pytorch format.
what we want is the file in the blue file, thus we need the metadata
To locate the model artifact we need to contact the source URL and the filename we get from the metadata.
The following is sklearn format, and it uses different keys in metadata to store the filename of the model artifact
I found the touch model artifact changed from pickled_model.pth
to model.pth
, but now this is hard-coded in our code, because we can only get '/data' from metadata and concat with source URL.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like finalize the design for schema of middle layer that transform outer MR logical model to KFMR MLFlow ref
Discussion needed
model_format
,model_format_version
, do we grab these inform from the artifact or keep it as required user-input for example:Note: the structure inside the map can be different
[x] assessment of mapping table of "MLFlow flavour" compared to "Kserve model format"
auto_logging
.[x] Accessibility of Mlflow download link for downstream usages of the URI (ex, this format "mlflow-artifacts:/0/ebbbb937c23449d695f8146c4a8241ff/artifacts/sklearn-model")
default-artifact-root
to public storage like s3The download URL is can be get directly