Skip to content

Commit 30ed8c7

Browse files
committedJun 20, 2022
GCP cli for model upload and deploy to endpoint
1 parent bde7589 commit 30ed8c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎README.md

+12
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,16 @@ curl \
4949
-H "Content-Type: application/json charset=utf-8" \
5050
https://us-central1-aiplatform.googleapis.com/v1/projects/$PROJECT_ID/locations/us-central1/endpoints/$ENDPOINT_ID:predict \
5151
-d "@$INPUT_DATA_FILE"
52+
```
53+
54+
### GCP
55+
56+
Create AI platform model from container
57+
```bash
58+
gcloud ai models upload --container-image-uri=northamerica-northeast1-docker.pkg.dev/brazen-score/brazen-score/brazen-score --display-name=brazen-score --container-health-route=/ping --container-predict-route=/predictions/brazen-score --container-ports=8080 --region=us-central1
59+
```
60+
61+
Deploy model to endpoint (with GPU)
62+
```bash
63+
gcloud ai endpoints deploy-model projects/33769752758/locations/us-central1/endpoints/5056865082374356992 --display-name=brazen-score --model=projects/33769752758/locations/us-central1/models/3793706541966688256 --region=us-central1 --machine-type=n1-standard-2 --accelerator=type=nvidia-tesla-k80
5264
```

0 commit comments

Comments
 (0)