Skip to content

Conversation

@Aditi2424
Copy link
Contributor

HyperparameterTuner._build_training_job_definition() was only copying user-provided input channels, missing ModelTrainer's internal channels (code, sm_drivers). This caused tuning jobs to fail when using custom training scripts.

  • Add logic to include ModelTrainer's input_data_config channels
  • Refactor test_tuner.py with factory functions to reduce duplication
  • Add test for internal channels inclusion

Fixes #5508

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

HyperparameterTuner._build_training_job_definition() was only copying
user-provided input channels, missing ModelTrainer's internal channels
(code, sm_drivers). This caused tuning jobs to fail when using custom
training scripts.

- Add logic to include ModelTrainer's input_data_config channels
- Refactor test_tuner.py with factory functions to reduce duplication
- Add test for internal channels inclusion

Fixes aws#5508
@nargokul nargokul merged commit 7ae43c8 into aws:master Jan 29, 2026
29 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HyperParameterTuner not fetching channels from ModelTrainer

3 participants