Migrate gsutil usage to gcloud storage (#4298)

* Migrate gsutil usage to gcloud storage

* update

* linter changes for 4298

* Revert "linter changes for 4298"

This reverts commit c7a00a9710.

* Linter fixes

* update

* update

* Update distributed_hyperparameter_tuning.ipynb

* removed changes in model_garden folder

---------

Co-authored-by: gurusai-voleti <gvoleti@google.com>
This commit is contained in:
Margubur Rahman
2025-12-19 11:56:15 -05:00
committed by GitHub
co-authored by gurusai-voleti
parent 5efa51206f
commit 5b6c766629
7 changed files with 32 additions and 30 deletions
@@ -303,7 +303,7 @@
},
"outputs": [],
"source": [
"! gsutil mb -l {LOCATION} -p {PROJECT_ID} {BUCKET_URI}"
"! gcloud storage buckets create --location={LOCATION} --project={PROJECT_ID} {BUCKET_URI}"
]
},
{
@@ -545,9 +545,9 @@
"source": [
"MODEL_URI = f\"{BUCKET_URI}/{model_name}\"\n",
"\n",
"!gsutil rm -r $MODEL_URI\n",
"!gsutil cp -r $model_path $MODEL_URI\n",
"!gsutil ls -al $MODEL_URI"
"!gcloud storage rm --recursive $MODEL_URI\n",
"!gcloud storage cp --recursive $model_path $MODEL_URI\n",
"!gcloud storage ls --all-versions --long $MODEL_URI"
]
},
{
@@ -823,7 +823,7 @@
"\n",
"delete_bucket = False\n",
"if delete_bucket:\n",
" ! gsutil -m rm -r $BUCKET_URI"
" ! gcloud storage rm --recursive $BUCKET_URI"
]
}
],