Troubleshooting

Use this page for the errors and symptoms you can meet, each with its fix. For what each model can do, see Capabilities and Models; for the Python surface, see API.

Errors are one ERROR: line on stderr. Exit status 2 means the command asks for something the selected engine or model cannot do: change the command. Exit status 1 means something failed while running (a missing key, a retired endpoint, a device failure). --verbose shows the traceback of an unexpected failure.

"No engine selected"

ERROR: No engine selected: name one with --backend, or give the --model-id of a registry model (its engine is used). Engines on this machine: acemusic: not usable (...); elevenlabs: not usable (no ELEVENLABS_API_KEY); acestep: usable (weights cached: ...); ... Example: abstractmusic t2m "a calm piano piece" --backend acestep (see: abstractmusic t2m --help)

There is no default engine. Add --backend <engine> (the list says which engines are usable on this machine), or name a registry model with --model-id, whose engine is then used:

abstractmusic --backend acestep t2m "a calm piano piece" --duration 10 --out piano.wav
abstractmusic t2m --model-id stabilityai/stable-audio-3-small-sfx "laser zap" --duration 3 --out zap.wav

The same applies to abstractmusic repl. A --model-id the registry does not list needs an engine (--backend diffusers for an arbitrary Diffusers checkpoint); a model the named engine cannot run is an error that names the engine that runs it (Engine musicgen cannot run MiniMaxAI/MiniMax-Music3 (--model-id); it runs on --backend minimax-music3.).

"does not apply to engine ..."

ERROR: --runtime ('mlx') does not apply to engine acestep: only minimax-music3 reads it. Remove it, or choose that engine. (see: abstractmusic t2m --help)

An option you gave is read only by other engines. Remove it, or choose an engine that reads it. For example --runtime, --memory-mode, --lm-bits and the MiniMax-Music3 tail options are read only by minimax-music3; --device and --dtype only by local engines; --shift only by acestep; --composition-mode and the --elevenlabs-* options only by elevenlabs; --acemusic-* only by acemusic.

"... has no ... input" or "has no ... control"

ERROR: facebook/musicgen-small has no lyrics input: lyrics would not be sung. Remove them, or choose a model that sings lyrics (abstractmusic models --needs lyrics). (see: abstractmusic t2m --help)
ERROR: facebook/musicgen-small has no tempo control: bpm=120 would be ignored. Remove it, or choose a model that has one (abstractmusic models --needs tempo). (see: abstractmusic t2m --help)
ERROR: ACE-Step/acestep-v15-xl-turbo-diffusers has no guidance scale control: guidance_scale=5.0 would be ignored. Remove it, or choose a model that has one (abstractmusic models --needs guidance_scale). (see: abstractmusic t2m --help)

The model cannot honour that part of the request, so nothing is generated. Remove the value, or run the query the message gives to find a model that takes it. Typical cases: lyrics, --auto-lyrics or --lyrics auto to a model that does not sing (Stable Audio, MusicGen); --bpm, --keyscale or --timesignature to a model without that control; --steps to ElevenLabs, ACE Music or MusicGen; --guidance-scale to the ACE-Step turbo checkpoint (it is guidance-distilled); --instrumental to a model without an instrumental switch (Stable Audio Open, Stable Audio 3, generic Diffusers); --negative-style to a model that takes no composition plan.

"writes wav; format='mp3' is not one of them"

ERROR: ACE-Step/acestep-v15-xl-turbo-diffusers writes wav; format='mp3' is not one of them. (see: abstractmusic t2m --help)
ERROR: music_v1 writes mp3; format='wav' is not one of them. (see: abstractmusic t2m --help)

Each model writes its own formats: the local models write WAV, ElevenLabs writes MP3, an ACE-Step API server WAV, MP3 or FLAC. Drop --format to get the model's own format (and --out then defaults to out.<format>), or convert the file afterwards.

"makes at most ... s" or "makes at least ... s"

ERROR: stabilityai/stable-audio-open-small makes at most 11 s; requested 30 s. (see: abstractmusic t2m --help)
ERROR: ACE-Step/acestep-v15-xl-turbo-diffusers makes at least 10 s; requested 5 s. (see: abstractmusic t2m --help)

Request a duration within the model's limits (abstractmusic models --duration 30 lists the models that accept 30 s). Local models return exactly the requested length.

The prompt or lyrics are too long

MusicRequestError: ElevenLabs Music (abstractmusic:elevenlabs-music): the prompt has 5000 characters; ElevenLabs accepts at most 4100 ("maxLength": 4100 in the provider's API spec, https://api.elevenlabs.io/openapi.json). Shorten the prompt (nothing is cut).

Text longer than a model reads is refused, never cut. The limits: ACE-Step 256 prompt tokens and 2,048 lyric tokens (after the pipeline's own formatting), Stable Audio Open Small 64 tokens, Stable Audio 3 256 tokens, MusicGen 512 tokens, generic Diffusers per the checkpoint's tokenizer, ElevenLabs 4,100 characters, MiniMax-Music3 5,000 tokens for the caption and the lyrics together. Shorten the text, or choose a model with a larger limit (limits in its capability block).

"names a model this backend does not run"

MusicRequestError: MusicManager(model_id='facebook/musicgen-small') names a model this backend does not run: abstractmusic:acestep runs 'ACE-Step/acestep-v15-xl-turbo-diffusers'. Build the backend for that model, or drop model_id.

In Python, MusicManager(model_id=...) must name the model the backend runs. Build the backend for the model you want (for example AceStepBackendConfig(model_id=...)), or drop model_id. On the CLI, a checkpoint alias such as --backend stable-audio-3-medium together with a different --model-id is an error for the same reason: give one.

The hosted ACE Music endpoint is retired

ERROR: The hosted ACE Music API (https://api.acemusic.ai) is retired (HTTP 410): pass --acemusic-base-url with the URL of a self-hosted ACE-Step API server. (see: abstractmusic t2m --help)

The hosted service at https://api.acemusic.ai has retired the API the acemusic backend speaks (the ACE-Step chat-completions protocol); its task API is not implemented here. --backend acemusic without --acemusic-base-url, or with the hosted URL, is refused before any request is sent (exit status 2). Point the backend at a self-hosted ACE-Step API server, or use another engine:

export ACEMUSIC_API_KEY=...   # the key of your ACE-Step API server
abstractmusic --backend acemusic --acemusic-base-url http://127.0.0.1:8001 t2m "heroic fantasy epic music" --duration 30 --out epic.wav

In Python, AceMusicBackendConfig(base_url=...); through AbstractCore, music_acemusic_base_url. A Python call that targets the hosted URL, or a server that answers that the API is retired, raises AceMusicEndpointRetiredError. ERROR: Missing ACE Music API key. Set ACEMUSIC_API_KEY to a key for the ACE-Step API server at ... means the key is not set. ERROR: ACE Music API request failed: ... means the server did not answer: check connectivity and the base URL.

A NOTE says a variable is ignored

NOTE: ignored: ABSTRACTMUSIC_DURATION_S (use --duration); ACEMUSIC_BASE_URL (use --acemusic-base-url) (environment variables no longer configure AbstractMusic)

The variable is set in your environment but changes nothing; the command runs as written. Pass the flag named in the note instead, and unset the variable to remove the note. Only credentials are read from the environment (ELEVENLABS_API_KEY, ACEMUSIC_API_KEY, the Hugging Face token variables). Through AbstractCore, plugin results list such variables under ignored_environment, with the host config key to use. HF_HUB_OFFLINE and the other offline variables no longer change the CLI's download behaviour: pass --no-download.

ElevenLabs Music refusals and limited_access

The elevenlabs backend uses ELEVENLABS_API_KEY and only calls ElevenLabs Music endpoints. If a live call returns HTTP 402 with limited_access, the key authenticated but the account plan has no Music API access: upgrade to a plan with API access, or use another engine.

Requests ElevenLabs refuses before any call: a duration outside 3 to 600 s; a prompt over 4,100 characters; a format other than MP3; a seed in prompt mode (a seed is honoured only together with lyrics, a negative prompt or a composition plan); a composition plan beside a non-empty prompt (put the prompt's content in the plan); an --elevenlabs-output-format that is not an mp3_* value.

music_v1 is deprecated by ElevenLabs (removal 2027-01-31, replacement music_v2_5, not yet supported here); results carry a deprecation entry.

Local generation fails with missing packages

The base package does not install model runtimes. Install the extra of the engine you use:

pip install "abstractmusic[acestep]"

For local development:

python -m pip install -e ".[acestep,test]"

abstractmusic models --usable lists the models whose runtime is installed and whose weights are cached.

AbstractCore discovery lists no music providers

available_providers(...) reports only providers that can run right now. A provider is left out when its runtime extra is not installed, when its weights are not in the Hugging Face cache, or when its remote API does not answer with a success status. Ask the same capability object for provider_details(...), which reports every provider along with the reason it is unusable:

for item in capability.provider_details(task="text_to_music"):
    print(item["provider_id"], item["usable"], item["status"], item["metadata"]["reason"])

Match the reported status to the fix:

status Meaning Fix
not-installed The optional runtime extra is missing. pip install "abstractmusic[acestep]" (or the provider's own extra)
no-local-weights The runtime is installed, but no model is downloaded (or a download is incomplete; the reason says so). Download a model id from metadata.models
no-loadable-weights The only cached checkpoints use a repository layout the backend cannot load. Download the Diffusers-layout variant named in metadata.reason
incompatible-model The configured music_model_id is known to be unloadable by any pipeline. Configure a Diffusers-layout model id
not-configured No API key for a remote provider. Set ELEVENLABS_API_KEY or ACEMUSIC_API_KEY
unauthorized The API rejected the key (HTTP 401 or 403). Check the key and its account entitlements
retired The endpoint answered that its API is retired (HTTP 410); this is the hosted ACE Music service. Point music_acemusic_base_url at a self-hosted ACE-Step API server, or use another provider
unreachable The endpoint did not answer within 5 seconds. Check connectivity, base URL, and any proxy
unavailable The endpoint does not exist at that URL (404), rate-limited the probe (429), or returned another error. Check the base URL; retry later

metadata.cached_models lists which of the provider's models are already downloaded, and metadata.models lists everything it supports, so you can see what is available to fetch.

If a model looks downloaded but still reports no-local-weights, the cached copy is incomplete — a sharded checkpoint missing some of its shards is reported as not ready, because loading it would start a large download. Check a specific model id directly:

python -c "from abstractmusic.availability import hf_cache_root, is_model_cached; print(hf_cache_root(), is_model_cached('ACE-Step/acestep-v15-xl-turbo-diffusers'))"

If that prints False for a model you expect, re-run the download to completion. See Architecture for how availability is determined.

A generation failed on Apple MPS

ERROR: <backend>: generation failed on device 'mps' (chosen by device='auto'): <error>. The CPU was not tried: set auto_retry_cpu_on_mps_error=True (with device='auto') to allow one CPU retry, or ask for device='cpu'.

A device failure is an error: the CPU is not tried behind your back. Pass --device cpu to run on the CPU, or, with --device auto, opt into one CPU retry with --allow-cpu-retry (ACE-Step, Stable Audio, Stable Audio 3, Diffusers; plugin key music_allow_cpu_retry). The run line and metadata record the retry as device_fallback_from. An explicit --dtype the device cannot run is refused before loading (for example ACE-Step bfloat16 on the CPU); --dtype auto lets the backend choose (ACE-Step: bfloat16 on MPS when the PyTorch stack supports it, else float32).

abstractmusic --backend acestep --device cpu t2m "ambient music" --duration 10 --out ambient.wav

ACE-Step downloads or cache access fails

The acestep backend reads Hugging Face weights; it does not accept local ACE-Step source trees or checkpoint directories. Confirm the model is reachable from the Hugging Face cache:

python -c "from abstractmusic.availability import hf_cache_root, is_model_cached; print(hf_cache_root(), is_model_cached('ACE-Step/acestep-v15-xl-turbo-diffusers'))"

If the machine is offline, populate the cache first and pass --no-download.

Through AbstractCore (which loads from the cache only), a checkpoint that is not cached raises ModelWeightsMissingError naming its size and the explicit ways to download it, including abstractcore models download acestep <model>; a host answers it as a refused request and does not retry it. The same holds for every local backend through AbstractCore: Stable Audio 3, Stable Audio Open (which also needs its t5-base text encoder in the cache) and Diffusers checkpoints are never fetched at a generation; download them explicitly (abstractcore models download <backend> <model>, or the CLI).

Output sounds like wind or noise instead of music

The guided ACE-Step XL checkpoints (acestep-v15-xl-sft-diffusers, acestep-v15-xl-base-diffusers) can collapse into wind/whoosh-like sweeps when conditioned on long template captions. Short raw prompts work reliably. Check and fix:

  • Do not pass --enhance-prompt with XL sft/base checkpoints; template caption expansion is the known trigger, and the planner warns (caption_expansion_on_caption_sensitive_model) when you override it. (With the turbo checkpoint, --enhance-prompt is safe and can help.)
  • Long-form structure maps and --auto-lyrics avoid the known trigger on these checkpoints: the registry marks them caption-sensitive, so the deterministic planner renders those captions compactly (your prompt plus the section map, no template prose) and records compact_caption_for_caption_sensitive_model. This removes the caption shape that failed at 30 seconds; it is not a separate quality guarantee. An injected LLM text planner owns its own caption content — a long planner caption on a sensitive checkpoint is recorded as long_planner_caption_on_caption_sensitive_model in provenance rather than rewritten.
  • Confirm what actually reached the model with --print-plan.
  • Generation metadata reports the screen verdict: audio_stats.probably_noise_texture is true when the output matches the wind/whoosh signature. Retry with a different seed or a shorter prompt.

Long generations sound static or repetitive

For generations of 45 seconds or more, the CLI enables --structure-prompt by default. This adds a compact section map to the caption. For more control, pass explicit structure and use a seed:

abstractmusic --backend acestep t2m \
  "rhythmic space shooter game music, fast drums, evolving synth bass, arcade lead theme" \
  --duration 120 \
  --seed 123 \
  --enhance-prompt \
  --print-plan \
  --out game.wav

ACE-Step is still a local model with limits. If a candidate contains clock-like repeated tones, single-note collapse, or long near-silent pauses, treat it as a failed generation and try a new seed or a more explicit prompt.

Stable Audio weights cannot download

stabilityai/stable-audio-open-small and the Stable Audio 3 checkpoints are gated on Hugging Face. Accept the model terms with the account used by the machine and expose a token as HF_TOKEN or HUGGINGFACE_HUB_TOKEN:

pip install "abstractmusic[stable-audio-3]"
export HF_TOKEN=...
abstractmusic --backend stable-audio-3 t2m "rhythmic space shooter game music" --duration 30 --out game.wav

These backends run on inference code bundled in AbstractMusic; do not install the upstream stable_audio_3 or stable-audio-tools packages. Stable Audio 3 loads weights strictly: a checkpoint that does not match the model is an error naming the mismatch.

MiniMax-Music3

Usage, limits and measurements are in MiniMax-Music3. The CLI's stderr run line (run: backend=abstractmusic:minimax-music3 ... runtime=... device=... dtype=...) tells you where a generation ran.

"MiniMax-Music3 weights ... are not complete on this machine"

The weights (12.6 GB for the default 8-bit package on Apple silicon, 28.6 GB for the published weights) are downloaded only when you ask. Run once with --download (REPL: /download on; Python: MiniMaxMusic3BackendConfig(local_files_only=False)). The error names the model it looked for, why that model was chosen when you named none, and the cache directory. If another MiniMax-Music3 model is complete on the machine (for example the published weights from an earlier version, where they were the default), the error names it: pass --model-id <that model> to use it. If a download was interrupted, the same command resumes it; an error listing missing component folders means the download did not finish. Check the cache with:

python -c "from abstractmusic.availability import hf_cache_root; print(hf_cache_root())"

Through AbstractCore, provider_details(...) reports no-local-weights for minimax-music3 with "incomplete download (missing: ...)" in the reason until every component folder is present. The plugin never downloads by itself; fetch the weights once with the CLI, or, with AbstractCore 2.43.0 or later, with abstractcore models download minimax-music3 <model> (a --dry-run shows the files and the size first). A generation without the weights raises ModelWeightsMissingError, which a host answers as a refused request (HTTP 409 on AbstractCore's server) instead of retrying it.

"needs a model runtime" or "Optional dependency missing: mlx / torch"

Install a runtime extra: pip install "abstractmusic[minimax-music3-mlx]" on Apple silicon, or pip install "abstractmusic[minimax-music3]" for PyTorch (CUDA, MPS, CPU). --runtime mlx needs the MLX extra on an Apple silicon Mac; --device cuda|mps|cpu needs the torch extra. The backend checks this before it touches the Hugging Face Hub.

"ran out of memory", or the machine swaps heavily

The CLI reports an out-of-memory failure as one ERROR: line that names the next steps. Use --memory-mode staged (the default auto already stages when the device lacks room; the run line's memory_mode= shows which mode ran; auto stages below 48 GiB of memory, or on a CUDA device reporting less than 30 GiB): the two stages load in turn, which lowered the peak from 29.0 GB to 17.5 GB for a 20 s song with MLX on an Apple M5 Max. With MLX you can also load the language model with 8-bit weights (--lm-bits 8; Python MiniMaxMusic3BackendConfig(lm_bits=8); plugin music_lm_bits=8). The CPU path runs in float32 and needs about 51 GB of RAM. Close other GPU-heavy processes: memory is shared on Apple silicon.

"Could not start the MiniMax-Music3 runtime"

The runtime could not start on the requested device (for example --device cuda on a Mac). Use --device auto, a device the machine has, or --runtime mlx on Apple silicon.

"was called while another call is running on the same instance"

A runtime created directly with abstractmusic.runtimes.minimax_music3.create_runtime runs one call at a time and raises this error instead of waiting. Serialize the calls, or use one instance per thread. Through the backend (MiniMaxMusic3Backend, the CLI, AbstractCore), calls wait for each other instead.

"refuses dtype float16"

float16 produces non-finite audio in the vocoder. Use --dtype auto (the default), bfloat16, or float32.

The request is refused before generation

The error (a MusicRequestError, or for this model's own limits its subclass MiniMaxMusic3RequestError; CLI exit status 2) names the reason: a description and lyrics over the shared 5,000-token budget (shorten either, or split the song), a field over 32,000 characters, text of the form <|...|>, a duration over 360 s, a --negative prompt (not supported: describe what you want instead), a --format other than wav, an unrecognised --keyscale, --timesignature or --vocal-language (use an ISO 639-1 code such as fr, optionally with a region such as fr-FR, or an English language name), a --bpm that is not a whole number from 20 to 300, an empty --lyrics-file, --lyrics auto with a non-English --vocal-language (the built-in lyric templates are English only: write the lyrics or use a text planner), --instrumental together with lyrics (pass one of the two), a negative --seed (omit it for a random seed), --negative-style (the model takes no composition plan), or a setting or request key the model does not have. The message lists the accepted values. These checks run before any weights load.

"ERROR: : ... (rerun with --verbose for the traceback)"

An unexpected failure. Rerun the same command with --verbose to see the full traceback, and include it when you report the problem.

A NOTE about the text planner

  • "The text planner's caption stated ..., which the request did not give": the planner's caption claimed a tempo, key, time signature or language you did not ask for, so your own prompt is sent.
  • "The text planner wrote lyrics although none were requested": those lyrics are not sung and the piece is instrumental; ask for --auto-lyrics to sing planner-written lyrics.
  • "Auto-lyrics were requested but the text planner returned none": the piece is instrumental; write the lyrics or retry the planner.

The song is shorter than --duration, or its second half has no words

A MiniMax-Music3 song is as long as --duration says. It is shorter only when --allow-early-end (Python: allow_early_end=True) is set and the model ended the song itself (the run line shows ended_by_end_token=yes); remove that option to get the full length. With that option, a run can also fail with "ended the song before producing any audio": retry with another seed or without the option.

With fewer sung words than seconds, structure fill (on by default) wraps your lyrics in instrumental sections so the music continues to the end, and the singing covers only part of the song. The fill is skipped when the lyrics leave no room for an intro and an outro, when they already contain instrumental, solo, interlude or break sections or (instrumental) cue lines, or when they contain an unclosed [; the metadata's structure_fill_skipped says which. If a note after the run says "The model ended the song at X s: the audio fades out over F s and the last Y s are silent.", the model ended the song early and the rest was faded to silence: keep --structure-fill on, add lyrics or sections, or request a shorter duration. With the warning mostly_silent (more than half of the clip silenced), treat the take as failed and try another seed. Three lines carry about 135 to 150 s of music with this model whatever is added, so for a longer song write more lyrics; for singing throughout, write about 1.5 to 2.5 sung words per second. For clips of 30 s or less, do not start the lyrics with an [intro] tag: it can leave the clip without singing. Above 3.5 sung words per second (a guidance threshold), expect the song to end before the lyrics do (also announced by a NOTE:). To keep the model's raw output, pass --no-structure-fill, --no-silence-after-end and --fade-out 0.

"--out ... is a directory" or the output cannot be written

--out and --metadata-out are checked before generating, so a bad path costs no generation time. Missing directories are created; a path that is a directory, or a location you cannot write to, is an error (exit status 2). Give a file path you can write. If only the metadata file fails after the audio was saved, the CLI prints a warning and exits 0: the WAV is complete.

The lyrics are not sung, or the singing stops partway

Put every section tag on its own line ([verse], [chorus], ...); check the text sent with --print-plan (the metadata's lyrics_sent shows the lyrics as sent, including any structure fill). How much of the lyrics is sung varies with the seed: on 28 measured 30 s clips with a one-line caption, the median share of the requested words recognized by speech recognition (a lower bound) was 0.55, from 0.00 to 1.00. When the words matter, generate several seeds and keep the best take. Lyrics much shorter than the duration are sung early, and the rest of the song is instrumental. See How closely requests are followed. Read the NOTE: lines printed before generation:

  • "the prompt asks for a voice but no lyrics were given": without lyrics the request is instrumental; pass --lyrics, --lyrics-file or --auto-lyrics.
  • "the lyrics contain no words to sing": the lyrics hold only tags or cues in parentheses.
  • --instrumental together with lyrics is an error, not a note: drop --instrumental to sing the lyrics.
  • If the description says "instrumental" while you pass lyrics, the lyrics are still sung (warning prompt_mentions_instrumental_explicit_lyrics_kept).

The tempo or key is not what I asked for

--bpm is written into the caption, but the model does not follow tempo requests: the tempo was within 5% of the request on 2 of 20 measured clips and within 10% on 5 of 20. Generate several seeds on short clips, measure or listen, and render the closest at full length: a longer request with the same seed starts with the same music. --keyscale gave the exact key on 6 of 8 measured clips and a related key on the other 2. A key written only as words in a short caption was exact on 0 of 6 clips, and on 3 of 6 when written in a structured caption: pass --keyscale. If a take is off, try another seed. See How closely requests are followed.

A NOTE says the prompt and an option disagree

The description states one tempo, key, time signature or language and --bpm, --keyscale, --timesignature or --vocal-language states another. The description is kept as written and the option's value is added, so the model receives both. Remove one of them for a clear instruction.

An instrumental piece contains vocal sounds

Say in the description that the piece is instrumental (for example "instrumental, no vocals", or a Vocal Details section that says there are no vocals). The model can still add vocal sounds: of 14 measured instrumental clips, 7 had no recognizable singing and 3 had 4 s or more. Try another seed.

"non-finite audio" or a numerical error

No audio is written for such a run. Retry with --dtype float32, or on another runtime or device (--runtime torch, --device cpu).

Generation is very slow

Check the run line: device=cpu means the torch runtime ran on the processor because --device auto found no GPU it can use (about 32 minutes for a 30 s song, extrapolated from a measured 8 s run on an Apple M5 Max). On Apple silicon, install abstractmusic[minimax-music3-mlx] or pass --device mps. On NVIDIA, check that your PyTorch build sees CUDA (python -c "import torch; print(torch.cuda.is_available())"); the CUDA path has not been run on NVIDIA hardware in this release. --verbose prints stage progress.

Which device and precision did a generation use?

Read the run line the CLI prints on stderr after every generation:

run: backend=<backend id> model=<model id> device=<device> dtype=<dtype> audio=<seconds>s@<rate>Hz/<channels>ch wall=<seconds>s ...

device=cpu means the run used the processor; fallbacks=... lists fallback events such as an MPS-to-CPU retry; unreported means the backend does not report that value. In Python, the same facts are in the returned asset's metadata.

Release workflow refuses to publish

The release workflow validates the package version, changelog entry, tag, and PyPI availability. Manual publishing requires:

  • version matching src/abstractmusic/_version.py
  • publish=true
  • publish_confirmation=publish-abstractmusic-<version>

If PyPI already has the target version, bump the package version and changelog instead of trying to republish the same artifact.