Skip to content

Commit b42d9bf

Browse files
chore: Migrate gsutil usage to gcloud storage
1 parent fcb1580 commit b42d9bf

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ After installation completes, run the training script.
176176

177177
```bash
178178
BUCKET_NAME=my-bucket
179-
gsutil -m cp -r $TFRECORDS_DATASET_DIR gs://$BUCKET_NAME/${TFRECORDS_DATASET_DIR##*/}
179+
gcloud storage cp --recursive $TFRECORDS_DATASET_DIR gs://$BUCKET_NAME/${TFRECORDS_DATASET_DIR##*/}
180180
```
181181

182182
Now run the training command:
@@ -703,4 +703,3 @@ This script will automatically format your code with `pyink` and help you identi
703703
704704
The full suite of -end-to end tests is in `tests` and `src/maxdiffusion/tests`. We run them with a nightly cadance.
705705
706-

src/maxdiffusion/pedagogical_examples/save_sd_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""Load and save a checkpoint. This is useful for uploading checkpoints to gcs
1818
and later loading them from gcs directly.
1919
After calling this script, use gsutil to upload the weights to a bucket:
20-
gsutil -m cp -r sd-model-finetuned gs://<your-bucket>/sd_checkpoint/
20+
gcloud storage cp --recursive sd-model-finetuned gs://<your-bucket>/sd_checkpoint/
2121
"""
2222

2323
from typing import Sequence

src/maxdiffusion/pedagogical_examples/save_sdxl_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""Load and save a checkpoint. This is useful for uploading checkpoints to gcs
1818
and later loading them from gcs directly.
1919
After calling this script, use gsutil to upload the weights to a bucket:
20-
gsutil -m cp -r sdxl-model-finetuned gs://<your-bucket>/sdxl_1.0_base/
20+
gcloud storage cp --recursive sdxl-model-finetuned gs://<your-bucket>/sdxl_1.0_base/
2121
"""
2222

2323
from typing import Sequence

0 commit comments

Comments
 (0)