Port forwarding
Let's say you're running tensorboard (or any other server) on your Wisp cluster's localhost. How do you access it from your local machine's browser?
Luckily, this is a very simple problem to solve. As Wisp is simply setting up SSH sessions to your cluster, you can use SSH Tunnels (or SSH port forwarding) to access your cluster's localhost.
Example: Accessing Tensorboard UI on your local machine
Let's say you have a Tensorboard server running as part of a training workload running
on localhost:6006
, and the job has been submitted with wisp run
.
To access Tensorboard UI, we use local port fowarding to the cluster.
First, identify the IP of the cluster with Tensorboard running. Go to the
Dashboard, and under your cluster, click the "ssh"
button and copy the username and ip (for example [email protected]
).
In your terminal, execute the command, substituting variables with your own:
ssh -i ~/.ssh/wisp-key -L :<LOCAL_PORT>:localhost:6006 -N <USERNAME>@<IP>
Wisp has already set up your ssh keys, so you should now be able to access Tensorboard
on localhost:<LOCAL_PORT>
!