Skip to content

Commit 3aef768

Browse files
authored
Merge branch 'master' into fix-domain-isolation
2 parents 5482c6d + 3d4d258 commit 3aef768

File tree

339 files changed

+33998
-10595
lines changed

Some content is hidden

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

339 files changed

+33998
-10595
lines changed

.github/workflows/codebuild-ci.yml

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: PR Checks
22
on:
33
pull_request_target:
4+
branches:
5+
- "master*"
46

57
concurrency:
68
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref }}
@@ -10,9 +12,40 @@ permissions:
1012
id-token: write # This is required for requesting the JWT
1113

1214
jobs:
13-
codestyle-doc-tests:
15+
collab-check:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
approval-env: ${{ steps.collab-check.outputs.result }}
19+
steps:
20+
- name: Collaborator Check
21+
uses: actions/github-script@v7
22+
id: collab-check
23+
with:
24+
github-token: ${{ secrets.COLLAB_CHECK_TOKEN }}
25+
result-encoding: string
26+
script: |
27+
try {
28+
const res = await github.rest.repos.checkCollaborator({
29+
owner: context.repo.owner,
30+
repo: context.repo.repo,
31+
username: "${{ github.event.pull_request.user.login }}",
32+
});
33+
console.log("Verifed ${{ github.event.pull_request.user.login }} is a repo collaborator. Auto Approving PR Checks.")
34+
return res.status == "204" ? "auto-approve" : "manual-approval"
35+
} catch (error) {
36+
console.log("${{ github.event.pull_request.user.login }} is not a collaborator. Requiring Manual Approval to run PR Checks.")
37+
return "manual-approval"
38+
}
39+
wait-for-approval:
1440
runs-on: ubuntu-latest
41+
needs: [collab-check]
42+
environment: ${{ needs.collab-check.outputs.approval-env }}
1543
steps:
44+
- run: echo "Workflow Approved! Starting PR Checks."
45+
codestyle-doc-tests:
46+
runs-on: ubuntu-latest
47+
needs: [wait-for-approval]
48+
steps:
1649
- name: Configure AWS Credentials
1750
uses: aws-actions/configure-aws-credentials@v4
1851
with:
@@ -22,10 +55,11 @@ jobs:
2255
- name: Run Codestyle & Doc Tests
2356
uses: aws-actions/aws-codebuild-run-build@v1
2457
with:
25-
project-name: sagemaker-python-sdk-ci-codestyle-doc-tests
26-
source-version-override: 'pr/${{ github.event.pull_request.number }}'
58+
project-name: ${{ github.event.repository.name }}-ci-codestyle-doc-tests
59+
source-version-override: 'refs/pull/${{ github.event.pull_request.number }}/head^{${{ github.event.pull_request.head.sha }}}'
2760
unit-tests:
2861
runs-on: ubuntu-latest
62+
needs: [wait-for-approval]
2963
strategy:
3064
fail-fast: false
3165
matrix:
@@ -40,9 +74,24 @@ jobs:
4074
- name: Run Unit Tests
4175
uses: aws-actions/aws-codebuild-run-build@v1
4276
with:
43-
project-name: sagemaker-python-sdk-ci-unit-tests
44-
source-version-override: 'pr/${{ github.event.pull_request.number }}'
77+
project-name: ${{ github.event.repository.name }}-ci-unit-tests
78+
source-version-override: 'refs/pull/${{ github.event.pull_request.number }}/head^{${{ github.event.pull_request.head.sha }}}'
4579
env-vars-for-codebuild: |
4680
PY_VERSION
4781
env:
4882
PY_VERSION: ${{ matrix.python-version }}
83+
integ-tests:
84+
runs-on: ubuntu-latest
85+
needs: [wait-for-approval]
86+
steps:
87+
- name: Configure AWS Credentials
88+
uses: aws-actions/configure-aws-credentials@v4
89+
with:
90+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
91+
aws-region: us-west-2
92+
role-duration-seconds: 10800
93+
- name: Run Integ Tests
94+
uses: aws-actions/aws-codebuild-run-build@v1
95+
with:
96+
project-name: ${{ github.event.repository.name }}-ci-integ-tests
97+
source-version-override: 'refs/pull/${{ github.event.pull_request.number }}/head^{${{ github.event.pull_request.head.sha }}}'

CHANGELOG.md

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,250 @@
11
# Changelog
22

3+
## v2.226.1 (2024-07-17)
4+
5+
## v2.226.0 (2024-07-12)
6+
7+
### Features
8+
9+
* Curated hub improvements
10+
* InferenceSpec support for MMS and testing
11+
12+
### Bug Fixes and Other Changes
13+
14+
* ModelBuilder not passing HF_TOKEN to model.
15+
* update image_uri_configs 07-10-2024 07:18:04 PST
16+
17+
## v2.225.0 (2024-07-10)
18+
19+
### Features
20+
21+
* model optimization
22+
23+
### Bug Fixes and Other Changes
24+
25+
* fix integ test
26+
* update uris for v1.1.1
27+
* update image_uri_configs 07-04-2024 07:17:24 PST
28+
29+
## v2.224.4 (2024-07-04)
30+
31+
### Bug Fixes and Other Changes
32+
33+
* allow for inf spec and server override to be passed
34+
35+
## v2.224.3 (2024-07-03)
36+
37+
### Bug Fixes and Other Changes
38+
39+
* Upgrade local dependencies
40+
* Improve docstrings for estimator tags
41+
42+
## v2.224.2 (2024-06-27)
43+
44+
### Bug Fixes and Other Changes
45+
46+
* Update DJLModel class for latest container releases
47+
* list_models() for python3.8
48+
49+
## v2.224.1 (2024-06-21)
50+
51+
### Bug Fixes and Other Changes
52+
53+
* JumpStart CuratedHub Launch
54+
* Update README.rst to show conda-forge version of SageMaker SDK
55+
* Update tox.ini
56+
* chore(deps): bump apache-airflow from 2.9.1 to 2.9.2 in /requirements/extras
57+
* Model server override logic
58+
59+
## v2.224.0 (2024-06-19)
60+
61+
### Features
62+
63+
* JumpStartModel attach
64+
65+
### Bug Fixes and Other Changes
66+
67+
* feat(sagemaker-mlflow): New features for SageMaker MLflow
68+
* Upgrading to PT 2.3 for release
69+
* chore: use ml.g5.2xlarge for integ test
70+
* Enable telemetry logging for Remote function
71+
* Fix Dependabot Issues - MLFlow Version
72+
73+
## v2.223.0 (2024-06-13)
74+
75+
### Features
76+
77+
* add 'ModelCard' property to Register step
78+
79+
### Bug Fixes and Other Changes
80+
81+
* Fix Sniping bug fix
82+
* Implement custom telemetry logging in SDK
83+
* Fix ci unit-tests
84+
* update image_uri_configs 06-12-2024 07:17:03 PST
85+
86+
## v2.222.1 (2024-06-12)
87+
88+
### Bug Fixes and Other Changes
89+
90+
* First changes
91+
* estimator.deploy not respecting instance type
92+
93+
## v2.222.0 (2024-06-07)
94+
95+
### Features
96+
97+
* jumpstart telemetry
98+
99+
### Bug Fixes and Other Changes
100+
101+
* update image_uri_configs 06-06-2024 07:17:31 PST
102+
* bump requests from 2.31.0 to 2.32.2 in /requirements/extras
103+
* chore: add HF LLM neuronx 0.0.23 image
104+
* Updates for DJL 0.28.0 release
105+
* chore(deps): bump mlflow from 2.11.1 to 2.12.1 in /tests/data/serve_resources/mlflow/tensorflow
106+
* chore(deps): bump mlflow from 2.11.1 to 2.12.1 in /tests/data/serve_resources/mlflow/xgboost
107+
* chore(deps): bump mlflow from 2.10.2 to 2.12.1 in /tests/data/serve_resources/mlflow/pytorch
108+
* chore(deps): bump apache-airflow from 2.9.0 to 2.9.1 in /requirements/extras
109+
* chore(deps): bump requests from 2.31.0 to 2.32.2 in /tests/data/serve_resources/mlflow/pytorch
110+
* Fix ci unit-tests
111+
* Making project name in workflow files dynamic
112+
* update image_uri_configs 05-29-2024 07:17:35 PST
113+
* Update: SM Endpoint Routing Strategy Support.
114+
115+
## v2.221.1 (2024-05-22)
116+
117+
### Bug Fixes and Other Changes
118+
119+
* Convert pytorchddp distribution to smdistributed distribution
120+
* Add tei cpu image
121+
122+
## v2.221.0 (2024-05-20)
123+
124+
### Features
125+
126+
* onboard tei image config to pysdk
127+
128+
### Bug Fixes and Other Changes
129+
130+
* JS Model with non-TGI/non-DJL deployment failure
131+
* cover tei with image_uris.retrieve API
132+
* Add more debuging
133+
* model builder limited container support for endpoint mode.
134+
* Image URI should take precedence for HF models
135+
136+
## v2.220.0 (2024-05-15)
137+
138+
### Features
139+
140+
* AutoGluon 1.1.0 image_uris update
141+
* add new images for HF TGI release
142+
* Add telemetry support for mlflow models
143+
144+
### Bug Fixes and Other Changes
145+
146+
* add debug logs to workflow container dist creation
147+
* model builder race condition on sagemaker session
148+
* Add tensorflow_serving support for mlflow models and enable lineage tracking for mlflow models
149+
* update image_uri_configs 05-09-2024 07:17:41 PST
150+
* skip flakey tests pending investigation
151+
152+
## v2.219.0 (2024-05-08)
153+
154+
### Features
155+
156+
* allow choosing js payload by alias in private method
157+
158+
### Bug Fixes and Other Changes
159+
160+
* chore(deps): bump jinja2 from 3.1.3 to 3.1.4 in /requirements/extras
161+
* chore(deps): bump tqdm from 4.66.2 to 4.66.3 in /tests/data/serve_resources/mlflow/pytorch
162+
* chore(deps): bump jinja2 from 3.1.3 to 3.1.4 in /doc
163+
* Updates for SMP v2.3.1
164+
165+
## v2.218.1 (2024-05-03)
166+
167+
### Bug Fixes and Other Changes
168+
169+
* Fix UserAgent logging in Python SDK
170+
* chore: release tgi 2.0.1
171+
* chore: update skipped flaky tests
172+
173+
## v2.218.0 (2024-05-01)
174+
175+
### Features
176+
177+
* set default allow_pickle param to False
178+
179+
### Bug Fixes and Other Changes
180+
181+
* properly close files in lineage queries and tests
182+
183+
## v2.217.0 (2024-04-24)
184+
185+
### Features
186+
187+
* support session tag chaining for training job
188+
189+
### Bug Fixes and Other Changes
190+
191+
* Add Triton v24.03 URI
192+
* mainline alt config parsing
193+
* Fix tox installs
194+
* Add PT 2.2 Graviton Inference DLC
195+
196+
## v2.216.1 (2024-04-22)
197+
198+
### Bug Fixes and Other Changes
199+
200+
* add DXB and CGK to Jumpstart regions
201+
* chore(deps): bump apache-airflow from 2.8.4 to 2.9.0 in /requirements/extras
202+
* bump djl-inference 0.27.0 neuronx sdk to 2.18.1
203+
* chore: release TGI 2.0.0
204+
205+
## v2.216.0 (2024-04-17)
206+
207+
### Features
208+
209+
* optimum 0.0.21
210+
* Add TF 2.14 Graviton Inference support
211+
* JumpStart alternative config parsing
212+
* TGI 1.4.5
213+
214+
### Bug Fixes and Other Changes
215+
216+
* chore(deps): bump black from 22.3.0 to 24.3.0 in /requirements/extras
217+
* Add back serialization for automatic speech recognition
218+
* bump apache-airflow version to 2.8.4
219+
* remove trailing slash when uploading to S3 with dataset_builder.to_csv_file
220+
* Update Collaborator Check workflow to check for users which are part of collaborator team
221+
* forward network_isolation parameter to Estimators when False
222+
* Flaky slow test
223+
* Revert "Test SM PySDK Variations"
224+
225+
### Documentation Changes
226+
227+
* Add supported task types to schema builder omission
228+
229+
## v2.215.0 (2024-04-12)
230+
231+
### Features
232+
233+
* JumpStart Gated Model Support in ModelBuilder Local Modes
234+
* Changes to support remote schema retrieval for task types (question-answering, fill-mask) and added e2e tests for both local and remote hf schema logic.
235+
* Upgrade smp to version 2.3.0
236+
237+
### Bug Fixes and Other Changes
238+
239+
* disable modelbuilder mlflow local integ tests
240+
* add integ-tests to codebuild-ci.yml
241+
* [Feat] Support MLflow Model Format Through ModelBuilder
242+
* Test SM PySDK Variations
243+
* typo in jumpstart manifest and refine tests
244+
* add kix to launched regions
245+
* Remove space specific business logic from Python SDK function to fetch execution role
246+
* Remove notebook tests from CI health check and the script
247+
3248
## v2.214.3 (2024-04-04)
4249

5250
### Bug Fixes and Other Changes

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ SageMaker Python SDK
1010
:target: https://pypi.python.org/pypi/sagemaker
1111
:alt: Latest Version
1212

13+
.. image:: https://img.shields.io/conda/vn/conda-forge/sagemaker-python-sdk.svg
14+
:target: https://anaconda.org/conda-forge/sagemaker-python-sdk
15+
:alt: Conda-Forge Version
16+
1317
.. image:: https://img.shields.io/pypi/pyversions/sagemaker.svg
1418
:target: https://pypi.python.org/pypi/sagemaker
1519
:alt: Supported Python Versions
@@ -95,6 +99,13 @@ SageMaker Python SDK is tested on:
9599
- Python 3.10
96100
- Python 3.11
97101

102+
Telemetry
103+
~~~~~~~~~~~~~~~
104+
105+
The ``sagemaker`` library has telemetry enabled to help us better understand user needs, diagnose issues, and deliver new features. This telemetry tracks the usage of various SageMaker functions.
106+
107+
If you prefer to opt out of telemetry, you can easily do so by setting the ``TelemetryOptOut`` parameter to ``true`` in the SDK defaults configuration. For detailed instructions, please visit `Configuring and using defaults with the SageMaker Python SDK <https://sagemaker.readthedocs.io/en/stable/overview.html#configuring-and-using-defaults-with-the-sagemaker-python-sdk>`__.
108+
98109
AWS Permissions
99110
~~~~~~~~~~~~~~~
100111

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.214.4.dev0
1+
2.226.2.dev0

0 commit comments

Comments
 (0)