Repository navigation
Commit 203ddf3
fix(train): correct Networking field names in ModelTrainer intelligent defaults
Two bugs in _populate_intelligent_defaults_from_training_job_space():
1. Networking constructor was passed `default_enable_network_isolation`
which does not exist in sagemaker-core 2.x. The correct field name
is `enable_network_isolation`. This caused a Pydantic ValidationError
when sagemaker_config had a VpcConfig value set, making ModelTrainer
unusable in SageMaker distribution 4.0 out of the box.
2. When updating an existing Networking object, `security_group_ids` was
mistakenly assigned the subnets value from TRAINING_JOB_SUBNETS_PATH
instead of the correct value from TRAINING_JOB_SECURITY_GROUP_IDS_PATH.
Fixes #57661 parent 3982ca6 commit 203ddf3
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
| 350 | + | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
0 commit comments