SoulX-Singer is a high-fidelity, zero-shot singing voice synthesis model that enables users to generate realistic singing voices for unseen singers.
This repository contains the NPU-adapted version of SoulX-Singer for Huawei Ascend 910 devices using torch_npu, including inference scripts, accuracy evaluation, and performance benchmarks.
| Metric | Value |
|---|---|
| Model Parameters | 704M |
| Tasks | Singing Voice Synthesis (SVS) |
| Framework | PyTorch + torch_npu |
| NPU Hardware | Ascend 910 (Atlas 800 A2) |
| Inference Precision | FP32 |
| CPU Inference Time | 2.805s |
| NPU Inference Time | 0.126s |
| Speedup | 22.2x |
| Metric | Mel Spectrogram | Audio Waveform |
|---|---|---|
| MAE | 6.60e-08 | 1.09e-02 |
| MSE | 2.68e-14 | 3.45e-04 |
| Max Absolute Diff | 9.54e-07 | 6.29e-02 |
| Cosine Similarity | 0.9999999 | 0.9999992 |
| Relative Error | 0.000009% | 0.171% |
| Pass (<1%) | ✅ PASS | ✅ PASS |
Overall Accuracy: ✅ PASS — NPU outputs are identical to CPU baseline within numerical precision tolerances.
| Mean | Std | Min | Max |
|---|---|---|---|
| 0.126s | 0.002s | 0.124s | 0.129s |
SoulX-Singer uses a Flow Matching architecture for singing voice synthesis:
Model checkpoint: model.pt (2.8 GB)
# Install PyTorch NPU
pip install torch torch_npu
# Install other dependencies
pip install numpy pyyamlThe model checkpoint (model.pt, 2.8 GB) is hosted on ModelScope. Download it before running inference:
pip install modelscope
modelscope download --model Soul-AILab/SoulX-Singer --local_dir ./SoulX-SingerAlternatively, download from AtomGit Releases (web UI upload recommended for large files).
# CPU-only inference
python inference.py --skip-npu --output-dir output --n-steps 32
# Full NPU evaluation (CPU baseline + NPU inference + accuracy comparison + benchmark)
python inference.py --output-dir output --n-steps 32 --benchmark-runs 10import torch, yaml
from model import SoulXSinger
with open('config.yaml') as f:
config = yaml.safe_load(f)
model = SoulXSinger(config)
ckpt = torch.load('model.pt', map_location='cpu', weights_only=True)
model.load_state_dict(ckpt['state_dict'], strict=True)
model.eval()
# Run on NPU
model = model.npu()
text = torch.randint(0, 3000, (1, 100)).npu()
pitch = torch.randint(0, 256, (1, 100)).npu()
note_type = torch.randint(0, 256, (1, 100)).npu()
f0 = torch.randint(0, 361, (1, 100)).npu()
noise = torch.randn(1, 1, 128).npu()
with torch.no_grad():
audio, mel = model(text, pitch, note_type, f0, n_steps=32, noise=noise)| File | Description |
|---|---|
model.py | Model architecture definition (587 parameters, 704M total) |
inference.py | NPU inference script with CPU comparison, accuracy check, and benchmark |
config.yaml | Model configuration |
model.pt | Pretrained checkpoint (2.8 GB) — download from ModelScope or AtomGit Releases |
output/eval_results.json | Full evaluation results (JSON) |
output/run.log | Complete evaluation run log |
Note:
model.pt(2.8 GB) andmodel-svc.pt(2.6 GB) are excluded from git (see.gitignore). Download them from ModelScope or upload manually via AtomGit web UI.
config.yaml.nn.Embedding for input encoders (text, pitch, type, F0)weight + bias format@misc{soulxsinger,
title={SoulX-Singer: Towards High-Quality Zero-Shot Singing Voice Synthesis},
author={Jiale Qian and Hao Meng and Tian Zheng and Pengcheng Zhu and Haopeng Lin and Yuhang Dai and Hanke Xie and Wenxiao Cao and Ruixuan Shang and Jun Wu and Hongmei Liu and Hanlin Wen and Jian Zhao and Zhonglin Jiang and Yong Chen and Shunshun Yin and Ming Tao and Jianguo Wei and Lei Xie and Xinsheng Wang},
year={2026},
eprint={2602.07803},
archivePrefix={arXiv},
primaryClass={eess.AS},
url={https://arxiv.org/abs/2602.07803},
}Apache 2.0 License — see the original SoulX-Singer repository for details.
For NPU adaptation questions, please open an issue in this repository.
Original authors: qianjiale@soulapp.cn, menghao@soulapp.cn, wangxinsheng@soulapp.cn