mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
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:
co-authored by
gurusai-voleti
parent
5efa51206f
commit
5b6c766629
+5
-5
@@ -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"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user