Pierre Lecerf
09/25/2024, 1:31 PM2024-09-25T15:17:53+0200 [WARNING] [cli] `bentoml.models.get()` as the class attribute is not recommended because it requires the model to exist at import time. Use `_model_ref = BentoModel('my_model:pmknlqd3icvkz7uz')` instead.
However the documentation provides an example with bentoml.models.get (which seems more in-line with other models APIs) : https://docs.bentoml.com/en/latest/guides/model-store.html#retrieve-a-model
Which is it?
Is there a nuance that needs to be taken into account?Chaoyu
09/25/2024, 2:49 PMFrost Ming
09/25/2024, 11:21 PMPierre Lecerf
09/26/2024, 7:19 AM