Update unsloth.yaml

This commit is contained in:
pixelthorn committed 2026-10-28 10:11:16 -05:00
1 parent 364ecca503
commit 3f78c5c8c1
1 file changed
+22 -6
+22 -6
View File
@@ -3,13 +3,23 @@ services:
image: unsloth/unsloth-rocm # pin a tag or digest once it works image: unsloth/unsloth-rocm # pin a tag or digest once it works
container_name: unsloth-train container_name: unsloth-train
restart: unless-stopped restart: unless-stopped
#The container runs as root by default. `--user <uid>:<gid>` is supported and keeps files on your mounts owned by you.
ipc: host ipc: host
#deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# device_ids: ["0"] #Explicit list of GPU identifiers (index "0", "1" or hardware UUID "GPU-xxx").
# capabilities: [gpu]
devices: devices:
- /dev/kfd:/dev/kfd - /dev/kfd:/dev/kfd
#- /dev/dri:/dev/dri
- /dev/dri/renderD128:/dev/dri/renderD128 - /dev/dri/renderD128:/dev/dri/renderD128
group_add: group_add:
- "44" # getent group video | cut -d: -f3 - 44 # getent group video | cut -d: -f3
- "992" # getent group render | cut -d: -f3 - 992 # getent group render | cut -d: -f3
ulimits: ulimits:
memlock: -1 memlock: -1
stack: 67108864 stack: 67108864
@@ -18,10 +28,16 @@ services:
- 8777:8888 - 8777:8888
environment: environment:
- JUPYTER_PASSWORD=${JUPYTER_PWD} - JUPYTER_PASSWORD=${JUPYTER_PWD}
- UNSLOTH_STUDIO_PASSWORD=${UNSLOTH_STUDIO_PASSWORD:-}
- HF_TOKEN=${HF_TOKEN:-} # hugging face token
- WANDB_API_KEY=${WANDB_API_KEY:-} # weights and biases key
- UNSLOTH_ALLOW_CPU=${UNSLOTH_ALLOW_CPU:-0}
volumes: volumes:
- /mnt/docker/server/unsloth:/workspace/host #The container working directory is `/workspace`. Mount `/data` for unified persistence across container recreations
- unsloth-cache:/workspace/.cache/huggingface - /mnt/docker/server/unsloth/host:/workspace/host # project directory
- unsloth-studio:/opt/unsloth-studio - /mnt/docker/server/unsloth/notebooks:/workspace/unsloth-notebooks # synced notebooks
- unsloth-cache:/workspace/.cache/huggingface # Model Downloads
- unsloth-data:/data #Unified persistence root: models, fine-tune outputs, exports, and auth db
labels: labels:
- homepage.group=Development - homepage.group=Development
@@ -38,5 +54,5 @@ networks:
volumes: volumes:
unsloth-cache: unsloth-cache:
unsloth-studio: unsloth-data: