Skip to content

Commit

Permalink
docs: add tensorboard note about vpn
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoley committed Nov 30, 2021
1 parent 64b4c1a commit fb7f3fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/wiki/handy-gcp-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ gcloud compute ssh --zone "us-central1-c" "instance-3" --tunnel-through-iap --p

Connect to the tensorboard that shows train loss (currently in the HFT branch).


Do this once for your GCP account:
* Add a Firewall rule in `GCP > VPC networks > Firewall` for TCP port `6006` using a tagname `firewall`.
* Create/edit a VM instance.


Then, for your VM instances:
* Include the `firewall` tagname in the list of VM Network tags.
* Start the VM and connect to it. `gcloud compute ssh instance-3`
* Start Docker and expose the 6006 port. `docker run --gpus all -it -p 80:5001/tcp -p 6006:6006/tcp --entrypoint /bin/zsh coedl/elpis:hft`
* Run Tensorboard with host arg. `tensorboard --logdir=/state/models/MODEL-HASH/runs --port 6006 --host=0.0.0.0`
* Browse to the machine's IP address, on http. `http://34.132.91.225:6006`

If the page isn't connecting, check that you aren't on a VPN which could be blocking the port.

0 comments on commit fb7f3fe

Please sign in to comment.