Installation in GCP#
Installing Giskard in GCP enables you to inspect & test models that you created in the GCP environment (Workbench, Vertex AI, etc.). Here are the 3 steps to install Giskard in a new VM instance in GCP:
1. Create a Giskard VM Instance in GCP#
Go to VM instances in Compute Engine and create a VM instance
In the configuration of your VM :
We recommend you choose at least an
e2-standard-2
(2vCPU, 8GB memory)Choose
Allow full access to all Cloud APIs
In the firewall section, allow HTTP and HTTPS traffic
Connect to your VM in SSH by opening a browser window
Create a firewall rule to open the
19000
port of the Giskard instance. Here is the command line that you can execute in the terminal opened by your SSH connection:
gcloud compute firewall-rules create giskard-main --allow tcp:19000
Warning
Make sure you have the proper rights to open a port. If not contact your GCP administrator.
Note
Creating the firewall rules can also be done through UI in the VPC Network
section:
Go to the
firewall
inVPC Network
section of GCPClick on
create a firewall rule
In
Targets
, selectAll instances in the network
In
Source filter
, chooseIPv4 ranges
In
source IPv4 ranges,
select0.0.0.0/0
In
Protocols and ports
, selectSpecified protocols and ports
Then select
TCP
, and type19000
2. Install Giskard in the GCP VM#
Installation of the Giskard requirements (
git
anddocker
)
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Installation of Giskard
giskard server start
3. Connect to your instance and start uploading ML model#
Get the external IP address of your Giskard VM in the
VM instances
section of theCompute Engine
Go to
http://<your IP address>:19000
in your web browser
Hint
You can stop the instance and restart it when you need to save your GCP compute costs. However, note that
the IP address will not necessarily be the same. So make sure you copy it again when itโs launched.
you will need to restart the giskard server, by executing in the Giskard folder:
giskard server start
Thatโs it, you are now ready to use Giskard in GCP! Now you can start uploading an artifact! To do that in GCP, you can use a workbench notebook, for example!