Lourdle/Fun-CosyVoice3-0.5B-2512_ONNX
By Lourdle · ↓ 0 · ♥ 9 · Updated 2025-12-22
What's in this repo
This page lists the files in Lourdle/Fun-CosyVoice3-0.5B-2512_ONNX, including flow_fp16.onnx, flow_fp32.onnx, flow_hift_fp16.onnx and more.
- 5 ONNX models (.onnx files)
- 7 files, including 5 .onnx, 1 .md
- Last updated 2025-12-22
ONNX files
| File | Size | Download |
|---|---|---|
| flow_fp16.onnx | — | Download |
| flow_fp32.onnx | — | Download |
| flow_hift_fp16.onnx | — | Download |
| flow_hift_fp32.onnx | — | Download |
| hift.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
CosyVoice3-2512 ONNX Models (flow & hift)
This repository provides ONNX-format models for selected modules of CosyVoice3, including:
flow_fp32.onnx(full precision, flow module)flow_fp16.onnx(half precision, flow module)hift.onnx(full precision, hift module)flow_hift_fp32.onnx(combined flow_fp32 and hift model)flow_hift_fp16.onnx(combined flow_fp16 and hift model)
For usage instructions, please refer to the GitHub repository.
Other modules of CosyVoice3 can be obtained from the official CosyVoice3.
I have open-sourced the ONNX version of CosyVoice2 and CosyVoice3, including the modified modules and conversion scripts needed for ONNX. If you want to learn how to perform the conversion, please visit CosyVoiceForOnnx.
Model Inputs and Outputs
flow_fp32.onnx / flow_fp16.onnx
- Inputs:
token(int64)prompt_token(int32)prompt_feat(float32 / float16)embedding(float32 / float16)- For
flow_fp32.onnx, must use float32 - For
flow_fp16.onnx, must use float16
- For
- Outputs:
tts_mel(float32)
hift.onnx
- Input:
speech_feat(float32)
- Output:
generated_speech(float32)
flow_hift_fp32.onnx / flow_hift_fp16.onnx
- Inputs
token(int32)prompt_token(int32)prompt_feat(float32 / float16)embedding(float16)speed(float32, scalar, controls speech rate)- For
flow_hift_fp32.onnx, must use float32 - For
flow_hift_fp16.onnx, must use float16
- For
- Output
generated_speech(float32)
Notes
- All outputs are float32.
- Input precision must strictly match the model requirements.
- Note: in the combined model,
tokeninput is int32 (not int64). Thespeedinput is a float32 scalar controlling speech speed.
Acknowledgments
The original models are from the official CosyVoice3. This repository only provides ONNX format conversion and adaptation.
Model info
Created: 2025-12-22
Updated: 2025-12-22
View on Hugging Face