Skip to content

Commit e0dd576

Browse files
fix: djl regions fixes #5273 (#5277)
* test: adds unit test for djl lmi regions * test: adds regions in which djl images do not exist * fix: adds djl missing regions * fix: linting * docs: update contributing to add linting section --------- Co-authored-by: pintaoz-aws <[email protected]>
1 parent 5d766c4 commit e0dd576

File tree

7 files changed

+480
-41
lines changed

7 files changed

+480
-41
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ information to effectively respond to your bug report or contribution.
1616
* [Run the Unit Tests](#run-the-unit-tests)
1717
* [Run the Integration Tests](#run-the-integration-tests)
1818
* [Make and Test Your Change](#make-and-test-your-change)
19+
* [Lint Your Change](#lint-your-change)
1920
* [Commit Your Change](#commit-your-change)
2021
* [Send a Pull Request](#send-a-pull-request)
2122
* [Documentation Guidelines](#documentation-guidelines)
@@ -117,6 +118,13 @@ If you are writing or modifying a test that creates a SageMaker job (training, t
117118
1. If your changes include documentation changes, please see the [Documentation Guidelines](#documentation-guidelines).
118119
1. If you include integration tests, do not mark them as canaries if they will not run in all regions.
119120

121+
### Lint Your Change
122+
123+
Before submitting, ensure your code meets our quality and style guidelines. Run:
124+
```shell
125+
tox -e flake8,pylint,docstyle,black-check,twine --parallel all
126+
```
127+
Address any errors or warnings before opening a pull request.
120128

121129
### Commit Your Change
122130

src/sagemaker/image_uri_config/djl-deepspeed.json

Lines changed: 81 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@
3232
"us-gov-west-1": "442386744353",
3333
"us-west-1": "763104351884",
3434
"us-west-2": "763104351884",
35-
"ca-west-1": "204538143572"
35+
"ca-west-1": "204538143572",
36+
"eu-central-2": "380420809688",
37+
"ap-south-2": "772153158452",
38+
"me-central-1": "914824155844",
39+
"eu-south-2": "503227376785",
40+
"ap-southeast-7": "590183813437",
41+
"ap-southeast-4": "457447274322",
42+
"ap-southeast-5": "550225433462",
43+
"mx-central-1": "637423239942"
3644
},
3745
"repository": "djl-inference",
3846
"tag_prefix": "0.27.0-deepspeed0.12.6-cu121"
@@ -66,7 +74,15 @@
6674
"us-gov-west-1": "442386744353",
6775
"us-west-1": "763104351884",
6876
"us-west-2": "763104351884",
69-
"ca-west-1": "204538143572"
77+
"ca-west-1": "204538143572",
78+
"eu-central-2": "380420809688",
79+
"ap-south-2": "772153158452",
80+
"me-central-1": "914824155844",
81+
"eu-south-2": "503227376785",
82+
"ap-southeast-7": "590183813437",
83+
"ap-southeast-4": "457447274322",
84+
"ap-southeast-5": "550225433462",
85+
"mx-central-1": "637423239942"
7086
},
7187
"repository": "djl-inference",
7288
"tag_prefix": "0.26.0-deepspeed0.12.6-cu121"
@@ -100,7 +116,15 @@
100116
"us-gov-west-1": "442386744353",
101117
"us-west-1": "763104351884",
102118
"us-west-2": "763104351884",
103-
"ca-west-1": "204538143572"
119+
"ca-west-1": "204538143572",
120+
"eu-central-2": "380420809688",
121+
"ap-south-2": "772153158452",
122+
"me-central-1": "914824155844",
123+
"eu-south-2": "503227376785",
124+
"ap-southeast-7": "590183813437",
125+
"ap-southeast-4": "457447274322",
126+
"ap-southeast-5": "550225433462",
127+
"mx-central-1": "637423239942"
104128
},
105129
"repository": "djl-inference",
106130
"tag_prefix": "0.25.0-deepspeed0.11.0-cu118"
@@ -134,7 +158,15 @@
134158
"us-gov-west-1": "442386744353",
135159
"us-west-1": "763104351884",
136160
"us-west-2": "763104351884",
137-
"ca-west-1": "204538143572"
161+
"ca-west-1": "204538143572",
162+
"eu-central-2": "380420809688",
163+
"ap-south-2": "772153158452",
164+
"me-central-1": "914824155844",
165+
"eu-south-2": "503227376785",
166+
"ap-southeast-7": "590183813437",
167+
"ap-southeast-4": "457447274322",
168+
"ap-southeast-5": "550225433462",
169+
"mx-central-1": "637423239942"
138170
},
139171
"repository": "djl-inference",
140172
"tag_prefix": "0.24.0-deepspeed0.10.0-cu118"
@@ -168,7 +200,15 @@
168200
"us-gov-west-1": "442386744353",
169201
"us-west-1": "763104351884",
170202
"us-west-2": "763104351884",
171-
"ca-west-1": "204538143572"
203+
"ca-west-1": "204538143572",
204+
"eu-central-2": "380420809688",
205+
"ap-south-2": "772153158452",
206+
"me-central-1": "914824155844",
207+
"eu-south-2": "503227376785",
208+
"ap-southeast-7": "590183813437",
209+
"ap-southeast-4": "457447274322",
210+
"ap-southeast-5": "550225433462",
211+
"mx-central-1": "637423239942"
172212
},
173213
"repository": "djl-inference",
174214
"tag_prefix": "0.23.0-deepspeed0.9.5-cu118"
@@ -202,7 +242,15 @@
202242
"us-gov-west-1": "442386744353",
203243
"us-west-1": "763104351884",
204244
"us-west-2": "763104351884",
205-
"ca-west-1": "204538143572"
245+
"ca-west-1": "204538143572",
246+
"eu-central-2": "380420809688",
247+
"ap-south-2": "772153158452",
248+
"me-central-1": "914824155844",
249+
"eu-south-2": "503227376785",
250+
"ap-southeast-7": "590183813437",
251+
"ap-southeast-4": "457447274322",
252+
"ap-southeast-5": "550225433462",
253+
"mx-central-1": "637423239942"
206254
},
207255
"repository": "djl-inference",
208256
"tag_prefix": "0.22.1-deepspeed0.9.2-cu118"
@@ -236,7 +284,15 @@
236284
"us-gov-west-1": "442386744353",
237285
"us-west-1": "763104351884",
238286
"us-west-2": "763104351884",
239-
"ca-west-1": "204538143572"
287+
"ca-west-1": "204538143572",
288+
"eu-central-2": "380420809688",
289+
"ap-south-2": "772153158452",
290+
"me-central-1": "914824155844",
291+
"eu-south-2": "503227376785",
292+
"ap-southeast-7": "590183813437",
293+
"ap-southeast-4": "457447274322",
294+
"ap-southeast-5": "550225433462",
295+
"mx-central-1": "637423239942"
240296
},
241297
"repository": "djl-inference",
242298
"tag_prefix": "0.21.0-deepspeed0.8.3-cu117"
@@ -270,7 +326,15 @@
270326
"us-gov-west-1": "442386744353",
271327
"us-west-1": "763104351884",
272328
"us-west-2": "763104351884",
273-
"ca-west-1": "204538143572"
329+
"ca-west-1": "204538143572",
330+
"eu-central-2": "380420809688",
331+
"ap-south-2": "772153158452",
332+
"me-central-1": "914824155844",
333+
"eu-south-2": "503227376785",
334+
"ap-southeast-7": "590183813437",
335+
"ap-southeast-4": "457447274322",
336+
"ap-southeast-5": "550225433462",
337+
"mx-central-1": "637423239942"
274338
},
275339
"repository": "djl-inference",
276340
"tag_prefix": "0.20.0-deepspeed0.7.5-cu116"
@@ -304,7 +368,15 @@
304368
"us-gov-west-1": "442386744353",
305369
"us-west-1": "763104351884",
306370
"us-west-2": "763104351884",
307-
"ca-west-1": "204538143572"
371+
"ca-west-1": "204538143572",
372+
"eu-central-2": "380420809688",
373+
"ap-south-2": "772153158452",
374+
"me-central-1": "914824155844",
375+
"eu-south-2": "503227376785",
376+
"ap-southeast-7": "590183813437",
377+
"ap-southeast-4": "457447274322",
378+
"ap-southeast-5": "550225433462",
379+
"mx-central-1": "637423239942"
308380
},
309381
"repository": "djl-inference",
310382
"tag_prefix": "0.19.0-deepspeed0.7.3-cu113"

src/sagemaker/image_uri_config/djl-fastertransformer.json

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@
3030
"us-east-2": "763104351884",
3131
"us-west-1": "763104351884",
3232
"us-west-2": "763104351884",
33-
"ca-west-1": "204538143572"
33+
"ca-west-1": "204538143572",
34+
"eu-central-2": "380420809688",
35+
"ap-south-2": "772153158452",
36+
"me-central-1": "914824155844",
37+
"eu-south-2": "503227376785",
38+
"ap-southeast-7": "590183813437",
39+
"ap-southeast-4": "457447274322",
40+
"ap-southeast-5": "550225433462",
41+
"mx-central-1": "637423239942"
3442
},
3543
"repository": "djl-inference",
3644
"tag_prefix": "0.24.0-fastertransformer5.3.0-cu118"
@@ -62,7 +70,15 @@
6270
"us-east-2": "763104351884",
6371
"us-west-1": "763104351884",
6472
"us-west-2": "763104351884",
65-
"ca-west-1": "204538143572"
73+
"ca-west-1": "204538143572",
74+
"eu-central-2": "380420809688",
75+
"ap-south-2": "772153158452",
76+
"me-central-1": "914824155844",
77+
"eu-south-2": "503227376785",
78+
"ap-southeast-7": "590183813437",
79+
"ap-southeast-4": "457447274322",
80+
"ap-southeast-5": "550225433462",
81+
"mx-central-1": "637423239942"
6682
},
6783
"repository": "djl-inference",
6884
"tag_prefix": "0.23.0-fastertransformer5.3.0-cu118"
@@ -94,7 +110,15 @@
94110
"us-east-2": "763104351884",
95111
"us-west-1": "763104351884",
96112
"us-west-2": "763104351884",
97-
"ca-west-1": "204538143572"
113+
"ca-west-1": "204538143572",
114+
"eu-central-2": "380420809688",
115+
"ap-south-2": "772153158452",
116+
"me-central-1": "914824155844",
117+
"eu-south-2": "503227376785",
118+
"ap-southeast-7": "590183813437",
119+
"ap-southeast-4": "457447274322",
120+
"ap-southeast-5": "550225433462",
121+
"mx-central-1": "637423239942"
98122
},
99123
"repository": "djl-inference",
100124
"tag_prefix": "0.22.1-fastertransformer5.3.0-cu118"
@@ -126,10 +150,18 @@
126150
"us-east-2": "763104351884",
127151
"us-west-1": "763104351884",
128152
"us-west-2": "763104351884",
129-
"ca-west-1": "204538143572"
153+
"ca-west-1": "204538143572",
154+
"eu-central-2": "380420809688",
155+
"ap-south-2": "772153158452",
156+
"me-central-1": "914824155844",
157+
"eu-south-2": "503227376785",
158+
"ap-southeast-7": "590183813437",
159+
"ap-southeast-4": "457447274322",
160+
"ap-southeast-5": "550225433462",
161+
"mx-central-1": "637423239942"
130162
},
131163
"repository": "djl-inference",
132164
"tag_prefix": "0.21.0-fastertransformer5.3.0-cu117"
133165
}
134166
}
135-
}
167+
}

src/sagemaker/image_uri_config/djl-lmi.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@
3636
"us-gov-west-1": "442386744353",
3737
"us-west-1": "763104351884",
3838
"us-west-2": "763104351884",
39-
"ca-west-1": "204538143572"
39+
"ca-west-1": "204538143572",
40+
"eu-central-2": "380420809688",
41+
"ap-south-2": "772153158452",
42+
"eu-south-2": "503227376785",
43+
"ap-southeast-7": "590183813437",
44+
"ap-southeast-4": "457447274322",
45+
"ap-southeast-5": "550225433462",
46+
"mx-central-1": "637423239942"
4047
},
4148
"repository": "djl-inference",
4249
"tag_prefix": "0.30.0-lmi12.0.0-cu124"
@@ -71,7 +78,14 @@
7178
"us-gov-west-1": "442386744353",
7279
"us-west-1": "763104351884",
7380
"us-west-2": "763104351884",
74-
"ca-west-1": "204538143572"
81+
"ca-west-1": "204538143572",
82+
"eu-central-2": "380420809688",
83+
"ap-south-2": "772153158452",
84+
"eu-south-2": "503227376785",
85+
"ap-southeast-7": "590183813437",
86+
"ap-southeast-4": "457447274322",
87+
"ap-southeast-5": "550225433462",
88+
"mx-central-1": "637423239942"
7589
},
7690
"repository": "djl-inference",
7791
"tag_prefix": "0.29.0-lmi11.0.0-cu124"
@@ -106,7 +120,14 @@
106120
"us-gov-west-1": "442386744353",
107121
"us-west-1": "763104351884",
108122
"us-west-2": "763104351884",
109-
"ca-west-1": "204538143572"
123+
"ca-west-1": "204538143572",
124+
"eu-central-2": "380420809688",
125+
"ap-south-2": "772153158452",
126+
"eu-south-2": "503227376785",
127+
"ap-southeast-7": "590183813437",
128+
"ap-southeast-4": "457447274322",
129+
"ap-southeast-5": "550225433462",
130+
"mx-central-1": "637423239942"
110131
},
111132
"repository": "djl-inference",
112133
"tag_prefix": "0.28.0-lmi10.0.0-cu124"

0 commit comments

Comments
 (0)