Suno-style web UI for a self-hosted MiniMax-Music3 inference server
TypeScript ai-musicdiffusersdockerexpressminimaxminimax-musicmusic-generationreactself-hostedsgl-omnisunotailwindcsstext-to-musictypescriptvite
Pin MiniMax inference dependencies and lint Python
Adam B.c84c386cb270
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e91eb62..d6afcf8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -6,6 +6,17 @@ on:pull_request:jobs:+ python:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v7+ - uses: actions/setup-python@v6+ with:+ python-version: "3.12"+ - run: python -m pip install ruff==0.17.2+ - run: ruff check --select E4,E7,E9,F inference/+ - run: python -m compileall -q inference/+test:runs-on: ubuntu-lateststeps:diff --git a/inference/README.md b/inference/README.mdindex 43bd98a..1bc223e 100644--- a/inference/README.md+++ b/inference/README.md@@ -8,6 +8,8 @@ python server.py --host 127.0.0.1 --port 7862# then point the UI at http://127.0.0.1:7862```+The inference package versions are pinned in `requirements.txt`; change a version there when updating the runtime dependencies.+### Model downloadThe weights (`MiniMaxAI/MiniMax-Music3`, tens of GB) are **not** in this repo. On first start the script pulls them from the Hugging Face Hub into the HF cache (`~/.cache/huggingface/hub`, or `$HF_HOME`) — expect the first launch to take a while and `/health` to return 503 until it's done. To fetch ahead of time, or on a machine with a slow link:diff --git a/inference/requirements.txt b/inference/requirements.txtindex e93fa40..2e0a315 100644--- a/inference/requirements.txt+++ b/inference/requirements.txt@@ -1,5 +1,8 @@-diffusers @ git+https://github.com/huggingface/diffusers-torch-soundfile-fastapi-uvicorn+# diffusers v0.41.0, commit 086bf9578c0f4acbc66e48cd1e7cc26befd9e10f, provides+# ModularPipeline and MiniMax Music 3's denoise/decoder hook targets.+diffusers==0.41.0+# Keep pip's normal platform wheel selection; do not force a +cpu or +cu variant.+torch==2.14.1+soundfile==0.14.0+fastapi==0.162.0+uvicorn==0.53.0diff --git a/inference/server.py b/inference/server.pyindex 25739a6..f4e9be2 100644--- a/inference/server.py+++ b/inference/server.py@@ -25,7 +25,7 @@ which fits on one card (~24 GB), so a client written against either works againsRequests are rendered one at a time; generation is ~3x slower than realtime on an RTX 3090.- pip install "diffusers @ git+https://github.com/huggingface/diffusers" torch soundfile fastapi uvicorn+ pip install -r requirements.txtpython server.py --host 127.0.0.1 --port 7862"""import argparse