Open benleit opened 6 days ago
@benleit, thank you for bringing this issue to our attention. The current design of CustomModel
requires the use of a model type that is supported by Snowflake.
This is due to our utilization of the model packager, which serializes the model (code and parameters) handler directory. This enables us to deploy models to warehouses or other container runtimes.
Regrettably, pygam is not currently supported. We will add this to our roadmap and prioritize it accordingly. We will notify you once support for pygam is available.
Thank you again for reporting this issue, and we apologize for any inconvenience this may have caused.
The goal is to use Snowflake’s Model Registry to store and deploy the pygam model, leveraging Snowflake's Snowpark and ML features. However, issues arise when registering the model due to compatibility constraints with the external package
pygam
.Here is a minimal example that I tried to run in a Snowflake Notebook (I was able to use
pygam
via stage packages within Snowflake notebook):This is the error message I get:
I tried
conda_dependencies
,pip_requirements
,ext_modules
&code_paths
without success. Support for arbitrary pip package installation (beyond the Snowflake Anaconda Channel) in the Snowflake model registry would significantly improve the flexibility of deploying custom models with niche or specialized packages, likepygam
. Is there any solution to this problem that is currently available? This is a big show stopper for us in migrating to use Snowflake's ML features.