if they're applicable to a particular model, you can use the "custom_objects" parameter when saving the main model:
bentoml.<framework>.save_model("model_name", model,
custom_objects={ "scaler": scaler })
@Tim Liu can we add more custom objects after saving a model initially? For example, if I were to save the scaler and then later on save try this:
bentoml.<framework>.save_model("model_name", model,
custom_objects={ "pca": pca })
will it override all of the previous entries in custom objects? Or is there another way to add to custom objects without needing to use the save_model method?