Files
esh-pfi-infrastructure/stacks/stable-audio-open/compose.yaml
T
vh e0d1c44137 chore(fleet): repoint stale irv-ml1 refs (10.100.79.3 -> irv-ml1.nh3.internal)
The 2026-09-06 headscale cutover retired irv-ml1's wg0 tunnel IP 10.100.79.3
(now 10.6.110.50). Repointed all LIVE canonical refs to the DNS NAME so the next
move can't re-break them: homepage.href/siteMonitor labels across 25 stack
composes, load-bearing env defaults (asset-engine INFERENCE_HOST, open-webui
AUDIO_TTS_OPENAI_API_BASE_URL, skaldsong SKALDSONG_TTS_BASE_URL, zonos-gateway
ZONOS_URL, dia), homepage services.yaml manual cards (Voice Design Studio,
IRV-ML1), and servers/irv-ml1/ssh-target. Updated the stale 'WG tunnel' comment
to the mesh reality.

Left as-is: README curl-examples and .env.example comments (docs), and historical
mentions in CLAUDE.md/persistent-memory. NOTE: applying the label repoints to the
RUNNING irv-ml1 containers needs a recreate per service (labels read at creation);
deployed .env values are separate from these canonical defaults.
2026-09-07 15:08:56 -07:00

62 lines
2.6 KiB
YAML

# Stable Audio Open 1.0 — Stability AI's open-weight latent-diffusion
# SFX/ambience generator. 1.21B params, ~4-6 GB VRAM in fp16, up to
# 47 s clips at 44.1 kHz. Strong on text-aligned sound effects, foley,
# field-recording-style ambience. NOT a music model — it does not
# generate intelligible vocals or structured songs (use ACE-Step for
# that).
#
# LICENSE: Stability AI Community License. Personal / research use is
# free; commercial use requires a separate license from Stability
# (https://stability.ai/license). Same posture we already accepted
# for Voxtral.
#
# No upstream Docker image — we ship a custom Dockerfile + a small
# FastAPI shim (server.py) that wraps diffusers' StableAudioPipeline
# and exposes POST /v1/audio/sfx.
#
# All tunables live in .env — edit that, not this file.
services:
stable-audio-open:
image: local/stable-audio-open:${SAO_TAG}
build:
# Build context is the compose dir on the host — the playbook
# uploads server.py + Dockerfile alongside this compose.yaml.
context: .
dockerfile: Dockerfile
container_name: stable-audio-open
restart: unless-stopped
runtime: nvidia
ports:
- "${SAO_BIND:-0.0.0.0}:${SAO_PORT}:8000"
environment:
- NVIDIA_VISIBLE_DEVICES=${SAO_GPU_DEVICES:-1}
- SAO_MODEL=${SAO_MODEL:-stabilityai/stable-audio-open-1.0}
- HF_HOME=/app/hf_cache
# Model is gated on HuggingFace (you must accept the Stability
# Community License once on the model page before the token can
# download it). Set SAO_HF_TOKEN in .env. Without this, the
# first model download 401s and the container crashloops.
- HF_TOKEN=${SAO_HF_TOKEN}
volumes:
- ${SAO_CACHE_DIR}:/app/hf_cache
- ${SAO_OUTPUTS_DIR}:/app/outputs
healthcheck:
# /health is set by server.py — returns 200 once FastAPI is up
# AND the pipeline finished loading (lifespan blocks startup
# until the model is in VRAM).
test: ["CMD-SHELL", "python -c \"import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5).status==200 else 1)\""]
interval: 30s
timeout: 10s
retries: 3
# First boot pulls the model (~6 GB) into HF cache + loads to
# VRAM. Cold start ~3-5 min on a fast pipe; subsequent starts
# are ~30 s.
start_period: 600s
labels:
- homepage.group=AI Systems
- homepage.name=Stable Audio Open
- homepage.icon=mdi-waveform
- homepage.description=Diffusion SFX/ambience generator — up to 47s at 44.1 kHz (irv-ml1)
- homepage.href=http://irv-ml1.nh3.internal:${SAO_PORT}