Move "init.sh" in "app" folder next to "docker-compose.yml"
You need to add your user to render and video groups "sudo usermod -aG render,video $USER"
Last active
June 7, 2026 12:05
-
-
Save mrintrepide/d971b5894d8b74d4c551d10c7f1cea2e to your computer and use it in GitHub Desktop.
Unsloth Studio podman-compose ROCm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| unsloth: | |
| image: rocm/vllm-dev:nightly | |
| container_name: unsloth | |
| restart: unless-stopped | |
| init: true | |
| entrypoint: ["/app/init.sh"] | |
| ports: | |
| - "8888:8888" | |
| devices: | |
| - /dev/dri | |
| - /dev/kfd | |
| group_add: | |
| - video | |
| - render | |
| security_opt: | |
| - label=disable | |
| volumes: | |
| - ./app:/app:ro,Z | |
| - unsloth:/root/.unsloth/:Z | |
| - huggingface:/root/.cache/huggingface/:Z | |
| volumes: | |
| unsloth: | |
| huggingface: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| MARKER_FILE="/root/.unsloth/.initialized" | |
| if [ ! -f "$MARKER_FILE" ]; then | |
| echo "Running initialization command..." | |
| mkdir -p /root/.local/bin | |
| apt update | |
| apt install cmake git libcurl4-openssl-dev -y | |
| echo "Start Unsloth installation..." | |
| curl -fsSL https://unsloth.ai/install.sh | env UV_SKIP_WHEEL_FILENAME_CHECK=1 sh | |
| echo "Initialization complete." | |
| touch "$MARKER_FILE" | |
| fi | |
| echo "Starting the main application..." | |
| source '/root/.unsloth/studio/unsloth_studio/bin/activate' | |
| unsloth studio -H 0.0.0.0 -p 8888 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment