Snowflake ML: End-to-End Machine Learning

Snowflake ML is an integrated set of capabilities for end-to-end machine learning in a single platform on top of your governed data.

For out-of-the-box ML workflows in SQL, the ready-to-use ML Functions can help shorten development time and democratize ML across your organization. These functions let you train models for business use cases such as forecasting and anomaly detection without writing any code.

For custom ML workflows in Python, data scientists and ML engineers can easily and securely develop and productionize scalable features and models without any data movement, silos, or governance tradeoffs. The snowflake-ml-python library provides APIs for developing and deploying your Snowflake ML pipelines.

To build and operationalize models, data scientists and ML engineers can leverage a suite of Snowflake ML features. For model development, Snowflake ML Modeling APIs offer scalable data loading, feature engineering, and model training with distributed processing using CPUs or GPUs. For ML Operations (ML Ops), Snowflake ML includes the Feature Store and Model Registry for centralized management of features and models in production.

You can use Python APIs from the Snowpark ML library in Snowflake Notebooks, Snowsight worksheets. or your local Python IDE of choice.

Key components of Snowflake ML: ML Modeling, Feature Store, and Model Registry

Snowflake ML components help to streamline the ML lifecycle, as shown here.

The ML development and deployment process supported by Snowflake ML

Snowflake Model Registry

The Snowflake Model Registry allows secure deployment and management of models in Snowflake, supporting models trained both inside and outside of Snowflake.

Snowflake Feature Store

The Snowflake Feature Store is an integrated solution for defining, managing, storing and discovering ML features derived from your data. The Snowflake Feature Store supports automated, incremental refresh from batch and streaming data sources, so that feature pipelines need be defined only once to be continuously updated with new data.

Snowflake Datasets

Snowflake Datasets provide an immutable, versioned snapshot of your data suitable for ingestion by your machine learning models.

Snowflake Notebooks

Snowflake Notebooks provide a familiar experience, similar to Jupyter notebooks, for working with Python inside Snowflake. They’re ideal for building custom ML workflows and models using tools you already know how to use. Notebooks that run on Snowpark Container Services (SPCS) execute on the Container Runtime for ML, a purpose-built environment for machine learning workflows.

Container Runtime for ML

Snowflake offers a pre-configured, customizable environment built for a variety of ML development workloads. With a comprehensive set of pre-installed ML packages and frameworks that can be easily extended, data scientists and ML engineers can leverage the best of open source directly over their Snowflake data.

WIth easy access to GPUs in the form of Snowpark Container Service (SPCS) compute pools, the flexibility to use any open-source package, and distributed data loading and modeling APIs, Container Runtime for ML is well-suited for large-scale ML development. Because these notebooks run on Snowpark Container Services, they provide a flexible and scalable compute infrastructure optimized for price-performance.

For more information, see Notebooks on Container Runtime for ML and Container Runtime for ML.

Snowflake ML Library

The snowflake-ml-python Python package provides Python APIs for the various Snowflake ML workflow components, including the Snowflake Feature Store, the Snowflake Model Registry, and Dataset versioned data objects. It also includes APIs, based on popular Python ML libraries such as scikit-learn, for building and training your own models at scale completely inside the Snowflake cloud. You can use Snowflake ML features in your local Python development environment, in Snowsight worksheets, or in Snowflake Notebooks.

Tip

See Introduction to Machine Learning for an example of an end-to-end Snowflake ML workflow.

ML Modeling

The snowflake-ml-python Python package also includes the ML Modeling APIs, which support data preprocessing, feature engineering, and model training in Snowflake using popular machine learning frameworks, such as scikit-learn, xgboost, lightgbm, and pytorch. All processing is performed without the need for any infrastructure configuration or data movement.

When run from a notebook on Container Runtime for ML, these modeling APIs can run distributed over all available CPU cores or GPUs, depending on the compute pool you’re using. In other cases, the process is performed in a Snowflake virtual warehouse, where preprocessing and hyperarameter optimization can be performed in distributed fashion over multiple nodes.

Note

Container Runtime for ML is currently in private preview.

Additional Resources

See the following resources for information about the Snowflake ML APIs.

End-to-End ML Workflows

Contact your Snowflake representative for early access to documentation on other features currently under development.