GPU worker for Meta's SAM-Audio model. Text-prompted audio source separation on RunPod.
3.7K
RunPod-ready container for Meta's SAM-Audio audio separation model.
nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04Uses a "lite" mode (inspired by AudioGhostAI) that strips unused video components to reduce VRAM:
vision_encoder (~2GB saved)visual_ranker (~2GB saved)text_ranker (~2GB saved)Audio-only processing - video input not supported.
All endpoints require X-API-Key header.
POST /processStart an audio separation job.
Request:
{
"job_id": "uuid-string",
"user_id": "user-identifier",
"prompt": "drums",
"original_filename": "song.wav",
"use_float32": true,
"timeout_seconds": 43200
}
Response:
{
"status": "processing",
"job_id": "uuid-string"
}
GET /status/{job_id}Poll job progress.
Response:
{
"job_id": "uuid-string",
"status": "processing|completed|failed",
"output_key": "user-id/outputs/song_drums_residual.wav",
"error": null,
"chunks_processed": 3,
"total_chunks": 10,
"last_progress_ts": 1708012345.123
}
GET /healthResponse:
{
"status": "ok",
"model_loaded": true,
"active_jobs": 1
}
GET /startup-statusResponse:
{
"state": "starting|loading_model|ready|error",
"error": null
}
| Variable | Required | Description |
|---|---|---|
R2_ACCOUNT_ID | Yes | Cloudflare account ID |
R2_ACCESS_KEY | Yes | R2 access key |
R2_SECRET_KEY | Yes | R2 secret key |
R2_BUCKET | Yes | R2 bucket name |
API_KEY | Yes | API authentication key |
HF_TOKEN | Yes | HuggingFace token for model download |
SSH_PUBLIC_KEY | Optional | SSH access for debugging (recommended for remote deployments) |
docker run --gpus all -p 8000:8000 \
-e R2_ACCOUNT_ID=xxx \
-e R2_ACCESS_KEY=xxx \
-e R2_SECRET_KEY=xxx \
-e R2_BUCKET=xxx \
-e API_KEY=xxx \
-e HF_TOKEN=xxx \
bradeac/sam-audio-worker:latest
Content type
Image
Digest
sha256:c85a4a3a2…
Size
7.5 GB
Last updated
about 15 hours ago
docker pull camilbradea/sam-audio-worker:v1.0.19-10s