Skip to content

Commit 9abffca

Browse files
sfc-gh-anavalosSnowflake Authors
andauthored
Project import generated by Copybara. (#138)
GitOrigin-RevId: 0d9d695717a9526977a80f8ca7f6b7aee2790893 Co-authored-by: Snowflake Authors <[email protected]>
1 parent 7bc5f40 commit 9abffca

File tree

138 files changed

+1820
-1785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+1820
-1785
lines changed

CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
# Release History
22

3-
## 1.7.2
3+
## 1.7.3
4+
5+
- Added lowercase versions of Cortex functions, added deprecation warning to Capitalized versions.
6+
- Bumped the requirements of `fsspec` and `s3fs` to `>=2024.6.1,<2026`
7+
- Bumped the requirement of `mlflow` to `>=2.16.0, <3`
8+
- Registry: Support 500+ features for model registry
9+
10+
### Bug Fixes
11+
12+
- Registry: Fixed a bug when providing non-range index pandas DataFrame as the input to a `ModelVersion.run`.
13+
- Registry: Improved random model version name generation to prevent collisions.
14+
- Registry: Fix an issue when inferring signature or running inference with Snowpark data that has a column whose type
15+
is `ARRAY` and contains `NULL` value.
16+
- Registry: `ModelVersion.run` now accepts fully qualified service name.
17+
- Monitoring: Fix issue in SDK with creating monitors using fully qualified names.
18+
- Registry: Fix error in log_model for any sklearn models with only data pre-processing including pre-processing only
19+
pipeline models due to default explainability enablement.
20+
21+
### Behavior Changes
22+
23+
### New Features
24+
25+
- Added `user_files` argument to `Registry.log_model` for including images or any extra file with the model.
26+
- Registry: Added support for handling Hugging Face model configurations with auto-mapping functionality
27+
- DataConnector: Add new `DataConnector.from_sql()` constructor
28+
29+
## 1.7.2 (2024-11-21)
430

531
### Bug Fixes
632

@@ -13,6 +39,7 @@ whose task is UNKNOWN and fails later when invoked.
1339

1440
- Registry: Support asynchronous model inference service creation with the `block` option
1541
in `ModelVersion.create_service()` set to True by default.
42+
- Registry: Allow specify `batch_size` when inferencing using sentence-transformers model.
1643

1744
## 1.7.1 (2024-11-05)
1845

bazel/environments/conda-env-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ dependencies:
1919
- sphinx==5.0.2
2020
- toml==0.10.2
2121
- types-toml==0.10.8.6
22-
- xgboost==1.7.6
22+
- xgboost==2.1.1

bazel/environments/conda-env-snowflake.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ dependencies:
99
- absl-py==1.3.0
1010
- aiohttp==3.8.3
1111
- anyio==3.5.0
12-
- boto3==1.24.28
12+
- boto3==1.34.69
1313
- build==0.10.0
14-
- cachetools==4.2.2
14+
- cachetools==5.3.3
1515
- catboost==1.2.0
1616
- cloudpickle==2.2.1
1717
- conda-libmamba-solver==23.7.0
1818
- coverage==6.3.2
1919
- cryptography==39.0.1
2020
- flask-cors==3.0.10
2121
- flask==2.1.3
22-
- fsspec==2023.3.0
22+
- fsspec==2024.6.1
2323
- httpx==0.23.0
24+
- huggingface_hub==0.20.3
2425
- importlib_resources==6.1.1
2526
- inflection==0.5.1
2627
- joblib==1.4.2
2728
- jsonschema==3.2.0
2829
- lightgbm==4.1.0
29-
- mlflow==2.3.1
30+
- mlflow==2.16.2
3031
- moto==4.0.11
3132
- mypy==1.10.0
3233
- networkx==2.8.4
@@ -46,7 +47,7 @@ dependencies:
4647
- requests==2.29.0
4748
- retrying==1.3.3
4849
- ruamel.yaml==0.17.21
49-
- s3fs==2023.3.0
50+
- s3fs==2024.6.1
5051
- scikit-learn==1.5.1
5152
- scipy==1.9.3
5253
- sentence-transformers==2.2.2
@@ -68,4 +69,4 @@ dependencies:
6869
- types-toml==0.10.8.6
6970
- typing-extensions==4.6.3
7071
- werkzeug==2.2.2
71-
- xgboost==1.7.6
72+
- xgboost==2.1.1

bazel/environments/conda-env.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ dependencies:
99
- absl-py==1.3.0
1010
- aiohttp==3.8.3
1111
- anyio==3.5.0
12-
- boto3==1.24.28
12+
- boto3==1.34.69
1313
- build==0.10.0
14-
- cachetools==4.2.2
14+
- cachetools==5.3.3
1515
- catboost==1.2.0
1616
- cloudpickle==2.2.1
1717
- conda-libmamba-solver==23.7.0
1818
- coverage==6.3.2
1919
- cryptography==39.0.1
2020
- flask-cors==3.0.10
2121
- flask==2.1.3
22-
- fsspec==2023.3.0
22+
- fsspec==2024.6.1
2323
- httpx==0.23.0
24+
- huggingface_hub==0.20.3
2425
- importlib_resources==6.1.1
2526
- inflection==0.5.1
2627
- joblib==1.4.2
2728
- jsonschema==3.2.0
2829
- lightgbm==4.1.0
29-
- mlflow==2.3.1
30+
- mlflow==2.16.2
3031
- moto==4.0.11
3132
- mypy==1.10.0
3233
- networkx==2.8.4
@@ -46,7 +47,7 @@ dependencies:
4647
- requests==2.29.0
4748
- retrying==1.3.3
4849
- ruamel.yaml==0.17.21
49-
- s3fs==2023.3.0
50+
- s3fs==2024.6.1
5051
- scikit-learn==1.5.1
5152
- scipy==1.9.3
5253
- sentence-transformers==2.2.2
@@ -68,7 +69,7 @@ dependencies:
6869
- types-toml==0.10.8.6
6970
- typing-extensions==4.6.3
7071
- werkzeug==2.2.2
71-
- xgboost==1.7.6
72+
- xgboost==2.1.1
7273
- pip
7374
- pip:
7475
- --extra-index-url https://pypi.org/simple

bazel/environments/conda-gpu-env.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ dependencies:
99
- absl-py==1.3.0
1010
- aiohttp==3.8.3
1111
- anyio==3.5.0
12-
- boto3==1.24.28
12+
- boto3==1.34.69
1313
- build==0.10.0
14-
- cachetools==4.2.2
14+
- cachetools==5.3.3
1515
- catboost==1.2.0
1616
- cloudpickle==2.2.1
1717
- conda-libmamba-solver==23.7.0
1818
- coverage==6.3.2
1919
- cryptography==39.0.1
2020
- flask-cors==3.0.10
2121
- flask==2.1.3
22-
- fsspec==2023.3.0
22+
- fsspec==2024.6.1
2323
- httpx==0.23.0
24+
- huggingface_hub==0.20.3
2425
- importlib_resources==6.1.1
2526
- inflection==0.5.1
2627
- joblib==1.4.2
2728
- jsonschema==3.2.0
2829
- lightgbm==4.1.0
29-
- mlflow==2.3.1
30+
- mlflow==2.16.2
3031
- moto==4.0.11
3132
- mypy==1.10.0
3233
- networkx==2.8.4
@@ -48,7 +49,7 @@ dependencies:
4849
- requests==2.29.0
4950
- retrying==1.3.3
5051
- ruamel.yaml==0.17.21
51-
- s3fs==2023.3.0
52+
- s3fs==2024.6.1
5253
- scikit-learn==1.5.1
5354
- scipy==1.9.3
5455
- sentence-transformers==2.2.2
@@ -70,7 +71,7 @@ dependencies:
7071
- types-toml==0.10.8.6
7172
- typing-extensions==4.6.3
7273
- werkzeug==2.2.2
73-
- xgboost==1.7.6
74+
- xgboost==2.1.1
7475
- pip
7576
- pip:
7677
- --extra-index-url https://pypi.org/simple

ci/conda_recipe/meta.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build:
1717
noarch: python
1818
package:
1919
name: snowflake-ml-python
20-
version: 1.7.2
20+
version: 1.7.3
2121
requirements:
2222
build:
2323
- python
@@ -29,7 +29,7 @@ requirements:
2929
- cachetools>=3.1.1,<6
3030
- cloudpickle>=2.0.0
3131
- cryptography
32-
- fsspec>=2022.11,<2024
32+
- fsspec>=2024.6.1,<2026
3333
- importlib_resources>=6.1.1, <7
3434
- numpy>=1.23,<2
3535
- packaging>=20.9,<25
@@ -40,7 +40,7 @@ requirements:
4040
- pyyaml>=6.0,<7
4141
- requests
4242
- retrying>=1.3.3,<2
43-
- s3fs>=2022.11,<2024
43+
- s3fs>=2024.6.1,<2026
4444
- scikit-learn>=1.4,<1.6
4545
- scipy>=1.9,<2
4646
- snowflake-connector-python>=3.5.0,<4
@@ -51,13 +51,14 @@ requirements:
5151
- python>=3.9,<3.12
5252
run_constrained:
5353
- catboost>=1.2.0, <2
54+
- huggingface_hub<0.26
5455
- lightgbm>=4.1.0, <5
55-
- mlflow>=2.1.0,<2.4
56+
- mlflow>=2.16.0, <3
5657
- pytorch>=2.0.1,<2.3.0
5758
- sentence-transformers>=2.2.2,<3
5859
- sentencepiece>=0.1.95,<1
5960
- shap>=0.46.0,<1
60-
- tensorflow>=2.10,<3
61+
- tensorflow>=2.12.0,<3
6162
- tokenizers>=0.10,<1
6263
- torchdata>=0.4,<1
6364
- transformers>=4.32.1,<5

ci/targets/quarantine/prod3.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//snowflake/ml/model/_packager/model_handlers_test:mlflow_test
21
//tests/integ/snowflake/ml/extra_tests:xgboost_external_memory_training_test
32
//tests/integ/snowflake/ml/modeling/ensemble:isolation_forest_test
43
//tests/integ/snowflake/ml/modeling/linear_model:sgd_one_class_svm_test
54
//tests/integ/snowflake/ml/modeling/preprocessing:k_bins_discretizer_test
65
//tests/integ/snowflake/ml/modeling/linear_model:logistic_regression_test
7-
//tests/integ/snowflake/ml/registry/model:registry_mlflow_model_test
6+
//tests/integ/snowflake/ml/extra_tests:pipeline_with_ohe_and_xgbr_test
7+
//tests/integ/snowflake/ml/modeling/neighbors:kernel_density_test

requirements.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@
55
absl-py==1.3.0
66
accelerate==0.22.0
77
anyio==3.5.0
8-
boto3==1.24.28
8+
boto3==1.34.69
99
build==0.10.0
10-
cachetools==4.2.2
10+
cachetools==5.3.3
1111
catboost==1.2.0
1212
cloudpickle==2.2.1
1313
coverage==6.3.2
1414
cryptography==39.0.1
1515
flask-cors==3.0.10
1616
flask==2.1.3
17-
fsspec[http]==2023.3.0
17+
fsspec[http]==2024.6.1
1818
httpx==0.23.0
19+
huggingface_hub==0.20.3
1920
importlib_resources==6.1.1
2021
inflection==0.5.1
2122
joblib==1.4.2
2223
jsonschema==3.2.0
2324
lightgbm==4.1.0
24-
mlflow==2.3.1
25+
mlflow==2.16.2
2526
moto==4.0.11
2627
mypy==1.10.0
2728
networkx==2.8.4
@@ -40,7 +41,7 @@ pytimeparse==1.1.8
4041
pyyaml==6.0
4142
retrying==1.3.3
4243
ruamel.yaml==0.17.21
43-
s3fs==2023.3.0
44+
s3fs==2024.6.1
4445
scikit-learn==1.5.1
4546
scipy==1.9.3
4647
sentence-transformers==2.2.2
@@ -64,4 +65,4 @@ types-requests==2.30.0.0
6465
types-toml==0.10.8.6
6566
typing-extensions==4.6.3
6667
werkzeug==2.2.2
67-
xgboost==1.7.6
68+
xgboost==2.1.1

requirements.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
tags:
8484
- build_essential
8585
- name: boto3
86-
dev_version: 1.24.28
86+
dev_version: 1.34.69
8787
- name_conda: conda-libmamba-solver
8888
dev_version_conda: 23.7.0
8989
tags:
@@ -111,8 +111,8 @@
111111
dev_version: 2.1.3
112112
- name_pypi: fsspec[http]
113113
name_conda: fsspec
114-
dev_version: 2023.3.0
115-
version_requirements: '>=2022.11,<2024'
114+
dev_version: 2024.6.1
115+
version_requirements: '>=2024.6.1,<2026'
116116
- name: httpx
117117
dev_version: 0.23.0
118118
- name: importlib_resources
@@ -142,8 +142,8 @@
142142
requirements_extra_tags:
143143
- shap
144144
- name: mlflow
145-
dev_version: 2.3.1
146-
version_requirements: '>=2.1.0,<2.4'
145+
dev_version: 2.16.2
146+
version_requirements: '>=2.16.0, <3'
147147
requirements_extra_tags:
148148
- mlflow
149149
- name: moto
@@ -211,8 +211,8 @@
211211
tags:
212212
- build_essential
213213
- name: s3fs
214-
dev_version: 2023.3.0
215-
version_requirements: '>=2022.11,<2024'
214+
dev_version: 2024.6.1
215+
version_requirements: '>=2024.6.1,<2026'
216216
- name: scikit-learn
217217
dev_version: 1.5.1
218218
version_requirements: '>=1.4,<1.6'
@@ -231,6 +231,11 @@
231231
version_requirements: '>=2.2.2,<3'
232232
requirements_extra_tags:
233233
- transformers
234+
- name: huggingface_hub
235+
dev_version: 0.20.3
236+
version_requirements: <0.26
237+
requirements_extra_tags:
238+
- transformers
234239
- name_conda: snowflake-connector-python
235240
name_pypi: snowflake-connector-python[pandas]
236241
dev_version: 3.10.0
@@ -250,7 +255,7 @@
250255
- name: tensorflow
251256
dev_version_conda: 2.12.0
252257
dev_version_pypi: 2.12.0
253-
version_requirements: '>=2.10,<3'
258+
version_requirements: '>=2.12.0,<3'
254259
requirements_extra_tags:
255260
- tensorflow
256261
- name: tokenizers
@@ -286,14 +291,14 @@
286291
dev_version: 4.6.3
287292
version_requirements: '>=4.1.0,<5'
288293
- name: xgboost
289-
dev_version: 1.7.6
294+
dev_version: 2.1.1
290295
version_requirements: '>=1.7.3,<3'
291296
tags:
292297
- build_essential
293298
- name: werkzeug
294299
dev_version: 2.2.2
295300
- name: cachetools
296-
dev_version: 4.2.2
301+
dev_version: 5.3.3
297302
version_requirements: '>=3.1.1,<6'
298303
- name: pytimeparse
299304
dev_version: 1.1.8

0 commit comments

Comments
 (0)