22
33Snowpark ML is a set of tools including SDKs and underlying infrastructure to build and deploy machine learning models.
44With Snowpark ML, you can pre-process data, train, manage and deploy ML models all within Snowflake, using a single SDK,
5- and benefit from Snowflake’s proven performance, scalability, stability and governance at every stage of the Machine
6- Learning workflow.
5+ and benefit from Snowflake’s proven performance, scalability, stability and governance at every stage of the Machine
6+ Learning workflow.
77
88## Key Components of Snowpark ML
99
1010The Snowpark ML Python SDK provides a number of APIs to support each stage of an end-to-end Machine Learning development
11- and deployment process, and includes two key components.
11+ and deployment process, and includes two key components.
1212
1313### Snowpark ML Development [ Public Preview]
1414
15- A collection of python APIs to enable efficient model development directly in Snowflake:
15+ [ Snowpark ML Development] ( https://docs.snowflake.com/en/developer-guide/snowpark-ml/index#snowpark-ml-development )
16+ provides a collection of python APIs enabling efficient ML model development directly in Snowflake:
1617
17- 1 . Modeling API (snowflake.ml.modeling) for data preprocessing, feature engineering and model training in Snowflake.
18- This includes snowflake.ml.modeling.preprocessing for scalable data transformations on large data sets utilizing the
19- compute resources of underlying Snowpark Optimized High Memory Warehouses, and a large collection of ML model
20- development classes based on sklearn, xgboost, and lightgbm. See the private preview limited access docs (Preprocessing,
21- Modeling for more details on these.
18+ 1 . Modeling API (` snowflake.ml.modeling ` ) for data preprocessing, feature engineering and model training in Snowflake.
19+ This includes the ` snowflake.ml.modeling.preprocessing ` module for scalable data transformations on large data sets
20+ utilizing the compute resources of underlying Snowpark Optimized High Memory Warehouses, and a large collection of ML
21+ model development classes based on sklearn, xgboost, and lightgbm.
2222
23231 . Framework Connectors: Optimized, secure and performant data provisioning for Pytorch and Tensorflow frameworks in
2424their native data loader formats.
2525
2626### Snowpark ML Ops [ Private Preview]
2727
28- Snowpark MLOps complements the Snowpark ML Development API, and provides model management capabilities along with
29- integrated deployment into Snowflake. Currently, the API consists of
28+ [ Snowpark MLOps] ( https://docs.snowflake.com/en/developer-guide/snowpark-ml/index#snowpark-ml-ops ) complements the
29+ Snowpark ML Development API, and provides model management capabilities along with integrated deployment into Snowflake.
30+ Currently, the API consists of:
3031
31321 . FileSet API: FileSet provides a Python fsspec-compliant API for materializing data into a Snowflake internal stage
3233from a query or Snowpark Dataframe along with a number of convenience APIs.
@@ -37,26 +38,48 @@ Snowflake Warehouses as vectorized UDFs.
3738During PrPr, we are iterating on API without backward compatibility guarantees. It is better to recreate your registry
3839everytime you update the package. This means, at this time, you cannot use the registry for production use.
3940
40- - [ Documentation] ( https://docs.snowflake.com/developer-guide/snowpark-ml )
41-
4241## Getting started
4342
4443### Have your Snowflake account ready
4544
4645If you don't have a Snowflake account yet, you can [ sign up for a 30-day free trial account] ( https://signup.snowflake.com/ ) .
4746
48- ### Create a Python virtual environment
47+ ### Installation
48+
49+ Follow the [ installation instructions] ( https://docs.snowflake.com/en/developer-guide/snowpark-ml/index#installing-snowpark-ml )
50+ in the Snowflake documentation.
4951
50- Python version 3.8, 3.9 & 3.10 are supported. You can use [ miniconda] ( https://docs.conda.io/en/latest/miniconda.html ) ,
51- [ anaconda] ( https://www.anaconda.com/ ) , or [ virtualenv ] ( https://docs.python.org/3/tutorial/venv.html ) to create a virtual
52- environment.
52+ Python versions 3.8, 3.9 & 3.10 are supported. You can use [ miniconda] ( https://docs.conda.io/en/latest/miniconda.html ) or
53+ [ anaconda] ( https://www.anaconda.com/ ) to create a Conda environment (recommended),
54+ or [ virtualenv ] ( https://docs.python.org/3/tutorial/venv.html ) to create a virtual environment.
5355
54- To have the best experience when using this library, [ creating a local conda environment with the Snowflake channel] (
55- https://docs.snowflake.com/en/developer-guide/udf/python/udf-python-packages.html#local-development-and-testing )
56- is recommended.
56+ ### Conda channels
5757
58- ### Install the library to the Python virtual environment
58+ The [ Snowflake Conda Channel] ( https://repo.anaconda.com/pkgs/snowflake/ ) contains the official snowpark ML package releases.
59+ The recommended approach is to install ` snowflake-ml-python ` this conda channel:
5960
6061``` sh
61- pip install snowflake-ml-python
62+ conda install \
63+ -c https://repo.anaconda.com/pkgs/snowflake \
64+ --override-channels \
65+ snowflake-ml-python
66+ ```
67+
68+ See [ the developer guide] ( https://docs.snowflake.com/en/developer-guide/snowpark-ml/index ) for installation instructions.
69+
70+ The latest version of the ` snowpark-ml-python ` package is also published in a conda channel in this repository. Package versions
71+ in this channel may not yet be present in the official Snowflake conda channel.
72+
73+ Install ` snowflake-ml-python ` from this channel with the following (being sure to replace ` <version_specifier> ` with the
74+ desired version, e.g. ` 1.0.10 ` ):
75+
76+ ``` bash
77+ conda install \
78+ -c https://raw.githubusercontent.com/snowflakedb/snowflake-ml-python/conda/releases/ \
79+ -c https://repo.anaconda.com/pkgs/snowflake \
80+ --override-channels \
81+ snowflake-ml-python==< version_specifier>
6282```
83+
84+ Note that until a ` snowflake-ml-python ` package version is available in the official Snowflake conda channel, there may
85+ be compatibility issues. Server-side functionality that ` snowflake-ml-python ` depends on may not yet be released.
0 commit comments