EDUCATION & TRAINING

I Exported HT-Demucs FT to ONNX in 2026 (4 Blockers Everyone Else Gave Up On)

Dev.to Machine Learning

About This Tutorial

You can't ship htdemucs_ft on iOS. You can't ship it on Android. You can't run it in a browser. PyTorch Mobile is a 2 GB install and a permission to break, MLX needs Apple Silicon, and the obvious answer - ONNX - has been "broken on htdemucs" across four open GitHub issues for three years. I just shipped the first working ONNX export of htdemucs_ft. It runs in onnxruntime, is 1.31× faster than PyTorch on CPU, and is numerically equivalent to the original (max absolute difference: 0.000163 on drums, 0.000008 on vocals.