Skip to content

Commit 1f3a741

Browse files
vertex-mg-botcopybara-github
authored andcommitted
chore: Remove preview in import path
PiperOrigin-RevId: 770211946
1 parent afacbe8 commit 1f3a741

25 files changed

Lines changed: 27 additions & 27 deletions

notebooks/community/model_garden/model_garden_deployment_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"outputs": [],
167167
"source": [
168168
"# @title Choose the model to deploy\n",
169-
"from vertexai.preview import model_garden\n",
169+
"from vertexai import model_garden\n",
170170
"\n",
171171
"# @markdown List all deployable models and then get the ID of the model to deploy.\n",
172172
"\n",
@@ -222,7 +222,7 @@
222222
"# @title Deploy with Model Garden SDK\n",
223223
"\n",
224224
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
225-
"from vertexai.preview import model_garden\n",
225+
"from vertexai import model_garden\n",
226226
"\n",
227227
"model = model_garden.OpenModel(MODEL_ID)\n",
228228
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_gemma2_deployment_on_vertex.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@
554554
"# @title [Option 1] Deploy with Model Garden SDK\n",
555555
"\n",
556556
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
557-
"from vertexai.preview import model_garden\n",
557+
"from vertexai import model_garden\n",
558558
"\n",
559559
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
560560
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_gemma3_deployment_on_vertex.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"\n",
227227
"LABEL = \"sdk-deploy-1b\"\n",
228228
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
229-
"from vertexai.preview import model_garden\n",
229+
"from vertexai import model_garden\n",
230230
"\n",
231231
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
232232
"endpoints[LABEL] = model.deploy(\n",
@@ -609,7 +609,7 @@
609609
"\n",
610610
"LABEL = \"sdk-deploy\"\n",
611611
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
612-
"from vertexai.preview import model_garden\n",
612+
"from vertexai import model_garden\n",
613613
"\n",
614614
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
615615
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_hf_paligemma2_deployment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
"# @title [Option 1] Deploy with Model Garden SDK\n",
229229
"\n",
230230
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
231-
"from vertexai.preview import model_garden\n",
231+
"from vertexai import model_garden\n",
232232
"\n",
233233
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
234234
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_huggingface_tei_deployment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"accelerator_count = 1\n",
194194
"\n",
195195
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
196-
"from vertexai.preview import model_garden\n",
196+
"from vertexai import model_garden\n",
197197
"\n",
198198
"model = model_garden.OpenModel(HUGGING_FACE_MODEL_ID)\n",
199199
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_huggingface_tgi_deployment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"# @title [Option 1] Deploy with Model Garden SDK\n",
203203
"\n",
204204
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
205-
"from vertexai.preview import model_garden\n",
205+
"from vertexai import model_garden\n",
206206
"\n",
207207
"model = model_garden.OpenModel(HUGGING_FACE_MODEL_ID)\n",
208208
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_huggingface_vllm_deployment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
" is_for_training=False,\n",
223223
")\n",
224224
"\n",
225-
"from vertexai.preview import model_garden\n",
225+
"from vertexai import model_garden\n",
226226
"\n",
227227
"model = model_garden.OpenModel(HUGGING_FACE_MODEL_ID)\n",
228228
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_jax_paligemma_deployment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
"# @markdown Kindly note that the deployment using custom_paligemma_model_uri is not supported.\n",
300300
"\n",
301301
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
302-
"from vertexai.preview import model_garden\n",
302+
"from vertexai import model_garden\n",
303303
"\n",
304304
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
305305
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_llama_guard_deployment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
"# @title [Option 1] Deploy with Model Garden SDK\n",
269269
"\n",
270270
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
271-
"from vertexai.preview import model_garden\n",
271+
"from vertexai import model_garden\n",
272272
"\n",
273273
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
274274
"endpoints[LABEL] = model.deploy(\n",

notebooks/community/model_garden/model_garden_pytorch_biomedclip.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
"\n",
218218
"LABEL = \"sdk-deploy\"\n",
219219
"# @markdown Deploy with Gen AI model-centric SDK. This section uploads the prebuilt model to Model Registry and deploys it to a Vertex AI Endpoint. It takes 15 minutes to 1 hour to finish depending on the size of the model. See [use open models with Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/open-models/use-open-models) for documentation on other use cases.\n",
220-
"from vertexai.preview import model_garden\n",
220+
"from vertexai import model_garden\n",
221221
"\n",
222222
"model = model_garden.OpenModel(PUBLISHER_MODEL_NAME)\n",
223223
"endpoints[LABEL] = model.deploy(\n",

0 commit comments

Comments
 (0)