Full docs coming soon!
- Make sure uv is installed and run
uv sync
. - Obtain any environment variables needed (You can read the
Settings
class in util.py to see all of them) and put them inarena4-capstone/.env
.
My laptop isn't powerful enough to run Gemma locally, so here's the steps I've been taking to get everything up and running on a vast.ai machine:
- Make sure the machine is beefy enough
- For gemma 2b, at least 20gb storage (I've been using 32gb) and 12gb vram (I used an RTX 4090)
- Add to your SSH config by copying the "Direct ssh connect" command and running:
This will add an ssh host called "vast" to your SSH config. Change "vast" to anything you want this host to be called.
uv run add_ssh_host.py vast "ssh -p ...."
- On the remote machine, install requirements & clone repo using this command:
curl -LsSf https://astral.sh/uv/install.sh | sh && \ source ~/.bashrc && uv python install 3.12 && \ git clone https://github.com/Arrrlex/arena4-capstone.git && \ cd arena4-capstone && \ uv sync
- If using VSCode or Cursor, ensure Python and Jupyter extensions are installed. You can do this manually, or you can do it once by adding the following snippet to your
settings.json
:"remote.SSH.defaultExtensions": [ "ms-toolsai.jupyter", "ms-python.python" ]
- Get any secrets and configuration from your local machine to the remote machine. Locally, run this command:
scp .env vast:arena4-capstone/ && scp ~/.gitconfig vast:~/