Projects on the GPU

Make a folder a project, and its tools run on the GPU by name, in a Linux of its own.

The idea

Run jacket init in a project folder. From then on, in that folder, the project's tools (uv, python, pip, nvcc, nvidia-smi and anything you install for it) run on the GPU, by their usual names. Step out of the folder and every command is your Mac's again. It works like nvm or pyenv: the folder decides.

Each project gets a Linux of its own on the GPU (Ubuntu 24.04 by default). Install whatever the project needs, with sudo apt install if you like: only that project sees it. Your files stay in your Mac folder.

Start a project

$ cd ~/projects/vision
$ jacket init --python 3.12
Project ready: vision runs on the GPU (ubuntu-24.04, Python 3.12).
⚡gpu ~/projects/vision $ uv venv --seed
⚡gpu ~/projects/vision $ source .venv/bin/activate
(.venv) ⚡gpu ~/projects/vision $ uv pip install torch --index-url https://download.pytorch.org/whl/cu130
(.venv) ⚡gpu ~/projects/vision $ python train.py

The ⚡gpu mark in your prompt tells you the project's tools are the GPU's. jacket init writes a small .jacket file, and a .python-version if you chose a Python: commit them with your project and it sets up the same way on another Mac.

The jacket command. Jacket offers to add it to your Terminal when you first set up the GPU. Turn it on or off any time in Settings → Command line tools; open a new Terminal window afterwards.

Jacket's Projects pane lists your projects, with each one's Python and the space its Linux takes, and removes a project's Linux when you no longer need it (your files stay).

Commands

CommandWhat it does
jacket initMake this folder a project. Options: --python 3.12, --base ubuntu-24.04 or debian-13
jacketA shell on the GPU, in the project's Linux
jacket <command>One command on the GPU: jacket nvidia-smi, jacket make
jacket statusThe GPU's load and memory, and this folder's project
jacket rehashMake tools you installed in the project usable by name
jacket resetMake the project's Linux anew (your files stay)
jacket removeDelete the project's Linux (your files and .jacket stay)

Python versions

Each project has its own: jacket init --python 3.11, or a .python-version file, as pyenv and uv use. Different projects can use different versions at the same time.

uv, pip and other tools

The project's .venv from your Mac

The project's .venv works from your Mac as it is: activate it in any Terminal, or point your editor at .venv/bin/python. Whatever runs from it runs in the project's Linux on the GPU.

Bringing a project from your Mac

Already have a .venv made on your Mac? jacket init leaves it as it is: it keeps running on your Mac, on Apple's GPU. Jacket makes the GPU's environment next to it, .venv-jacket, with the same Python version and the same packages, built for Linux. PyTorch comes as its CUDA build.

$ jacket init
This folder has a Mac environment (.venv, Python 3.12, 9 packages).
Making the GPU's, .venv-jacket, with the same packages…
$ python train.py          # on the NVIDIA card, from .venv-jacket
$ .venv/bin/python train.py # on your Mac, as before

Other languages

A project is an ordinary Ubuntu, so anything that runs on Linux works in it. Install with sudo apt install, rustup, juliaup, nvm and the like, in a jacket shell or as jacket sudo apt install …. What you install works by name in the project from your Mac's Terminal right after, as uv does.

Good to know