Skip to content

Commit a5e773e

Browse files
Update model_garden_pytorch_llama3_1_finetuning.ipynb
1 parent ffaad72 commit a5e773e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

notebooks/community/model_garden/model_garden_pytorch_llama3_1_finetuning.ipynb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
" ! gsutil mb -l {REGION} {BUCKET_URI}\n",
189189
"else:\n",
190190
" assert BUCKET_URI.startswith(\"gs://\"), \"BUCKET_URI must start with `gs://`.\"\n",
191-
" shell_output = ! gsutil ls -b {BUCKET_NAME} | grep \"Location constraint:\" | sed \"s/Location constraint://\"\n",
191+
" shell_output = ! gsutil ls -Lb {BUCKET_NAME} | grep \"Location constraint:\" | sed \"s/Location constraint://\"\n",
192192
" bucket_region = shell_output[0].strip().lower()\n",
193193
" if bucket_region != REGION:\n",
194194
" raise ValueError(\n",
@@ -239,9 +239,7 @@
239239
"\n",
240240
"# @markdown **Only select and fill one of the following sections.**\n",
241241
"# It is recommended to use \"Google Cloud\" for 405B model since it can be downloaded faster.\n",
242-
"LOAD_MODEL_FROM = (\n",
243-
" \"Google Cloud\" # @param [\"Hugging Face\", \"Google Cloud\"] {isTemplate:true}\n",
244-
")\n",
242+
"LOAD_MODEL_FROM = \"Google Cloud\" # @param [\"Hugging Face\", \"Google Cloud\"] {isTemplate:true}\n",
245243
"\n",
246244
"# @markdown ---\n",
247245
"\n",
@@ -451,9 +449,7 @@
451449
"# @markdown 1. If `max_steps > 0`, it takes precedence over `epochs`. One can set a small `max_steps` value to quickly check the pipeline.\n",
452450
"\n",
453451
"# @markdown Acceletor type to use for training.\n",
454-
"training_accelerator_type = (\n",
455-
" \"NVIDIA_A100_80GB\" # @param [\"NVIDIA_A100_80GB\", \"NVIDIA_H100_80GB\"]\n",
456-
")\n",
452+
"training_accelerator_type = \"NVIDIA_A100_80GB\" # @param [\"NVIDIA_A100_80GB\", \"NVIDIA_H100_80GB\"]\n",
457453
"\n",
458454
"# The pre-built training docker image.\n",
459455
"if training_accelerator_type == \"NVIDIA_A100_80GB\":\n",

0 commit comments

Comments
 (0)