From 8913b4ac08ed3e4e667f4fc11b59c059cfe6159a Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Fri, 17 Jul 2026 13:13:54 -0400 Subject: [PATCH] Replace deprecated WANDB_LOG_MODEL=true with end in HF optimize notebook Modern transformers raises ValueError: 'true' is not a valid WandbLogModel. Use 'end' to log the final model as an artifact, and mention 'checkpoint' as the alternative for per-checkpoint logging. Also fixes the 'varilable' typo on the same line. Co-Authored-By: Claude Fable 5 --- .../Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colabs/huggingface/Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb b/colabs/huggingface/Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb index 4b186151..2aba4822 100644 --- a/colabs/huggingface/Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb +++ b/colabs/huggingface/Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb @@ -129,7 +129,7 @@ "\n", "W&B integration with Hugging Face can be configured to add extra functionalities:\n", "\n", - "* auto-logging of models as artifacts: just set environment varilable `WANDB_LOG_MODEL` to `true`\n", + "* auto-logging of models as artifacts: just set environment variable `WANDB_LOG_MODEL` to `end` (or to `checkpoint` to also log every checkpoint)\n", "* log histograms of gradients and parameters: by default gradients are logged, you can also log parameters by setting environment variable `WANDB_WATCH` to `all`\n", "* set custom run names with `run_name` arg present in scripts or as part of `TrainingArguments`\n", "* organize runs by project with the `WANDB_PROJECT` environment variable\n", @@ -150,7 +150,7 @@ "metadata": {}, "outputs": [], "source": [ - "%env WANDB_LOG_MODEL=true" + "%env WANDB_LOG_MODEL=end" ] }, {