Commit c1084f7
authored
fix(train): use latest model package in LLM-as-judge base model integ tests (#5959)
* fix(train): use latest model package in LLM-as-judge base model integ tests
The hardcoded model package version 1 predates the backend's
SageMakerPublicHub requirement for serverless training jobs, causing
consistent failures across all PRs.
* fix(train): always use SageMakerPublicHub for base model ARN in evaluations
The backend now enforces that serverless training jobs only accept
BaseModelArn values pointing to SageMakerPublicHub. The SAGEMAKER_HUB_NAME
env var is for training recipe lookups only and should not affect the
base model ARN passed to evaluation pipelines.
Also remove ModelApprovalStatus filter from test helper since training
tests never set approval status on output packages.
* fix(train): fall back to SageMakerPublicHub when model not found in private hub
When _get_hub_content_metadata fails to find a model in the configured
private hub (e.g. sdktest), retry with SageMakerPublicHub. This handles
models like meta-textgeneration-llama-3-2-1b-instruct that only exist
in the public hub.1 parent b84338b commit c1084f7
3 files changed
Lines changed: 77 additions & 30 deletions
File tree
- sagemaker-train
- src/sagemaker/train/common_utils
- tests/integ/train
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 241 | + | |
| 242 | + | |
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
| |||
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
74 | 90 | | |
75 | 91 | | |
76 | 92 | | |
| |||
Lines changed: 51 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | | - | |
69 | 73 | | |
70 | | - | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | | - | |
74 | | - | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | | - | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
83 | 102 | | |
84 | 103 | | |
85 | 104 | | |
86 | 105 | | |
87 | | - | |
| 106 | + | |
88 | 107 | | |
89 | 108 | | |
90 | | - | |
| 109 | + | |
91 | 110 | | |
92 | 111 | | |
93 | | - | |
| 112 | + | |
94 | 113 | | |
95 | 114 | | |
96 | 115 | | |
97 | | - | |
| 116 | + | |
98 | 117 | | |
99 | 118 | | |
100 | 119 | | |
101 | 120 | | |
102 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
103 | 129 | | |
104 | 130 | | |
105 | 131 | | |
106 | | - | |
| 132 | + | |
107 | 133 | | |
108 | 134 | | |
109 | | - | |
| 135 | + | |
| 136 | + | |
110 | 137 | | |
111 | | - | |
| 138 | + | |
112 | 139 | | |
113 | 140 | | |
114 | 141 | | |
| |||
254 | 281 | | |
255 | 282 | | |
256 | 283 | | |
257 | | - | |
| 284 | + | |
258 | 285 | | |
259 | 286 | | |
260 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
261 | 295 | | |
262 | 296 | | |
263 | 297 | | |
264 | | - | |
| 298 | + | |
265 | 299 | | |
266 | 300 | | |
267 | | - | |
| 301 | + | |
| 302 | + | |
268 | 303 | | |
269 | | - | |
| 304 | + | |
270 | 305 | | |
271 | 306 | | |
272 | 307 | | |
| |||
0 commit comments