Skip to content

Commit 98f1422

Browse files
committed
py312 upgrade that updates dependencies, integ tests and unit tests
1 parent 6b96afa commit 98f1422

File tree

74 files changed

+10240
-1555
lines changed

Some content is hidden

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

74 files changed

+10240
-1555
lines changed

.githooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ start_time=`date +%s`
1212
tox -e sphinx,doc8 --parallel all
1313
./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
1414
start_time=`date +%s`
15-
tox -e py38,py39,py310 --parallel all -- tests/unit
16-
./ci-scripts/displaytime.sh 'py38,py39,py310 unit' $start_time
15+
tox -e py39,py310,py311,py312 --parallel all -- tests/unit
16+
./ci-scripts/displaytime.sh 'py39,py310,py311,py312 unit' $start_time

.github/workflows/codebuild-ci-health.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
python-version: ["py38", "py39", "py310", "py311"]
29+
python-version: ["py39", "py310", "py311","py312"]
3030
steps:
3131
- name: Configure AWS Credentials
3232
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/codebuild-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
python-version: ["py38","py39","py310","py311"]
66+
python-version: ["py39","py310","py311","py312"]
6767
steps:
6868
- name: Configure AWS Credentials
6969
uses: aws-actions/configure-aws-credentials@v4

.pylintrc

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,24 @@ disable=
9494
useless-object-inheritance, # TODO: Enable this check and fix code once Python 2 is no longer supported.
9595
super-with-arguments,
9696
raise-missing-from,
97-
E1136,
97+
C0116, # Missing function or method docstring
98+
C0209, # Use f-string instead of format
99+
E0015, # Unrecognized option found in config
100+
E0702, # Raising a string instead of an exception
101+
E1101, # Module has no member (likely dynamic attr)
102+
E1136, # Value assigned to something inferred as None
103+
R0022, # Useless option value in config
104+
R1710, # Inconsistent return statements
105+
R1714, # Consider using `in` with comparisons
106+
R1729, # Use a generator
107+
R1732,
108+
R1735, # Consider using a dict or list literal
109+
W0237, # Argument renamed in override
110+
W0613, # Unused argument
111+
W0621, # Redefining name from outer scope
112+
W0719
113+
W1404, # Implicit string concatenation
114+
W1514, # `open()` used without encoding
98115

99116
[REPORTS]
100117
# Set the output format. Available formats are text, parseable, colorized, msvs
@@ -436,4 +453,4 @@ analyse-fallback-blocks=no
436453

437454
# Exceptions that will emit a warning when being caught. Defaults to
438455
# "Exception"
439-
overgeneral-exceptions=Exception
456+
overgeneral-exceptions=builtins.Exception

CHANGELOG.md

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

3-
## v2.243.2 (2025-04-16)
4-
5-
### Bug Fixes and Other Changes
6-
7-
* tgi image uri unit tests
8-
* Fix deepdiff dependencies
9-
103
## v2.243.1 (2025-04-11)
114

125
### Bug Fixes and Other Changes

VERSION

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

doc/algorithms/text/machine_translation_hugging_face.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,44 @@ This is a supervised machine translation algorithm which supports many pre-train
88
demonstrates how to use the Sagemaker Python SDK for Machine Translation for using these algorithms.
99

1010
For detailed documentation please refer :ref:`Use Built-in Algorithms with Pre-trained Models in SageMaker Python SDK <built-in-algos>`.
11+
12+
.. list-table:: Available Models
13+
:widths: 50 20 20 20 20
14+
:header-rows: 1
15+
:class: datatable
16+
17+
* - Model ID
18+
- Fine Tunable?
19+
- Latest Version
20+
- Min SDK Version
21+
- Source
22+
* - huggingface-translation-opus-mt-en-es
23+
- False
24+
- 2.1.2
25+
- 2.189.0
26+
- `HuggingFace <https://huggingface.co/Helsinki-NLP/opus-mt-en-es>`__
27+
* - huggingface-translation-opus-mt-en-vi
28+
- False
29+
- 2.1.2
30+
- 2.189.0
31+
- `HuggingFace <https://huggingface.co/Helsinki-NLP/opus-mt-en-vi>`__
32+
* - huggingface-translation-opus-mt-mul-en
33+
- False
34+
- 1.0.9
35+
- 2.189.0
36+
- `HuggingFace <https://huggingface.co/Helsinki-NLP/opus-mt-mul-en>`__
37+
* - huggingface-translation-t5-base
38+
- False
39+
- 3.0.1
40+
- 2.189.0
41+
- `HuggingFace <https://huggingface.co/google-t5/t5-base>`__
42+
* - huggingface-translation-t5-large
43+
- False
44+
- 3.0.1
45+
- 2.189.0
46+
- `HuggingFace <https://huggingface.co/google-t5/t5-large>`__
47+
* - huggingface-translation-t5-small
48+
- False
49+
- 3.0.1
50+
- 2.189.0
51+
- `HuggingFace <https://huggingface.co/google-t5/t5-small>`__

doc/algorithms/text/question_answering_pytorch.rst

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,104 @@ This is a supervised question answering algorithm which supports fine-tuning of
77
demonstrates how to use the Sagemaker Python SDK for Question Answering for using these algorithms.
88

99
For detailed documentation please refer :ref:`Use Built-in Algorithms with Pre-trained Models in SageMaker Python SDK <built-in-algos>`
10+
11+
.. list-table:: Available Models
12+
:widths: 50 20 20 20 20
13+
:header-rows: 1
14+
:class: datatable
15+
16+
* - Model ID
17+
- Fine Tunable?
18+
- Latest Version
19+
- Min SDK Version
20+
- Source
21+
* - pytorch-eqa-bert-base-cased
22+
- True
23+
- 1.2.1
24+
- 2.75.0
25+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
26+
* - pytorch-eqa-bert-base-multilingual-cased
27+
- True
28+
- 1.2.1
29+
- 2.75.0
30+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
31+
* - pytorch-eqa-bert-base-multilingual-uncased
32+
- True
33+
- 1.2.1
34+
- 2.75.0
35+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
36+
* - pytorch-eqa-bert-base-uncased
37+
- True
38+
- 1.2.1
39+
- 2.75.0
40+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
41+
* - pytorch-eqa-bert-large-cased
42+
- True
43+
- 1.2.1
44+
- 2.75.0
45+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
46+
* - pytorch-eqa-bert-large-cased-whole-word-masking
47+
- True
48+
- 1.2.1
49+
- 2.75.0
50+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
51+
* - pytorch-eqa-bert-large-cased-whole-word-masking-finetuned-squad
52+
- True
53+
- 1.2.1
54+
- 2.75.0
55+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
56+
* - pytorch-eqa-bert-large-uncased
57+
- True
58+
- 1.2.1
59+
- 2.75.0
60+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
61+
* - pytorch-eqa-bert-large-uncased-whole-word-masking
62+
- True
63+
- 1.2.1
64+
- 2.75.0
65+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
66+
* - pytorch-eqa-bert-large-uncased-whole-word-masking-finetuned-squad
67+
- True
68+
- 1.2.1
69+
- 2.75.0
70+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
71+
* - pytorch-eqa-distilbert-base-cased
72+
- True
73+
- 1.2.1
74+
- 2.75.0
75+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
76+
* - pytorch-eqa-distilbert-base-multilingual-cased
77+
- True
78+
- 1.2.1
79+
- 2.75.0
80+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
81+
* - pytorch-eqa-distilbert-base-uncased
82+
- True
83+
- 1.2.1
84+
- 2.75.0
85+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
86+
* - pytorch-eqa-distilroberta-base
87+
- True
88+
- 1.2.1
89+
- 2.75.0
90+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
91+
* - pytorch-eqa-roberta-base
92+
- True
93+
- 1.2.1
94+
- 2.75.0
95+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
96+
* - pytorch-eqa-roberta-base-openai-detector
97+
- True
98+
- 1.2.1
99+
- 2.75.0
100+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
101+
* - pytorch-eqa-roberta-large
102+
- True
103+
- 1.2.1
104+
- 2.75.0
105+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__
106+
* - pytorch-eqa-roberta-large-openai-detector
107+
- True
108+
- 1.2.1
109+
- 2.75.0
110+
- `Pytorch Hub <https://pytorch.org/hub/huggingface_pytorch-transformers/>`__

doc/algorithms/text/sentence_pair_classification_hugging_face.rst

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,119 @@ This is a supervised sentence pair classification algorithm which supports fine-
77
demonstrates how to use the Sagemaker Python SDK for Sentence Pair Classification for using these algorithms.
88

99
For detailed documentation please refer `Use Built-in Algorithms with Pre-trained Models in SageMaker Python SDK <https://sagemaker.readthedocs.io/en/stable/overview.html#use-built-in-algorithms-with-pre-trained-models-in-sagemaker-python-sdk>`__
10+
11+
.. list-table:: Available Models
12+
:widths: 50 20 20 20 20
13+
:header-rows: 1
14+
:class: datatable
15+
16+
* - Model ID
17+
- Fine Tunable?
18+
- Latest Version
19+
- Min SDK Version
20+
- Source
21+
* - huggingface-spc-bert-base-cased
22+
- True
23+
- 3.0.1
24+
- 2.189.0
25+
- `HuggingFace <https://huggingface.co/google-bert/bert-base-cased>`__
26+
* - huggingface-spc-bert-base-multilingual-cased
27+
- True
28+
- 3.0.1
29+
- 2.189.0
30+
- `HuggingFace <https://huggingface.co/google-bert/bert-base-multilingual-cased>`__
31+
* - huggingface-spc-bert-base-multilingual-uncased
32+
- True
33+
- 3.0.1
34+
- 2.189.0
35+
- `HuggingFace <https://huggingface.co/google-bert/bert-base-multilingual-uncased>`__
36+
* - huggingface-spc-bert-base-uncased
37+
- True
38+
- 3.0.1
39+
- 2.189.0
40+
- `HuggingFace <https://huggingface.co/google-bert/bert-base-uncased>`__
41+
* - huggingface-spc-bert-large-cased
42+
- True
43+
- 3.0.1
44+
- 2.189.0
45+
- `HuggingFace <https://huggingface.co/google-bert/bert-large-cased>`__
46+
* - huggingface-spc-bert-large-cased-whole-word-masking
47+
- True
48+
- 3.0.1
49+
- 2.189.0
50+
- `HuggingFace <https://huggingface.co/google-bert/bert-large-cased-whole-word-masking>`__
51+
* - huggingface-spc-bert-large-uncased
52+
- True
53+
- 3.0.1
54+
- 2.189.0
55+
- `HuggingFace <https://huggingface.co/google-bert/bert-large-uncased>`__
56+
* - huggingface-spc-bert-large-uncased-whole-word-masking
57+
- True
58+
- 3.0.1
59+
- 2.189.0
60+
- `HuggingFace <https://huggingface.co/google-bert/bert-large-uncased-whole-word-masking>`__
61+
* - huggingface-spc-distilbert-base-cased
62+
- True
63+
- 3.0.1
64+
- 2.189.0
65+
- `HuggingFace <https://huggingface.co/distilbert/distilbert-base-cased>`__
66+
* - huggingface-spc-distilbert-base-multilingual-cased
67+
- True
68+
- 3.0.1
69+
- 2.189.0
70+
- `HuggingFace <https://huggingface.co/distilbert/distilbert-base-multilingual-cased>`__
71+
* - huggingface-spc-distilbert-base-uncased
72+
- True
73+
- 3.0.1
74+
- 2.189.0
75+
- `HuggingFace <https://huggingface.co/distilbert/distilbert-base-uncased>`__
76+
* - huggingface-spc-distilroberta-base
77+
- True
78+
- 3.0.1
79+
- 2.189.0
80+
- `HuggingFace <https://huggingface.co/distilbert/distilroberta-base>`__
81+
* - huggingface-spc-roberta-base
82+
- True
83+
- 3.0.1
84+
- 2.189.0
85+
- `HuggingFace <https://huggingface.co/FacebookAI/roberta-base>`__
86+
* - huggingface-spc-roberta-base-openai-detector
87+
- True
88+
- 3.0.1
89+
- 2.189.0
90+
- `HuggingFace <https://huggingface.co/openai-community/roberta-base-openai-detector>`__
91+
* - huggingface-spc-roberta-large
92+
- True
93+
- 3.0.1
94+
- 2.189.0
95+
- `HuggingFace <https://huggingface.co/FacebookAI/roberta-large>`__
96+
* - huggingface-spc-roberta-large-openai-detector
97+
- True
98+
- 3.0.1
99+
- 2.189.0
100+
- `HuggingFace <https://huggingface.co/openai-community/roberta-large-openai-detector>`__
101+
* - huggingface-spc-xlm-clm-ende-1024
102+
- True
103+
- 3.0.1
104+
- 2.189.0
105+
- `HuggingFace <https://huggingface.co/FacebookAI/xlm-clm-ende-1024>`__
106+
* - huggingface-spc-xlm-mlm-ende-1024
107+
- True
108+
- 3.0.1
109+
- 2.189.0
110+
- `HuggingFace <https://huggingface.co/FacebookAI/xlm-mlm-ende-1024>`__
111+
* - huggingface-spc-xlm-mlm-enro-1024
112+
- True
113+
- 3.0.1
114+
- 2.189.0
115+
- `HuggingFace <https://huggingface.co/FacebookAI/xlm-mlm-enro-1024>`__
116+
* - huggingface-spc-xlm-mlm-tlm-xnli15-1024
117+
- True
118+
- 3.0.1
119+
- 2.189.0
120+
- `HuggingFace <https://huggingface.co/FacebookAI/xlm-mlm-tlm-xnli15-1024>`__
121+
* - huggingface-spc-xlm-mlm-xnli15-1024
122+
- True
123+
- 3.0.1
124+
- 2.189.0
125+
- `HuggingFace <https://huggingface.co/FacebookAI/xlm-mlm-xnli15-1024>`__

0 commit comments

Comments
 (0)