Skip to content

Commit 6c037a6

Browse files
authored
Merge branch 'master' into master
2 parents d8ff497 + 43cdadd commit 6c037a6

File tree

8 files changed

+70
-9
lines changed

8 files changed

+70
-9
lines changed

doc/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ sphinx==5.1.1
22
sphinx-rtd-theme==0.5.0
33
docutils==0.15.2
44
packaging==20.9
5-
jinja2<3.1
5+
jinja2==3.1.3
66
schema==0.7.5

requirements/extras/test_requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ awslogs==0.14.0
1212
black==22.3.0
1313
stopit==1.1.2
1414
# Update tox.ini to have correct version of airflow constraints file
15-
apache-airflow==2.7.3
15+
apache-airflow==2.8.1
1616
apache-airflow-providers-amazon==7.2.1
1717
attrs>=23.1.0,<24
1818
fabric==2.6.0
1919
requests==2.31.0
2020
sagemaker-experiments==0.1.35
21-
Jinja2==3.0.3
21+
Jinja2==3.1.3
2222
pyvis==0.2.1
2323
pandas>=1.3.5,<1.5
2424
scikit-learn==1.3.0
@@ -32,7 +32,7 @@ sagemaker-feature-store-pyspark-3.3
3232
# TODO find workaround
3333
xgboost>=1.6.2,<=1.7.6
3434
pillow>=10.0.1,<=11
35-
transformers==4.32.0
35+
transformers>=4.36.0
3636
sentencepiece==0.1.99
3737
# https://github.com/triton-inference-server/server/issues/6246
3838
tritonclient[http]<2.37.0

src/sagemaker/image_uri_config/huggingface-llm.json

+49-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"1.0": "1.0.3",
1111
"1.1": "1.1.0",
1212
"1.2": "1.2.0",
13-
"1.3": "1.3.3"
13+
"1.3": "1.3.3",
14+
"1.4": "1.4.0"
1415
},
1516
"versions": {
1617
"0.6.0": {
@@ -388,6 +389,53 @@
388389
"container_version": {
389390
"gpu": "cu121-ubuntu20.04"
390391
}
392+
},
393+
"1.4.0": {
394+
"py_versions": [
395+
"py310"
396+
],
397+
"registries": {
398+
"af-south-1": "626614931356",
399+
"il-central-1": "780543022126",
400+
"ap-east-1": "871362719292",
401+
"ap-northeast-1": "763104351884",
402+
"ap-northeast-2": "763104351884",
403+
"ap-northeast-3": "364406365360",
404+
"ap-south-1": "763104351884",
405+
"ap-south-2": "772153158452",
406+
"ap-southeast-1": "763104351884",
407+
"ap-southeast-2": "763104351884",
408+
"ap-southeast-3": "907027046896",
409+
"ap-southeast-4": "457447274322",
410+
"ca-central-1": "763104351884",
411+
"cn-north-1": "727897471807",
412+
"cn-northwest-1": "727897471807",
413+
"eu-central-1": "763104351884",
414+
"eu-central-2": "380420809688",
415+
"eu-north-1": "763104351884",
416+
"eu-west-1": "763104351884",
417+
"eu-west-2": "763104351884",
418+
"eu-west-3": "763104351884",
419+
"eu-south-1": "692866216735",
420+
"eu-south-2": "503227376785",
421+
"me-south-1": "217643126080",
422+
"me-central-1": "914824155844",
423+
"sa-east-1": "763104351884",
424+
"us-east-1": "763104351884",
425+
"us-east-2": "763104351884",
426+
"us-gov-east-1": "446045086412",
427+
"us-gov-west-1": "442386744353",
428+
"us-iso-east-1": "886529160074",
429+
"us-isob-east-1": "094389454867",
430+
"us-west-1": "763104351884",
431+
"us-west-2": "763104351884",
432+
"ca-west-1": "204538143572"
433+
},
434+
"tag_prefix": "2.1.1-tgi1.4.0",
435+
"repository": "huggingface-pytorch-tgi-inference",
436+
"container_version": {
437+
"gpu": "cu121-ubuntu20.04"
438+
}
391439
}
392440
}
393441
}

src/sagemaker/workflow/clarify_check_step.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ class ModelExplainabilityCheckConfig(ClarifyCheckConfig):
132132
133133
Attributes:
134134
model_config (ModelConfig): Config of the model and its endpoint to be created.
135-
explainability_config (SHAPConfig): Config of the specific explainability method.
136-
Currently, only SHAP is supported.
135+
explainability_config (SHAPConfig or PDPConfig): Config of the explainability method.
136+
Supports SHAP or PDP.
137+
For `PDPConfig`, `features` must be specified.
138+
`top_k_features` based on SHAP is currently not supported.
137139
model_scores (str or int or ModelPredictedLabelConfig): Index or JMESPath expression
138140
to locate the predicted scores in the model output (default: None).
139141
This is not required if the model output is a single score. Alternatively,
@@ -166,6 +168,10 @@ def __init__(
166168
):
167169
"""Constructs a ClarifyCheckStep.
168170
171+
To understand the `skip_check`, `fail_on_violation`, `register_new_baseline`
172+
and `supplied_baseline_constraints` parameters, check the following documentation:
173+
https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html
174+
169175
Args:
170176
name (str): The name of the ClarifyCheckStep step.
171177
clarify_check_config (ClarifyCheckConfig): A ClarifyCheckConfig instance.

src/sagemaker/workflow/quality_check_step.py

+5
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ def __init__(
135135
):
136136
"""Constructs a QualityCheckStep.
137137
138+
To understand the `skip_check`, `fail_on_violation`, `register_new_baseline`,
139+
`supplied_baseline_constraints` and `supplied_baseline_constraints` parameters,
140+
check the following documentation:
141+
https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html
142+
138143
Args:
139144
name (str): The name of the QualityCheckStep step.
140145
quality_check_config (QualityCheckConfig): A QualityCheckConfig instance.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
transformers<=4.28.1
1+
transformers>=4.36.0
22
datasets==2.16.1
3+
accelerate>=0.21.0

tests/unit/sagemaker/image_uris/test_huggingface_llm.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"1.2.0": "2.1.1-tgi1.2.0-gpu-py310-cu121-ubuntu20.04",
2929
"1.3.1": "2.1.1-tgi1.3.1-gpu-py310-cu121-ubuntu20.04",
3030
"1.3.3": "2.1.1-tgi1.3.3-gpu-py310-cu121-ubuntu20.04",
31+
"1.4.0": "2.1.1-tgi1.4.0-gpu-py310-cu121-ubuntu20.04",
3132
},
3233
"inf2": {
3334
"0.0.16": "1.13.1-optimum0.0.16-neuronx-py310-ubuntu22.04",

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ passenv =
8181
# Can be used to specify which tests to run, e.g.: tox -- -s
8282
commands =
8383
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
84-
pip install 'apache-airflow==2.7.3' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.7.3/constraints-3.8.txt"
84+
pip install 'apache-airflow==2.8.1' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.8.1/constraints-3.8.txt"
8585
pip install 'torch==2.0.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
8686
pip install 'torchvision==0.15.2+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
8787

0 commit comments

Comments
 (0)