Deploying machine learning model on GCP
Enable Billing
Go to IAM Admin > Managed Resources > Create New Project
Go to App Engine > Dashboard > Select the project
Download the Google Cloud SDK
Open terminal and login into the cloud SDK
[main].py for GCP
- Endpoint : Location in which to run predictions
- Model : Container to use (ModelContainerSpec)
- DeployedModel : Compute resources to use for online prediction
https://us-central1-aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/endpoints/{endpoint}:predict
References
- https://medium.com/analytics-vidhya/google-cloud-platform-custom-model-upload-rest-api-inference-and-model-version-monitoring-80216e69fbc2
- Vertex AI - https://cloud.google.com/vertex-ai/docs/samples/aiplatform-upload-model-sample#aiplatform_upload_model_sample-python
- Deploy a model to an endpoint : https://cloud.google.com/vertex-ai/docs/general/deployment