Repository navigation
Commit f8d3d99
fix: resolve Nova model artifacts via TrainingJob.get() in bedrock-modelbuilder-deployment example (#6091)
* fix: resolve Nova model artifacts via TrainingJob.get() in bedrock deploy example
In bedrock-modelbuilder-deployment.ipynb, after sft_trainer.train(wait=True) the
example printed sft_trainer._latest_training_job.model_artifacts.s3_model_artifacts.
For Nova training jobs the DescribeTrainingJob API returns no ModelArtifacts, and the
trainer's cached _latest_training_job is not re-fetched -- so model_artifacts stays
Unassigned and the cell raises 'AttributeError: Unassigned object has no attribute
s3_model_artifacts', halting the notebook before deploy.
Re-fetch the completed job with TrainingJob.get(), which synthesizes the artifacts
path from output_data_config (same pattern the earlier get() cell already uses).
* docs: shorten comment in bedrock deploy example (public notebook)
---------
Co-authored-by: hrehard <hrehard@amazon.com>1 parent 25f8c57 commit f8d3d99
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments