Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1044102: Support load_model(mode_name, model_version) in registry.Registry #86

Closed
everpeace opened this issue Feb 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@everpeace
Copy link

Hi, We have usecase that we predict model in developer's local environment.
So, we would like to load registered model in snowflake model registry to memory in local environment.

Although it's deprecated status, registry.model_registry.ModelRegistry has load_model(model_name: str, model_version: str) to do this. However,registry.Registry, successor of ModelRegistry, seems not to have such functionality.

We'd be happy if registry.Registry supports load_model functionality, too.

@github-actions github-actions bot changed the title Support load_model(mode_name, model_version) in registry.Registry SNOW-1044102: Support load_model(mode_name, model_version) in registry.Registry Feb 6, 2024
@sfc-gh-sdas
Copy link
Collaborator

Thanks for your request.

Main job of load_model() is to rehydrate the model in memory from serialized bytes. The challenge has been, with this API, that user needs to use exact same python, and other library version (eg xgboost or scikit-learn etc) between log_model() and load_model(). A different package/python version can not deserialize it correctly and thus it has been very error-prone. It is hard for us to ensure users get a seamless API that works. This is the main reason behind not adding this functionality to new Registry.

I was wondering, if you could explain more on your usecase where data cannot be uploaded to Snowflake.

@sfc-gh-wzhao sfc-gh-wzhao added the enhancement New feature or request label Mar 20, 2024
@sfc-gh-sdas
Copy link
Collaborator

This has been implemented as ModelVersion.load() and released in 1.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants