For testing purposes I am using my local file storage for storing MLflow artifact folder and not a remote storage such as S3 or GS. For that im creating a PVC and reference it to the modelUri parameter.
The hostPath is pointing to the MLflow folder which contains the artifacts MLmodel, model.pkl, etc. However, the container iris-model is throwing the following error:
Executing before-run script
---> Creating environment with Conda...
INFO:root:Copying contents of /mnt/models to local
INFO:root:Reading MLmodel file
Traceback (most recent call last):
File "./conda_env_create.py", line 153, in <module>
main(args)
File "./conda_env_create.py", line 148, in main
setup_env(model_folder)
File "./conda_env_create.py", line 46, in setup_env
mlmodel = read_mlmodel(model_folder)
File "./conda_env_create.py", line 75, in read_mlmodel
return _read_yaml(mlmodel_path)
File "./conda_env_create.py", line 91, in _read_yaml
with open(file_path, "r") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/models/MLmodel'
The iris-model-model-initializer container completes, but did not transfer anything:
NOTICE: Config file "/.rclone.conf" not found - using defaults
INFO : There was nothing to transfer
INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 0.0s
For testing purposes I am using my local file storage for storing MLflow artifact folder and not a remote storage such as S3 or GS. For that im creating a PVC and reference it to the
modelUri
parameter.My yaml looks as follows:
The
hostPath
is pointing to the MLflow folder which contains the artifactsMLmodel
,model.pkl
, etc. However, the containeriris-model
is throwing the following error:The
iris-model-model-initializer
container completes, but did not transfer anything:I would appreciate support to get this to work.