A Pytorch project on Python 3.12, setup with uv, to be run on an AWS EC2 instance with GPU.
- Update your
~/.ssh/configfile with the ip/port of the new server. It should look something like this:
Host g6
HostName 80.15.7.37
User ubuntu
IdentityFile ~/.ssh/id_ed25519_osl_devops
Note that you may have named the private key file differently, and that you need to replace HostName with the current public IPv4 address of the g6 instance. See planx-new/infrastructure/ml/README.md for more on that.
-
Go to the
Remote Explorertab in vscode and connect tog6. -
Once conncted, make sure the
Jupyterextension is installed in the vscode server on the remote, so that you can work with the notebooks. -
If you're not already authenticated with git, run
git auth loginand provide the token. -
From either the terminal inside vscode, or your own separate ssh session, navigate to the
planx-mlrepo, ensure you have the latest version ofmain, and runuv sync. -
You are go! 🔥