ailuntz commited on
Commit
493bfe5
·
verified ·
1 Parent(s): 4c095e7

Add default bf16 README.md

Browse files
Files changed (1) hide show
  1. README.md +148 -0
README.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: mlx
4
+ pipeline_tag: text-to-audio
5
+ base_model:
6
+ - Soul-AILab/SoulX-Singer
7
+ tags:
8
+ - mlx
9
+ - apple-silicon
10
+ - singing-voice-synthesis
11
+ - singing-voice-conversion
12
+ - soulx-singer
13
+ ---
14
+
15
+ # SoulX-Singer
16
+
17
+ Apple MLX safetensors checkpoint for [`Soul-AILab/SoulX-Singer`](https://huggingface.co/Soul-AILab/SoulX-Singer), including both SoulX-Singer SVS and SoulX-Singer-SVC weights.
18
+
19
+ Collection: [https://huggingface.co/collections/mlx-community/soulx-singer-mlx-6a1c0525d0911ea400102840](https://huggingface.co/collections/mlx-community/soulx-singer-mlx-6a1c0525d0911ea400102840)
20
+
21
+ This default repository is the bf16 variant of [`mlx-community/SoulX-Singer-bf16`](https://huggingface.co/mlx-community/SoulX-Singer-bf16).
22
+
23
+ This is not a pure end-to-end MLX audio runtime yet. The weights are converted to an MLX-friendly safetensors layout, while full audio generation currently uses the official PyTorch model structure through [`ailuntx/SoulX-Singer-MLX`](https://github.com/ailuntx/SoulX-Singer-MLX).
24
+
25
+ ## TL;DR
26
+
27
+ | | |
28
+ |---|---|
29
+ | **Precision** | `bf16` default |
30
+ | **Disk** | 2.6G |
31
+ | **Components** | `svs/` and `svc/` |
32
+ | **Runtime / bridge** | [`ailuntx/SoulX-Singer-MLX`](https://github.com/ailuntx/SoulX-Singer-MLX) |
33
+ | **Official model** | [`Soul-AILab/SoulX-Singer`](https://huggingface.co/Soul-AILab/SoulX-Singer) |
34
+ | **Official code** | [`Soul-AILab/SoulX-Singer`](https://github.com/Soul-AILab/SoulX-Singer) |
35
+
36
+ ## Quick Start
37
+
38
+ ```bash
39
+ git clone https://github.com/ailuntx/SoulX-Singer-MLX.git
40
+ cd SoulX-Singer-MLX
41
+ conda create -n soulxsinger-mlx -y python=3.10
42
+ conda activate soulxsinger-mlx
43
+ python -m pip install -U pip
44
+ python -m pip install -r requirements.txt mlx safetensors huggingface_hub hf_transfer
45
+
46
+ HF_HUB_ENABLE_HF_TRANSFER=1 hf download mlx-community/SoulX-Singer --local-dir ./models/SoulX-Singer
47
+ hf download openai/whisper-base --local-dir pretrained_models/openai__whisper-base
48
+ ```
49
+
50
+ Run a short SVS bridge test:
51
+
52
+ ```bash
53
+ PYTORCH_ENABLE_MPS_FALLBACK=1 \
54
+ SOULX_WHISPER_MODEL=pretrained_models/openai__whisper-base \
55
+ python scripts/inference_mlx_bridge.py \
56
+ --model ./models/SoulX-Singer \
57
+ --component svs \
58
+ --device mps \
59
+ --prompt_wav_path example/audio/zh_prompt.mp3 \
60
+ --prompt_metadata_path example/audio/zh_prompt.json \
61
+ --target_metadata_path example/audio/zh_target.json \
62
+ --control melody \
63
+ --n_steps 1 \
64
+ --cfg 1 \
65
+ --save_dir outputs_mlx_bridge/svs
66
+ ```
67
+
68
+ Run an SVC bridge test:
69
+
70
+ ```bash
71
+ PYTORCH_ENABLE_MPS_FALLBACK=1 \
72
+ SOULX_WHISPER_MODEL=pretrained_models/openai__whisper-base \
73
+ python scripts/inference_mlx_bridge.py \
74
+ --model ./models/SoulX-Singer \
75
+ --component svc \
76
+ --device mps \
77
+ --prompt_wav_path example/audio/zh_prompt.mp3 \
78
+ --target_wav_path example/audio/music.mp3 \
79
+ --prompt_f0_path example/audio/zh_prompt_f0.npy \
80
+ --target_f0_path example/audio/music_f0.npy \
81
+ --n_steps 1 \
82
+ --cfg 1 \
83
+ --save_dir outputs_mlx_bridge/svc
84
+ ```
85
+
86
+ ## Variants
87
+
88
+ | Variant | Disk | Notes |
89
+ |---|---:|---|
90
+ | [`SoulX-Singer-4bit`](https://huggingface.co/mlx-community/SoulX-Singer-4bit) | 774M | smallest checkpoint; MLX affine quantized |
91
+ | [`SoulX-Singer-8bit`](https://huggingface.co/mlx-community/SoulX-Singer-8bit) | 1.4G | smaller checkpoint; MLX affine quantized |
92
+ | [`SoulX-Singer`](https://huggingface.co/mlx-community/SoulX-Singer) | 2.6G | default bf16 checkpoint |
93
+ | [`SoulX-Singer-bf16`](https://huggingface.co/mlx-community/SoulX-Singer-bf16) | 2.6G | explicit bf16 checkpoint |
94
+ | [`SoulX-Singer-fp32`](https://huggingface.co/mlx-community/SoulX-Singer-fp32) | 5.6G | full-precision conversion baseline |
95
+
96
+ ## Layout
97
+
98
+ ```text
99
+ SoulX-Singer-bf16/
100
+ |-- config.json
101
+ |-- config.yaml
102
+ |-- mlx_manifest.json
103
+ |-- svs/
104
+ | |-- model.safetensors.index.json
105
+ | `-- model-00001-of-000xx.safetensors
106
+ `-- svc/
107
+ |-- model.safetensors.index.json
108
+ `-- model-00001-of-000xx.safetensors
109
+ ```
110
+
111
+ This repo has 11 SVS shard(s) and 11 SVC shard(s).
112
+
113
+ ## Validation
114
+
115
+ Local Apple Silicon validation:
116
+
117
+ | Test | Result |
118
+ |---|---|
119
+ | Official PyTorch/MPS SVS, `n_steps=1` | generated 6.71s WAV, 24kHz mono |
120
+ | `SoulX-Singer-bf16` component load | `svs/` and `svc/` safetensors are indexed and loadable |
121
+ | bf16 PyTorch bridge SVS, `n_steps=1` | generated 6.71s WAV, 24kHz mono, RMS about `0.029` |
122
+
123
+ For quantized checkpoints, the bridge loader dequantizes MLX affine tensors into the official PyTorch module shapes for compatibility testing. Native all-MLX inference is planned as a later runtime step.
124
+
125
+ ## License
126
+
127
+ The converted weights follow the upstream SoulX-Singer Apache-2.0 release.
128
+
129
+ ## Citation
130
+
131
+ ```bibtex
132
+ @misc{soulx-singer-mlx,
133
+ title = {SoulX-Singer-MLX: Apple MLX safetensors port of SoulX-Singer},
134
+ author = {ailuntx},
135
+ year = {2026},
136
+ url = {https://github.com/ailuntx/SoulX-Singer-MLX},
137
+ }
138
+
139
+ @misc{soulxsinger,
140
+ title={SoulX-Singer: Towards High-Quality Zero-Shot Singing Voice Synthesis},
141
+ 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},
142
+ year={2026},
143
+ eprint={2602.07803},
144
+ archivePrefix={arXiv},
145
+ primaryClass={eess.AS},
146
+ url={https://arxiv.org/abs/2602.07803},
147
+ }
148
+ ```