【Cloud GPU】How to use RunPod.io
This time, I introduce Runpod cloud GPU service.
1. What is Runpod?
RunPod is one of the rental cloud computing services, we can rent high-performance machines with pay-per-use.
I use this when need high computational resources in kaggle competition.
We can use about ~80GB VRAM / ~250GB RAM.
2. How to use
- visit the web page and sign up to runpod.
- Charge the money.
- Choice the GPU from "pods" tab, and deploy the pod.
-
Connect to pod. basically, I use ssh.(also can use jupyterlab or TCP)
when use ssh, you have to generate your public/private key pair.ssh-keygen -t ed25519 -C "your_email@example.com"
and register public key to settings.
-
Connect to the pod by following the connect instructions in the pod details.
2.1 Error handling
If you get the Could not establish connection to "XXXXXXXXXXXXXXXXXXX": Could not resolve hostname.
error in vscode, try to do this.
Adding the below to .ssh/config file:
・Open config file(or open from file manually)
nano ~/.ssh/config
・Add the config
Host myserver
HostName 190.68.000.00
User root
Port 22085
IdentityFile ~/.ssh/id_ed00000
finally, try to Cmd + Shift + P
, Remote-SSH: Connect to Host...
, and select myserver
.
This error is because the SSH extension in VSCode expects the hostname and port to be specified separately.
3. Notes
- While running pod, the fee is paid automatically.
- When turn off the pod, all of the data will lost, recommend you move to another place like github.
- The pod while turn off requires a little bit fee, when you delete the pod completely, the charges will stop
4. Summary
Cloud machine has so high performance. When you need the machine power, please consider using Cloud GPU survices.
Reference
[1] RunPod Official
Discussion