REPL Guide
The AbstractMusic REPL is an interactive shell for iterating on prompts, engines, models, and generation parameters without restarting the process.
Launch it with an engine (repl and cli are the same command). Like t2m, the REPL has no
default engine: name one with --backend (alias --engine), or a registry model with --model-id.
abstractmusic --backend acestep repl
abstractmusic --engine minimax-music3 cli --duration 30 --out-dir renders
abstractmusic repl --model-id stabilityai/stable-audio-3-small-sfx --out-dir sfx
Without an engine, the REPL exits with status 2 and lists the engines and which of them are usable
on this machine. Settings are startup flags or REPL commands; environment variables carry
credentials only (ELEVENLABS_API_KEY, ACEMUSIC_API_KEY, the Hugging Face token). The acemusic
engine needs --acemusic-base-url of a self-hosted ACE-Step API server. See
Getting started for the engines and Capabilities for what
each model can do.
Core concepts
- Engine: the backend implementation (
acestep,minimax-music3,stable-audio-3,elevenlabs, …). - Model: the provider model id from the packaged registry (for local engines, this is usually a Hugging Face repo id).
The REPL keeps an engine + model pair. If you pick a known model with /model, the REPL will
auto-switch to the correct engine when it can.
Quick start
/status
/prompt high-energy electronic synthwave track with heavy bass
/run
Styles, instruments, and vocal traits
Use style tags to steer instrumentation and vocal character without rewriting your entire prompt.
/style saxophone, brushed drums, female vocalist, smoky jazz club
/negative-style no autotune, no chipmunk voice
/prompt a clean jazz arrangement with a clear chorus lift
/run
With the deterministic planner (the default), style tags are written into the prompt; negative
style tags go only into a composition plan, so an engine whose model takes no plan refuses them at
/run. This is not voice cloning or a guaranteed vocalist identity selector; for voices, use
AbstractVoice.
Discover engines and models
/engineslists engines and their packaged default models./modelslists all known models, grouped by engine./modelshows the current model selection (or which default is in use)./engineshows the current engine selection (and the effective model).
Examples:
/engines
/models
/engine stable-audio-3
/model stabilityai/stable-audio-3-medium
/status
Switching engines and models (important)
Use /model <id> when you know which model you want. It will:
- set the model id
- auto-switch the engine if the model is known
- lower
/durationto the model's maximum when the current value exceeds it (for example Stable Audio Open Small, 11 s), and say so
Use /engine <name> when you want to force a backend implementation. If the current explicit model
belongs to a different engine, the REPL clears it back to that engine’s default to avoid accidental
mismatches.
Requests the model cannot honour
The REPL applies the same capability rules as t2m. A /run whose request the model cannot honour
(lyrics to a model that does not sing, /instrumental on together with lyrics, a duration outside
its limits, a format it does not write, a tempo or key on a model without that control) prints one
ERROR: line with the reason and the REPL stays open: change the setting (for example
/lyrics clear) and /run again. Nothing is dropped or replaced to make a request pass.
Downloads / offline mode
Local engines load Hugging Face weights and download missing ones by default. At startup,
--no-download (read by acestep and minimax-music3) requires the cache. Within a REPL session,
use:
/download off
to require cache-only loading (useful for offline runs), or:
/download on
to allow pulling missing files.
minimax-music3 is the exception: its weights are 12.6 GB (the default 8-bit package on Apple
silicon) or 28.6 GB (the published weights), so it downloads only after an
explicit /download on (or --download at startup); /download and /status show
off (minimax-music3 needs /download on) until then.
MiniMax-Music3 in the REPL
/engine minimax-music3
/download on
/duration 30
/seed 7
/runtime auto
/memory-mode auto
/early-end off
/prompt Instrumental cinematic piece, solo piano and soft strings, no vocals
/run
/runtime <auto|mlx|torch>chooses the runtime;/device <auto|mps|cuda|cpu>selects a torch device./memory-mode <auto|resident|staged>:auto(default) picks resident when the device has room and staged otherwise;stagedtrades a little loading time for a lower memory peak./early-end <on|off>lets the model end the song before the duration (off: the song is as long as/durationsays)./structure-fill <on|off>,/silence-after-end <on|off>and/fade-out <seconds|default>control the handling of short lyrics and of the end of the clip (all on by default; changes take effect on the next run without reloading the model; see Short lyrics and the end of the song)./lyrics <text>reads\n(backslash, n) as a line break:/lyrics [verse]\nMorning light across the harbor\n[chorus]\nCarry me home./lyrics-file <path>reads a UTF-8 file, one sung line per line./lyrics clearremoves them.- Before each generation the REPL prints any
NOTE:about the request (for example lyrics that are short for the duration). See MiniMax-Music3.
After each generation the REPL prints the output path and a run summary line (backend, model, runtime, device, dtype, audio length, wall time, seed, stage timings).
Duration limits
stable-audio(Stable Audio Open Small) supports up to 11 seconds.stable-audio-3models support longer durations (Small Music up to 120s; Medium up to 380s).minimax-music3supports up to 360s; the result is as long as the duration unless/early-end onlets the model end the song itself.
Without /duration (or --duration at startup), the REPL uses the model's own default length:
30 s for minimax-music3 and the Stable Audio 3 music checkpoints, 5 s for
stabilityai/stable-audio-3-small-sfx, 11 s for Stable Audio Open Small, 10 s for the other
engines. /duration default returns to it, and /status and /params mark it "(engine default)".
When you switch models with /model and the current /duration exceeds the new model's maximum,
the REPL lowers it to that maximum and prints the new value. A duration outside a model's limits
at /run is an error.
Common commands
/help
/status
/prompt <text|clear>
/run
/duration <seconds|default>
/lyrics <text|clear>
/lyrics-file <path>
/style <tags|clear>
/negative-style <tags|clear>
/steps <n|auto>
/seed <n|auto>
/format <wav|mp3|flac> (the model's own format when unset)
/device <auto|mps|cuda|cpu>
/dtype <auto|float16|bfloat16|float32>
/runtime <auto|mlx|torch>
/memory-mode <auto|resident|staged>
/early-end <on|off>
/structure-fill <on|off>
/silence-after-end <on|off>
/fade-out <seconds|default>
/download <on|off>
/bpm, /keyscale, /timesignature, /vocal-language <value>
/instrumental, /auto-lyrics, /enhance-prompt, /structure-prompt, /print-plan <on|off>
/text-planner <deterministic|auto|off>
/guidance <value>
/out-dir <directory>
/engine <name>
/model <id|default|clear>
/models
/engines
/params
/exit