These instructions will show you how to start a Google Compute Engine (GCE) VM with Docker installed, and how to run the DRAGNN container there.
Sign up for a free trial of Google Cloud Platform (GCP). You will need a credit card to sign up, and you will receive $300 of free credits. Note: you will not be billed, unless you decide to renew after the trial ends.
Important note: If you prefer, feel free to use an alternative Cloud provider.
Click on the Cloud Shell icon (leftmost icon in the set of icons at top-right of the page).
Click on "Start Cloud Shell" on the bottom right of the pop-up screen. You should now see a terminal at the bottom of your window for the Cloud Shell with the text "Welcome to Cloud Shell! Type "help" to get started."
Run this command in the Cloud Shell.
gcloud compute instances create dragnn-instance \
--image-family gci-stable \
--image-project google-containers \
--zone us-central1-b --boot-disk-size=100GB \
--machine-type n1-standard-1
After you run this command, you can ignore the "I/O performance warning for disks < 200GB".
gcloud compute firewall-rules create dragnn-ipython --allow tcp:8888
Run this command to download and run the container, setting up the port forwarding to be able to access the notebook.
sudo docker run --rm -ti -p 8888:8888 tensorflow/syntaxnet
Connect to the server, using the link in the Docker log output. Replace
localhost
with the "External IP" from step #5 followed by :8888, i.e.
<External_IP>:8888
in the address bar.
Upload your data if necessary:
You can build the DRAGNN network and visualize its architecture:
Unroll the network dynamically on a given input:
Run training and evaluation: