Developers · Run it yourself
Download models from the command line
Download, try and remove models with the soundbox command, including gated ones.
The soundbox command downloads, tries and removes models without the server
or the app running. The Models page in the app uses the same catalogue and
the same downloader.
Before you begin
- Build Mirli and install the audio.cpp runtime, as described in Run Mirli from source.
- If your data folder is not in the default place, set
MIRLI_DATA_DIR. These commands do not read the server's--data-dirflag.
Download and try a model
List the catalogue:
Terminal soundbox listEach line shows a model's id and whether it is downloaded.
Download a model's weights:
Terminal soundbox pull <MODEL_ID>Replace
<MODEL_ID>with an id from the list, such asaudiocpp-stable-audio-3-sfx. Mirli downloads only the model's own files, not the whole Hugging Face repository.Render a sound to check the model works:
Terminal soundbox run <MODEL_ID> "heavy wooden door slamming" --out test.wavA file named
test.wavappears in the current folder.
Each model shows its licence before you download it. Some licences allow open use of the weights but forbid selling what the model makes.
Remove a model
To free the disk space a model uses, delete its weights:
soundbox rm <MODEL_ID>Download a gated model
None of the audio models is gated. The optional Stable Diffusion 3.5 Medium artwork model is, and so is any custom model you point at a gated repository. If a download fails with 401 or 403, the repository is gated and Mirli needs your Hugging Face token. Mirli cannot accept the terms for you.
- Sign in to Hugging Face and accept the licence on the model's page, such
as
huggingface.co/stabilityai/stable-diffusion-3.5-medium. - Create a token with read access at https://huggingface.co/settings/tokens.
- In the app, go to Settings > Models & engines > Hugging Face token and
paste the token. Alternatively, set
HF_TOKENin the server's environment. - Run
soundbox pull <MODEL_ID>again.
The server stores the token in its settings.json and never returns it over
the API.
Resume an interrupted download
If a download stops partway, the partial file is kept.
Run
soundbox pull <MODEL_ID>again, or on the Models page, click Repair on the model.The download continues from where it stopped.
For what Mirli does at each stage of a download, see Download behaviour.