|
188 | 188 | " ! gsutil mb -l {REGION} {BUCKET_URI}\n", |
189 | 189 | "else:\n", |
190 | 190 | " 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", |
192 | 192 | " bucket_region = shell_output[0].strip().lower()\n", |
193 | 193 | " if bucket_region != REGION:\n", |
194 | 194 | " raise ValueError(\n", |
|
239 | 239 | "\n", |
240 | 240 | "# @markdown **Only select and fill one of the following sections.**\n", |
241 | 241 | "# 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", |
245 | 243 | "\n", |
246 | 244 | "# @markdown ---\n", |
247 | 245 | "\n", |
|
451 | 449 | "# @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", |
452 | 450 | "\n", |
453 | 451 | "# @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", |
457 | 453 | "\n", |
458 | 454 | "# The pre-built training docker image.\n", |
459 | 455 | "if training_accelerator_type == \"NVIDIA_A100_80GB\":\n", |
|
0 commit comments