Stemd separates a mixed track into its parts: vocals, drums, bass and the rest of the music. It runs the models on your own GPU, Metal on Apple silicon or CUDA on NVIDIA.
Stemd is two things in one program:
- A desktop app. Drop a file on the window and the stems appear in a folder beside it.
- A separation server. Other machines on the network find it by mDNS and send it audio over HTTP. A DJ player or a script on a small board can use the GPU of the Mac or PC next to it.
In the window
- Drop a track, or click to choose one. Stems land beside the track in
<track>-stems/. - Choose the parts:
harmonics,vocalsanddrumsby default, or splitharmonicsintobassandother. - Stems are written as FLAC, WAV, MP3 or raw PCM, at 24, 44.1, 48 or 96 kHz.
- In any lossless format the stems sum back to the original track bit for bit.
- Three presets trade speed for quality: Fast, Balanced and Quality. See Presets.
- A running or queued drop can be stopped from its row.
- Stemd updates itself through Sparkle on macOS and a silent Setup on Windows, and shows a notice on Linux.
As a server
- The server speaks plain HTTP on port
8420: clients send raw PCM and get stems back. The contract is in docs/api.md. - It announces itself over mDNS as
_stemd._tcp, so a client needs no address. --headlessruns it without a window, on a desktop or a server.- Sessions separate a track piece by piece around a playhead. A player can play the part under its playhead before the track is done.
- Drops and clients share one job queue and one cache. A track separated once is a cache hit the next time, from a drop or a client.
model_idin/v2/healthnames the exact weights and settings behind the stems, so a client can key its own stem cache on it.- The server switch in the status bar turns the API off without closing the app. The gear beside it opens the settings: the longest track, the port, and the cache.
stemd-cliis the reference client:stemd-cli path/to/track.wav
| platform | download | needs |
|---|---|---|
| macOS | stemd-<version>-macos-arm64.dmg |
macOS 14 or later, Apple silicon |
| Windows | stemd-<version>-setup.exe or -windows-x64.zip |
NVIDIA driver 580 or later, else CPU |
| Linux | .deb, .rpm, .AppImage, x86_64 or aarch64 |
glibc 2.35 or later, NVIDIA driver 580 or later |
Every link opens the latest release. The first run downloads the model weights, 168 MB to 672 MB depending on the preset.
On Windows and Linux x86_64, the GPU must be an NVIDIA card of compute capability 7.5 or later: the GTX 16 and RTX 20 series and newer. Older cards run on the CPU.
macOS. Open the disk image and drag Stemd to Applications. The app is signed and notarized, and the ticket is stapled, so the first launch needs no network.
Windows. Run setup.exe. It installs for the current user without
administrator rights; the first page offers an install for all users. The zip
is for running without an installer.
For GPU separation, tick the CUDA box on the last page of the installer, or
run install-cuda.cmd later. It fetches about 1.2 GB of NVIDIA's runtime,
pinned by digest. Without it, Stemd runs on the CPU, which is much slower.
Linux. Each package carries the CUDA runtime and cuDNN; the NVIDIA driver is the only other requirement.
| Debian, Ubuntu | sudo apt install ./stemd-*-linux-x86_64.deb |
| Fedora, RHEL 10 | sudo dnf install ./stemd-*-linux-x86_64.rpm |
| anything else | chmod +x stemd-*.AppImage && ./stemd-*.AppImage |
Supported distributions: Ubuntu 22.04, Debian 12, Fedora 36, RHEL 10 and later. The aarch64 build targets NVIDIA Arm machines such as DGX Spark and Grace Hopper, and needs an NVIDIA GPU.
| preset | model | download | drums | bass | other | harmonics | vocals | RTX 3090 Ti | M1 Pro |
|---|---|---|---|---|---|---|---|---|---|
| Fast | htdemucs v4 |
168 MB | 8.27 | 8.17 | 5.14 | 8.62 | 8.92 | 106x | 18x |
| Balanced | htdemucs_ft |
672 MB | 8.49 | 8.40 | 5.20 | 8.78 | 9.28 | 55x | 8x |
| Quality | stemd RoFormer | 251 MB | 11.07 | 7.97 | 6.52 | 11.54 | 11.34 | 18x | 3.6x |
- The part columns give global SDR in dB, higher is better, over the first 12
MUSDB18-HQ test tracks at full length, measured on the shipped server.
drumsis scored as rebuilt from the mix, the way the window writes it. - The speed columns give multiples of realtime on a warm 64 s clip. The first separation after launch takes about twice as long while the GPU kernels compile.
- Fast is the default. It won a listening test on real material against the other two.
The method and notes are in docs/evaluation.md.
| stems | <track>-stems/, beside the track |
| models | the user data directory, downloaded once |
| cache | every separation. 8 GB and 30 days by default, set in Settings. |
Separating a track again returns the cached result. Stems are kept by track, model and output, and deleted after 30 days unused or when the cache is full.
Building needs cmake, Rust 1.89 or later, and a recursive clone.
docs/building.md covers the per-platform toolchains,
packaging and every flag.
git clone --recurse-submodules https://github.com/nsaintot/stemd
cargo build --release| docs/building.md | building, packaging and every flag |
| docs/api.md | the HTTP contract for writing a client |
| docs/internals.md | cache, queue, discovery, model loading |
| docs/evaluation.md | how the models were chosen and measured |
| docs/models.md | where the weights come from, and their licence |
Dual-licensed under MIT and Apache-2.0. Use whichever of the two you prefer. The code may be reused in commercial projects.
The model weights are not covered by either. stemd_roformer, stemd's own
model, which Quality runs, is CC BY-NC-SA 4.0. The other models keep the terms
their authors give them. See docs/models.md for the terms of
each model.
The MP3 encoder is LAME 3.100, which is under the GNU Library General Public License version 2 and is linked statically, so redistributing a built binary carries the obligations of that license.
crates/stemd-core/data/mode1_*.bin are measurements of third-party hardware.
The grant above does not purport to cover them. They are used for one
conversion, 44.1 to 96 kHz, and only when a request asks for it, so that a
client subtracting stems from its own mix gets the same filter on both sides.

