Slackbot
10/04/2022, 4:56 PMBo
10/04/2022, 7:21 PMSean
10/04/2022, 8:01 PMspam_detection_runner = bentoml.Runner(SpamDetectionRunnable, models=[bento_model])
Terry Kong
10/21/2022, 6:53 PM# this did not save the model into the bento
spam_detection_runner = bentoml.Runner(SpamDetectionRunnable,
runnable_init_params={"model": bento_model},
)
# but this did
spam_detection_runner = bentoml.Runner(SpamDetectionRunnable,
runnable_init_params={"model": bento_model},
models=[bento_model],
)
Oddly, the former doesn’t error when building the bento, but when I try running the service inside the built docker container, it complains the model wasn’t packaged in it