Text-to-Speech
VoxCPM
English
voxcpm2
voice-cloning
quantization
fp8
torchao
w8a8
blackwell
english
v1
Instructions to use ajh-code/VoxCPM2-FP8-W8A8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VoxCPM
How to use ajh-code/VoxCPM2-FP8-W8A8 with VoxCPM:
import soundfile as sf from voxcpm import VoxCPM model = VoxCPM.from_pretrained("ajh-code/VoxCPM2-FP8-W8A8") wav = model.generate( text="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech.", prompt_wav_path=None, # optional: path to a prompt speech for voice cloning prompt_text=None, # optional: reference text cfg_value=2.0, # LM guidance on LocDiT, higher for better adherence to the prompt, but maybe worse inference_timesteps=10, # LocDiT inference timesteps, higher for better result, lower for fast speed normalize=True, # enable external TN tool denoise=True, # enable external Denoise tool retry_badcase=True, # enable retrying mode for some bad cases (unstoppable) retry_badcase_max_times=3, # maximum retrying times retry_badcase_ratio_threshold=6.0, # maximum length restriction for bad case detection (simple but effective), it could be adjusted for slow pace speech ) sf.write("output.wav", wav, 16000) print("saved: output.wav") - Notebooks
- Google Colab
- Kaggle
Download MANIFEST.json from ajh-code/VoxCPM2-FP8-W8A8: direct link, hf CLI and curl.
- Browser
- Download file 2.68 kB
-
https://huggingface.co/ajh-code/VoxCPM2-FP8-W8A8/resolve/main/MANIFEST.json
- Command line
-
hf download hf://ajh-code/VoxCPM2-FP8-W8A8/MANIFEST.json
-
curl -L -o MANIFEST.json https://huggingface.co/ajh-code/VoxCPM2-FP8-W8A8/resolve/main/MANIFEST.json
2.68 kB
| { | |
| "files": { | |
| ".gitattributes": { | |
| "bytes": 50, | |
| "sha256": "ee05350c7fda0af4da116020dd7b976d731de3beed4f5e717d5bcc95ead24550" | |
| }, | |
| "LICENSE": { | |
| "bytes": 11298, | |
| "sha256": "4f10acc209addacfad28293315c74c4cd648f771ee1263a748f1781d1e0265e4" | |
| }, | |
| "NOTICE": { | |
| "bytes": 695, | |
| "sha256": "fa1b9fa947fc7fe6db1029176759aa6002d18455fb32473f0d864afc0edc0ecd" | |
| }, | |
| "README.md": { | |
| "bytes": 8976, | |
| "sha256": "064c8c1349dbd215584b212d92e7932f3cc03d30ce3d026475757169b4868049" | |
| }, | |
| "client.py": { | |
| "bytes": 2850, | |
| "sha256": "98b226295e15b5f662a6032455cd346824307cbc56dfa0775c6ee9b35889fb89" | |
| }, | |
| "config.json": { | |
| "bytes": 4336, | |
| "sha256": "405f0dcd92f7feba6011ed4eac5c8d4f74cba9712f07fd5cfa3063bbdd95402c" | |
| }, | |
| "fp8_config.json": { | |
| "bytes": 90941, | |
| "sha256": "b4361225344278c2bb34024c6d79efdb55db7723ba2ea78f4b1449c4c7677c21" | |
| }, | |
| "install.sh": { | |
| "bytes": 685, | |
| "sha256": "757c1a6767686e509dfb0e7ce4e8e3cfb8bf004d7e248818e5c87790cd62fbe1" | |
| }, | |
| "launch_fp8_server.sh": { | |
| "bytes": 2092, | |
| "sha256": "5229238b77081ffe362c5b859ebb1ab3ccf61dd4de6d4e8890db6e3bad37cbcd" | |
| }, | |
| "model-fp8.safetensors": { | |
| "bytes": 2838972300, | |
| "sha256": "fd86c0740d0faa9ba6017b28453851b68f754c3ac9b5d3051f0987e4a77cbd82" | |
| }, | |
| "requirements.txt": { | |
| "bytes": 219, | |
| "sha256": "46434d677e0c81b1a340d7a8ea4db635fa03cf06aad66fd2eba813925719a12d" | |
| }, | |
| "special_tokens_map.json": { | |
| "bytes": 1632, | |
| "sha256": "068594063e37662c02b21acf42ebb334ef6a74fb810e68a2368f88f08351de76" | |
| }, | |
| "tokenization_voxcpm2.py": { | |
| "bytes": 2895, | |
| "sha256": "84489ea32b6ee0cae22ed5480cacb6df85c46624c3119be9a2021c3649a12729" | |
| }, | |
| "tokenizer.json": { | |
| "bytes": 3676772, | |
| "sha256": "f8984687e4a92a3503d521396d454b7d68e9fdaab2a0288eb3536c7c1aa4bc20" | |
| }, | |
| "tokenizer_config.json": { | |
| "bytes": 5059, | |
| "sha256": "e78a3ebb48a0b9437efd1823b6b726c823da89e49dd8bcc90c02419d9baa772b" | |
| }, | |
| "validate_release.py": { | |
| "bytes": 5160, | |
| "sha256": "e15a8810351778b60ae23cc3d3464e5246940a2a776e9c04d139cea5fb0eacbc" | |
| }, | |
| "voxcpm2_fp8.py": { | |
| "bytes": 48827, | |
| "sha256": "177f34270f68447c6c930fd321a14a3c027e4c9d8281598576f49cc7d653ea66" | |
| }, | |
| "voxcpm2_fp8_server.py": { | |
| "bytes": 21760, | |
| "sha256": "374f1de90ead4ad431338086a80e58e56e97aa4e1c447a52351a1dea1be70ba8" | |
| } | |
| }, | |
| "release": "ajh-code/VoxCPM2-FP8-W8A8", | |
| "schema_version": 1, | |
| "source": { | |
| "repository": "openbmb/VoxCPM2", | |
| "revision": "32279effe8c19989596f05d353d1447f51d9e915" | |
| }, | |
| "version": "v1.0.1" | |
| } | |