You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to avoid #1037 and #1065, I override the __init__ function of BentoService to download and initialize the required model files from an external service(MLflow). In this case, I don't need to pack any artifacts, but I found a problem in YataiService that doesn't allow this case. The current YataiService includes the assumption that BentoService must always have artifacts.
# test_bentoservice.pyimportpandasaspdfrombentomlimportenv, artifacts, api, BentoServicefrombentoml.adaptersimportDataframeInput@env(infer_pip_packages=True)classTestBentoService(BentoService):
def__init__(self):
# Download model files from MLflow and Initialize thempass@api(input=DataframeInput(), batch=True)defpredict(self, df: pd.DataFrame):
returnNone# We can predict something with model files here.
Describe the bug
In order to avoid #1037 and #1065, I override the
__init__
function of BentoService to download and initialize the required model files from an external service(MLflow). In this case, I don't need to pack any artifacts, but I found a problem in YataiService that doesn't allow this case. The current YataiService includes the assumption that BentoService must always have artifacts.To Reproduce
Expected behavior
YataiService should show even BentoService without artifacts.
Screenshots/Logs
Environment:
Additional context
The text was updated successfully, but these errors were encountered: