This message was deleted.
# ask-for-help
s
This message was deleted.
👀 1
🍱 1
t
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 })
then you access it like this:
Copy code
model_ref = bentoml.<framework>.get("model_name:latest")
model_ref.custom_objects['scaler']
h
@Tim Liu I'll give that a try, thanks
@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?