Connect a GPU
Connection
Checking…
Which GPU to rent
| GPU | Memory | From, per hour | Our take |
|---|---|---|---|
| A100 40 GB | 40 GB | $0.43 | Start here The same GPU family Microsoft tested (A100 and H100), with 40 GB so the text-to-image stage fits beside the 3D model. The safest first install. |
| RTX 4090 24 GB | 24 GB | $0.36 | Cheaper, try second Meets the 24 GB floor exactly but is not on the tested list. Free the text-to-image model before the 3D stage, or use photo mode only. Compare quality and seconds against the A100 before you commit. |
| L40S 48 GB | 48 GB | $0.43 | Most headroom 48 GB runs both models side by side with no offloading. Same Ada generation as the 4090. Few offers, so availability varies. |
| RTX 5090 32 GB | 32 GB | $0.49 | Newest, needs care More memory than a 4090. Blackwell cards likely need a PyTorch build for CUDA 12.8 or newer, while the README's default environment uses PyTorch 2.6.0 with CUDA 12.4, so expect to install PyTorch by hand. |
Text mode adds a first stage, FLUX.1 [schnell] (Apache-2.0), that draws one image for TRELLIS.2 to lift into 3D. It has not been run on a GPU yet, so treat the 24 GB cards as untested for text mode until you try it. Photo mode skips it.
Connect it
- 1
Rent a GPU
On Vast.ai (or any host that gives you a Linux shell with an NVIDIA GPU): one GPU, at least 24 GB of memory (an A100 40 GB is the safe first pick), at least 100 GB of disk, a verified host with high reliability. Pick an image with CUDA 12.4, for example pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel. A stopped instance still bills for its disk, so destroy it when you are done testing. Text mode also wants about 48 GB of system RAM; photo mode does not.
- 2
Copy the worker over and install it
The worker/ folder of this project is the GPU side. It installs TRELLIS.2 following Microsoft's own steps, then FastAPI and the text-to-image model. The first run downloads tens of gigabytes of weights. Vast shows the SSH port on the instance card: use it with scp -P.
From your computer, then on the GPU machinescp -P <ssh-port> -r worker root@<gpu-ip>:~/plinth-worker ssh -p <ssh-port> root@<gpu-ip> cd ~/plinth-worker && bash setup.sh - 3
Start it
Pick a long random token. The web app sends it with every request, and the worker refuses anything without it.
On the GPU machineexport WORKER_TOKEN="$(openssl rand -hex 24)"; echo "$WORKER_TOKEN" bash run.sh - 4
Give it an HTTPS address
A Cloudflare quick tunnel is the simplest way: it prints a https:// address that forwards to the worker. For local testing an SSH tunnel is enough.
On the GPU machinecloudflared tunnel --url http://localhost:8000 # or, from your computer: ssh -L 8000:localhost:8000 root@<gpu-ip> - 5
Tell the web app
Put the address and the token in .env.local (or the host's environment settings) and restart the app. The banner at the top of every page turns green when it can reach the worker.
.env.localGPU_WORKER_URL=https://<the-tunnel-address> GPU_WORKER_TOKEN=<the token from step 3> - 6
Build a test model
Open the Studio, add a clear photo of one object and press Build. Compare the seconds and the result against the reference numbers on the engine page, then try a cheaper GPU.