Slackbot
06/25/2023, 4:30 PMChaoyu
06/25/2023, 4:48 PMEric Riddoch
06/25/2023, 6:20 PMChaoyu
06/25/2023, 6:24 PMChaoyu
06/25/2023, 6:25 PMEric Riddoch
06/25/2023, 6:59 PMEric Riddoch
06/25/2023, 6:59 PMChaoyu
06/26/2023, 12:03 AMbentoml build
option 2 is to use lower level model store API and do something like this:
with bentoml.models.create(
name,
module=MODULE_NAME,
api_version=API_VERSION,
labels=labels,
custom_objects=custom_objects,
external_modules=external_modules,
metadata=metadata,
context=context,
signatures=signatures,
) as bento_model:
tf.keras.save_model(model, bento_model.path_of(MODEL_FILENAME))
faiss.write_index(index, bento_model.path_of("my.index"))
return bento_modelEric Riddoch
06/26/2023, 7:24 AM