Skip to content

fix: import pprint in mtrl finetuning example notebook - #6085

Merged
lucasjia-aws merged 2 commits into
aws:masterfrom
Hannah14295:fix/mtrl-notebook-pprint-import
Jul 23, 2026
Merged

lucasjia-aws merged 2 commits into
aws:masterfrom
Hannah14295:fix/mtrl-notebook-pprint-import

Conversation

@Hannah14295

Copy link
Copy Markdown
Contributor

Issue

v3-examples/model-customization-examples/mtrl_finetuning_example_notebook_v3_prod.ipynb calls pprint(...) to display the trainer's default hyperparameters, but the notebook never imports pprint, so that cell fails with NameError: name 'pprint' is not defined.

Fix

Add from pprint import pprint at the top of the cell that uses it. One-line change; no functional change beyond fixing the missing import.

mtrl_finetuning_example_notebook_v3_prod.ipynb calls pprint() to display the
trainer's default hyperparameters but never imports it, so that cell raises
NameError: name 'pprint' is not defined. Add 'from pprint import pprint'.
@lucasjia-aws
lucasjia-aws merged commit 25f8c57 into aws:master Jul 23, 2026
6 checks passed

This branch was previously deployed

1 inactive deployment
manual-approval — a5b88b45 Deployed Jul 23, 2026 by Hannah14295 via wait-for-approval #1085
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.

3 participants