Downloads · 30 days
0
vttts/OmniVoice-Onnx-bidir
OmniVoice-Onnx-bidir is a text-to-speech model from vttts. Use it when you need text read aloud. It is set up for onnxruntime. The card lists the license as cc-by-nc-4.0.
Bản ONNX của riêng khối LLM (Qwen3-0.6B backbone) trong k2-fsa/OmniVoice, xuất lại để dùng kèm các sub-model khác của onnx-community/OmniVoice-Onnx.
Downloads · 30 days
0
Access
Public
Updated Aug 16, 2026
Repo size
235 MB
Likes
0
Public
Click a slice to open those files.
.data234 MB · 99%
From the Hugging Face model README
llm_decoder xuất lại với attention HAI CHIỀUBản ONNX của riêng khối LLM (Qwen3-0.6B backbone) trong k2-fsa/OmniVoice, xuất lại để dùng kèm các sub-model khác của onnx-community/OmniVoice-Onnx.
OmniVoice là TTS non-autoregressive: nó chạy backbone trong vòng lặp "iterative
unmasking" với attention_mask 4-D toàn True (hai chiều). Bản llm_decoder.onnx ở
onnx-community/OmniVoice-Onnx được dựng bằng onnxruntime-genai ModelBuilder — công cụ
cho LLM sinh văn bản — nên causal masking bị nướng cứng vào graph.
Hệ quả đo được (cùng một vòng giải mã, chỉ đổi backbone; CER qua faster-whisper):
| backbone | CER |
|---|---|
| PyTorch, mask hai chiều (đúng gốc) | 0.000 |
| PyTorch, mask causal | 0.806 |
llm_decoder.onnx của onnx-community | 0.85–1.22 |
| file trong repo này | 0.000 |
Audio vẫn ra và vẫn nghe như tiếng người thật — chỉ là nói sai nội dung, không có
exception nào. Các sub-model còn lại của onnx-community (audio_embeddings_encoder,
audio_heads_decoder, codec Higgs) dùng nguyên được, không cần xuất lại.
| file | mô tả |
|---|---|
llm_decoder_bidir_int4.onnx (+ .data) | Qwen3-0.6B backbone, attention 2 chiều, int4 block-wise RTN (block 128) |
inputs_embeds (batch, seq, 1024) float32 — ra: hidden_states (batch, seq, 1024)seq động, opset 20max|Δ| = 0.0002, cos = 1.000000; sau int4: cos = 0.998torch.onnx.export trên OmniVoice.from_pretrained(..., attn_implementation="sdpa").llm,
bọc trong module dựng torch.ones(b, 1, s, s, dtype=bool) làm mask, rồi lượng tử hoá bằng
onnxruntime.quantization.matmul_nbits_quantizer.MatMulNBitsQuantizer(bits=4, block_size=128).
Trọng số dẫn xuất từ k2-fsa/OmniVoice — checkpoint gốc là CC-BY-NC, nên repo này cũng vậy: phi thương mại, ghi nguồn. Việc đổi định dạng sang ONNX không làm đổi giấy phép của trọng số.