CPU / CUDA / MPS: one device resolver, memory-derived batches; docker-compose.cuda.yml for NVIDIA GPUs (branch distribution @ 75d5d80)
63ed286 verified Download docker-compose.cuda.yml from bryceweiner/fly-trader: direct link, hf CLI and curl.
- Browser
- Download file 868 Bytes
-
https://huggingface.co/bryceweiner/fly-trader/resolve/main/docker-compose.cuda.yml
- Command line
-
hf download hf://bryceweiner/fly-trader/docker-compose.cuda.yml
-
curl -L -o docker-compose.cuda.yml https://huggingface.co/bryceweiner/fly-trader/resolve/main/docker-compose.cuda.yml
868 Bytes
| # The same trader on an NVIDIA GPU. Layer it over the base file: | |
| # | |
| # docker compose -f docker-compose.yml -f docker-compose.cuda.yml up -d --build | |
| # | |
| # Host prerequisites: an NVIDIA driver new enough for CUDA 12.6 (>= 560) and the NVIDIA Container Toolkit | |
| # (`nvidia-ctk runtime configure --runtime=docker`, then restart Docker). The CUDA runtime itself ships inside the torch | |
| # wheel, so no CUDA base image is needed. DEVICE=auto picks the GPU when the container sees one; DEVICE_MEMORY_GB caps | |
| # the batch sizes derived from its free memory when the card is shared. | |
| services: | |
| fly: | |
| build: | |
| args: | |
| TORCH_INDEX: cu126 # or cu130 for the newest driver | |
| environment: | |
| DEVICE: auto | |
| deploy: | |
| resources: | |
| reservations: | |
| devices: | |
| - driver: nvidia | |
| count: all | |
| capabilities: [gpu] | |