Slackbot
01/17/2023, 12:07 PMBo
01/18/2023, 12:36 AMBo
01/18/2023, 12:37 AMkurniarahmatt
01/18/2023, 2:54 AMAaron Pham
01/18/2023, 2:54 AMListObjects
right?kurniarahmatt
01/18/2023, 2:56 AMBo
01/18/2023, 3:01 AMUnboundLocalError: local variable 'local_path' referenced before assignment
Aaron Pham
01/18/2023, 3:01 AMAaron Pham
01/18/2023, 4:05 AMAaron Pham
01/18/2023, 4:06 AMkurniarahmatt
01/18/2023, 5:34 AMerror Traceback (most recent call last):
File "/home/ai_platform/serving/src/create_bentos.py", line 51, in <module>
bento_model = bentoml.mlflow.import_model(model_name, model_uri,
File "/opt/anaconda3/envs/training/lib/python3.8/site-packages/bentoml/_internal/frameworks/mlflow.py", line 222, in import_model
raise BentoMLException(f'artifact "{model_uri}" is not a MLflow model')
bentoml.exceptions.BentoMLException: artifact "<s3://ai-mlflow-artifacts/15/00f407db952e4a24ab060f04f1910572/artifacts>" is not a MLflow model
The error appears when the model has been registered in MLflow Registry via the Python API, but this error does not appear if the model registration is done through the MLflow UI. I'm really confused, what should I do. Thank you.Aaron Pham
01/19/2023, 8:51 AMkurniarahmatt
01/19/2023, 12:03 PMChaoyu
01/19/2023, 6:06 PMexport/impoart
API to export the models/bentos to s3 after it’s saved to local store