This template is to create a webhook endpoint for Numerai Compute using Google Cloud Run. Inspired by numerai-cli(numerai official AWS version).
- set
numerai-public-id
andnumerai-secret
into Secret Manager. - create
numerai-compute
container image repository in Artifact Registry. - create service account to access
cloud run/secret/artifact registry
. - set
GCP_REGION/GCP_PROJECT/GCP_SERVICE_ACCOUNT
in Makefile
- write codes into predictor.py
- put required resource (i.e. model pickle files) into resources
- Run below command to deploy into Cloud Run, then you can get an URL.
make release-pred1
(pred1
is directory name under predictors directory. You can add your own directory such aspred2
)
- Compose numerai compute URL with Numerai Model ID.
- You can get Model ID from https://numer.ai/models by clicking
Copy Model ID
https://YOUR_CLOUD_RUN_URL/pred/YOUR_NUMERAI_MODEL_ID
- Set the composed URL into Compute as
Submission webhook
- Click
Test
button in the modal window to check your webhook