Skip to content

Commit c2b6077

Browse files
author
Charles Li
committed
Add log output for jupyter notebooks
1 parent dd5de1f commit c2b6077

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/run_jupyter_notebooks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
# 2. Install MaxText package and all the post training dependencies
7474
uv pip install ${maxtext_wheel}[tpu-post-train] --resolution=lowest
7575
install_tpu_post_train_extra_deps
76-
76+
7777
python3 -m pip freeze
7878
- name: Run Post-Training Notebooks
7979
shell: bash
@@ -115,7 +115,7 @@ jobs:
115115
echo "Running $filename ..."
116116
echo "------------------------------------------------------"
117117
118-
$PAPERMILL_EXE "$notebook" "$output_name" -k maxtext_venv
118+
$PAPERMILL_EXE "$notebook" "$output_name" -k maxtext_venv --log-output --log-level INFO
119119
done
120120
- name: Upload Outputs
121121
if: always()

src/maxtext/examples/sft_llama3_demo_tpu.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"\n",
118118
" # Install uv, a fast Python package installer\n",
119119
" !pip install uv\n",
120-
" \n",
120+
"\n",
121121
" # Install MaxText and post-training dependencies\n",
122122
" !uv pip install -e .[tpu-post-train] --resolution=lowest\n",
123123
" !install_tpu_post_train_extra_deps"
@@ -188,8 +188,10 @@
188188
"try:\n",
189189
" from google.colab import userdata\n",
190190
" HF_TOKEN = userdata.get(\"HF_TOKEN\")\n",
191+
" print(f\"get HF_TOKEN=f{HF_TOKEN} from google.colab\")\n",
191192
"except ImportError:\n",
192193
" HF_TOKEN = os.environ.get(\"HF_TOKEN\", \"\")\n",
194+
" print(f\"get HF_TOKEN=f{HF_TOKEN} from env\")\n",
193195
"\n",
194196
"# If not found in the environment, prompt the user for input securely\n",
195197
"# getpass function ensures the token is hidden while you type\n",

0 commit comments

Comments
 (0)