Skip to content

Commit 404d7f1

Browse files
docs: update model code snippet order in README (#1154)
* docs: update model code snippet order in README * docs: update model code snippet order in README Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 1122a26 commit 404d7f1

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

README.rst

+14-10
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,13 @@ To train an AutoML tabular model:
245245
246246
Models
247247
------
248-
249-
To deploy a model:
248+
To get a model:
250249

251250

252251
.. code-block:: Python
253252
254-
endpoint = model.deploy(machine_type="n1-standard-4",
255-
min_replica_count=1,
256-
max_replica_count=5
257-
machine_type='n1-standard-4',
258-
accelerator_type='NVIDIA_TESLA_K80',
259-
accelerator_count=1)
253+
model = aiplatform.Model('/projects/my-project/locations/us-central1/models/{MODEL_ID}')
254+
260255
261256
262257
To upload a model:
@@ -269,11 +264,20 @@ To upload a model:
269264
serving_container_image_uri="us-docker.pkg.dev/vertex-ai/prediction/tf2-cpu.2-2:latest",
270265
)
271266
272-
To get a model:
267+
268+
269+
To deploy a model:
270+
273271

274272
.. code-block:: Python
275273
276-
model = aiplatform.Model('/projects/my-project/locations/us-central1/models/{MODEL_ID}')
274+
endpoint = model.deploy(machine_type="n1-standard-4",
275+
min_replica_count=1,
276+
max_replica_count=5
277+
machine_type='n1-standard-4',
278+
accelerator_type='NVIDIA_TESLA_K80',
279+
accelerator_count=1)
280+
277281
278282
Please visit `Importing models to Vertex AI`_ for a detailed overview:
279283

0 commit comments

Comments
 (0)