okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Docker docs, compose defaults, scripts and the file test name the 0.2.7 image tags (0.2.7-cuda13 and the other flavors)df20d7784

main
1.5 KiB38 linesraw
1# Strata on an AMD card. gfx120X image: RX 9000 series and Radeon AI PRO R9700 (RDNA4). gfx110X image: RX 7000 series (RDNA3).
2# Needs the amdgpu kernel driver on the host (the ROCm user-space is in the image).
3#
4#   cp .env.example .env
5#   docker compose -f docker-compose.amd.yml up -d
6#
7# Images: ghcr.io/niko1221/strata (published from 0.2.1 on). To use one you built yourself: STRATA_IMAGE=strata:0.2.7-<flavor> docker compose up -d
8services:
9  strata:
10    image: ${STRATA_IMAGE:-ghcr.io/niko1221/strata:0.2.7-rocm-gfx120x}
11    container_name: strata
12    restart: unless-stopped
13    ports:
14      - "${STRATA_BIND:-127.0.0.1}:${STRATA_PORT:-8080}:8080"
15    environment:
16      MODEL: ${MODEL:-}
17      MODEL_PATH: ${MODEL_PATH:-}            # GGUF files you already have, as seen inside the container (mount them below)
18      CONTEXT: ${CONTEXT:-32k}
19      PARALLEL: ${PARALLEL:-}
20      VISION: ${VISION:-off}
21      TUNE: ${TUNE:-skip}
22      API_KEY: ${API_KEY:-}
23    volumes:
24      - strata-data:/data
25      # - /srv/gguf/IQ3_XXS:/models:ro
26    devices:
27      - /dev/kfd:/dev/kfd
28      - /dev/dri:/dev/dri
29    group_add:
30      - video
31      - "${RENDER_GID:-render}"              # the host's render group id: getent group render | cut -d: -f3 (needed if you add `user:`; root does not need it)
32    ulimits:
33      memlock: { soft: -1, hard: -1 }
34    shm_size: 2gb
35    stop_grace_period: 2m
36    # security_opt: [seccomp:unconfined]     # only if the log says a ROCm call was blocked (rare)
37volumes:
38  strata-data: