Skip to content

Commit 38d2497

Browse files
sfc-gh-anavalosSnowflake Authors
andauthored
Project import generated by Copybara. (#127)
GitOrigin-RevId: 50dc082133b4d28c56c1ecc0cad18e5751f6bc19 Co-authored-by: Snowflake Authors <noreply@snowflake.com>
1 parent f737798 commit 38d2497

122 files changed

Lines changed: 4840 additions & 4052 deletions

File tree

Some content is hidden

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

CHANGELOG.md

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

3-
## 1.7.0
3+
## 1.7.1
4+
5+
### Bug Fixes
6+
7+
- Registry: Null value is now allowed in the dataframe used in model signature inference. Null values will be ignored
8+
and others will be used to infer the signature.
9+
- Registry: Pandas Extension DTypes (`pandas.StringDType()`, `pandas.BooleanDType()`, etc.) are now supported in model
10+
signature inference.
11+
- Registry: Null value is now allowed in the dataframe used to predict.
12+
- Data: Fix missing `snowflake.ml.data.*` module exports in wheel
13+
- Dataset: Fix missing `snowflake.ml.dataset.*` module exports in wheel.
14+
- Registry: Fix the issue that `tf_keras.Model` is not recognized as keras model when logging.
15+
16+
### Behavior Changes
17+
18+
### New Features
19+
20+
- Registry: Option to `enable_monitoring` set to False by default. This will gate access to preview features of Model Monitoring.
21+
- Model Monitoring: `show_model_monitors` Registry method. This feature is still in Private Preview.
22+
- Registry: Support `pd.Series` in input and output data.
23+
- Model Monitoring: `add_monitor` Registry method. This feature is still in Private Preview.
24+
- Model Monitoring: `resume` and `suspend` ModelMonitor. This feature is still in Private Preview.
25+
- Model Monitoring: `get_monitor` Registry method. This feature is still in Private Preview.
26+
- Model Monitoring: `delete_monitor` Registry method. This feature is still in Private Preview.
27+
28+
## 1.7.0 (10-22-2024)
429

530
### Behavior Change
631

bazel/environments/conda-env-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ dependencies:
1111
- conda-libmamba-solver==23.7.0
1212
- inflection==0.5.1
1313
- jsonschema==3.2.0
14-
- lightgbm==3.3.5
14+
- lightgbm==4.1.0
1515
- numpy==1.23.5
1616
- packaging==23.0
1717
- ruamel.yaml==0.17.21
1818
- scikit-learn==1.5.1
1919
- sphinx==5.0.2
2020
- toml==0.10.2
2121
- types-toml==0.10.8.6
22-
- xgboost==1.7.3
22+
- xgboost==1.7.6

bazel/environments/conda-env-snowflake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- inflection==0.5.1
2626
- joblib==1.4.2
2727
- jsonschema==3.2.0
28-
- lightgbm==3.3.5
28+
- lightgbm==4.1.0
2929
- mlflow==2.3.1
3030
- moto==4.0.11
3131
- mypy==1.10.0
@@ -40,7 +40,7 @@ dependencies:
4040
- pytest-xdist==3.5.0
4141
- pytest==7.4.0
4242
- pytimeparse==1.1.8
43-
- pytorch==2.0.1
43+
- pytorch==2.1.0
4444
- pyyaml==6.0
4545
- requests==2.29.0
4646
- retrying==1.3.3
@@ -67,4 +67,4 @@ dependencies:
6767
- types-toml==0.10.8.6
6868
- typing-extensions==4.6.3
6969
- werkzeug==2.2.2
70-
- xgboost==1.7.3
70+
- xgboost==1.7.6

bazel/environments/conda-env.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- inflection==0.5.1
2626
- joblib==1.4.2
2727
- jsonschema==3.2.0
28-
- lightgbm==3.3.5
28+
- lightgbm==4.1.0
2929
- mlflow==2.3.1
3030
- moto==4.0.11
3131
- mypy==1.10.0
@@ -40,7 +40,7 @@ dependencies:
4040
- pytest-xdist==3.5.0
4141
- pytest==7.4.0
4242
- pytimeparse==1.1.8
43-
- pytorch==2.0.1
43+
- pytorch==2.1.0
4444
- pyyaml==6.0
4545
- requests==2.29.0
4646
- retrying==1.3.3
@@ -67,7 +67,7 @@ dependencies:
6767
- types-toml==0.10.8.6
6868
- typing-extensions==4.6.3
6969
- werkzeug==2.2.2
70-
- xgboost==1.7.3
70+
- xgboost==1.7.6
7171
- pip
7272
- pip:
7373
- --extra-index-url https://pypi.org/simple

bazel/environments/conda-gpu-env.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- inflection==0.5.1
2626
- joblib==1.4.2
2727
- jsonschema==3.2.0
28-
- lightgbm==3.3.5
28+
- lightgbm==4.1.0
2929
- mlflow==2.3.1
3030
- moto==4.0.11
3131
- mypy==1.10.0
@@ -42,7 +42,7 @@ dependencies:
4242
- pytest==7.4.0
4343
- pytimeparse==1.1.8
4444
- pytorch::pytorch-cuda==11.7.*
45-
- pytorch::pytorch==2.0.1
45+
- pytorch::pytorch==2.1.0
4646
- pyyaml==6.0
4747
- requests==2.29.0
4848
- retrying==1.3.3
@@ -69,7 +69,7 @@ dependencies:
6969
- types-toml==0.10.8.6
7070
- typing-extensions==4.6.3
7171
- werkzeug==2.2.2
72-
- xgboost==1.7.3
72+
- xgboost==1.7.6
7373
- pip
7474
- pip:
7575
- --extra-index-url https://pypi.org/simple

bazel/requirements/parse_and_generate_requirements.py

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def generate_requirements(
418418
)
419419
sys.stdout.writelines(results)
420420
elif (mode, format) == ("version_requirements", "python"):
421-
results = list(
421+
reqs = list(
422422
sorted(
423423
filter(
424424
None,
@@ -427,13 +427,28 @@ def generate_requirements(
427427
filter(
428428
lambda req_info: req_info.get("from_channel", SNOWFLAKE_CONDA_CHANNEL)
429429
== SNOWFLAKE_CONDA_CHANNEL,
430-
requirements,
430+
filter(lambda req_info: filter_by_extras(req_info, False, True), requirements),
431+
),
432+
),
433+
),
434+
)
435+
)
436+
all_reqs = list(
437+
sorted(
438+
filter(
439+
None,
440+
map(
441+
lambda req_info: generate_user_requirements_string(req_info, "conda"),
442+
filter(
443+
lambda req_info: req_info.get("from_channel", SNOWFLAKE_CONDA_CHANNEL)
444+
== SNOWFLAKE_CONDA_CHANNEL,
445+
filter(lambda req_info: filter_by_extras(req_info, False, False), requirements),
431446
),
432447
),
433448
),
434449
)
435450
)
436-
sys.stdout.write(f"REQUIREMENTS = {json.dumps(results, indent=4)}\n")
451+
sys.stdout.write(f"REQUIREMENTS = {repr(reqs)}\nALL_REQUIREMENTS={repr(all_reqs)}\n")
437452
elif (mode, format) == ("version_requirements", "toml"):
438453
extras_requirements = list(filter(lambda req_info: filter_by_extras(req_info, True, False), requirements))
439454
extras_results: MutableMapping[str, Sequence[str]] = {}
@@ -478,7 +493,13 @@ def generate_requirements(
478493
elif (mode, format) == ("version_requirements", "python"):
479494
results = list(
480495
sorted(
481-
filter(None, map(lambda req_info: generate_user_requirements_string(req_info, "conda"), requirements)),
496+
filter(
497+
None,
498+
map(
499+
lambda req_info: generate_user_requirements_string(req_info, "conda"),
500+
filter(lambda req_info: filter_by_extras(req_info, False, True), requirements),
501+
),
502+
)
482503
)
483504
)
484505
sys.stdout.writelines(f"REQUIREMENTS = {repr(results)}\n")
@@ -555,7 +576,6 @@ def main() -> None:
555576
("dev_version", "text", False), # requirements.txt
556577
("version_requirements", "python", True), # sproc test dependencies list
557578
("version_requirements", "toml", False), # wheel rule requirements
558-
("version_requirements", "python", False), # model deployment core dependencies list
559579
("dev_version", "conda_env", False), # dev conda-env.yml file
560580
("dev_gpu_version", "conda_env", False), # dev conda-gpu-env.yml file
561581
("dev_version", "conda_env", True), # dev conda-env-snowflake.yml file

ci/conda_recipe/meta.yaml

Lines changed: 4 additions & 3 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.0
20+
version: 1.7.1
2121
requirements:
2222
build:
2323
- python
@@ -28,10 +28,11 @@ requirements:
2828
- anyio>=3.5.0,<4
2929
- cachetools>=3.1.1,<6
3030
- cloudpickle>=2.0.0
31+
- cryptography
3132
- fsspec>=2022.11,<2024
3233
- importlib_resources>=6.1.1, <7
3334
- numpy>=1.23,<2
34-
- packaging>=20.9,<24
35+
- packaging>=20.9,<25
3536
- pandas>=1.0.0,<3
3637
- pyarrow
3738
- pytimeparse>=1.1.8,<2
@@ -49,7 +50,7 @@ requirements:
4950
- python>=3.9,<3.12
5051
run_constrained:
5152
- catboost>=1.2.0, <2
52-
- lightgbm>=3.3.5,<5
53+
- lightgbm>=4.1.0, <5
5354
- mlflow>=2.1.0,<2.4
5455
- pytorch>=2.0.1,<2.3.0
5556
- sentence-transformers>=2.2.2,<3

ci/targets/slow.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//tests/integ/snowflake/ml/registry/services:registry_huggingface_pipeline_model_deployment_gpu_test
2+
//tests/integ/snowflake/ml/registry/services:registry_sentence_transformers_model_deployment_gpu_test
3+
//tests/integ/snowflake/ml/registry/services:registry_xgboost_model_deployment_pip_test

docs/source/cortex.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ snowflake.ml.cortex
1010
.. rubric:: Classes
1111

1212
.. autosummary::
13-
:toctree: api/model
13+
:toctree: api/cortex
1414

1515
CompleteOptions
16+
Finetune
17+
FinetuneJob
18+
FinetuneStatus
1619

1720
.. rubric:: Functions
1821

1922
.. autosummary::
20-
:toctree: api/model
23+
:toctree: api/cortex
2124

25+
ClassifyText
2226
Complete
27+
EmbedText768
28+
EmbedText1024
2329
ExtractAnswer
2430
Sentiment
2531
Summarize

docs/source/data.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:orphan:
2+
3+
===========================
4+
snowflake.ml.data
5+
===========================
6+
7+
.. automodule:: snowflake.ml.data
8+
:noindex:
9+
10+
.. currentmodule:: snowflake.ml.data
11+
12+
.. rubric:: Classes
13+
14+
.. autosummary::
15+
:toctree: api/data
16+
17+
data_connector.DataConnector
18+
data_ingestor.DataIngestor
19+
data_source.DataSource
20+
data_source.DataFrameInfo
21+
data_source.DatasetInfo

0 commit comments

Comments
 (0)