OmniVoice β€” corrected bidirectional ONNX export (bf16 variant)

Self-contained bf16 variant of the corrected bidirectional ONNX export of k2-fsa/OmniVoice (600+ language zero-shot voice-cloning TTS, Qwen3-0.6B backbone, 32-step non-autoregressive iterative unmasking, Higgs Audio V2 codec, 24 kHz). Produced for Sokuji (issue #351). Sibling variants: -bf16 (default; fastest + clean on CUDA), -fp32 (un-quantized reference), -int4 (smallest).

bf16 (default, recommended) β€” fastest AND clean on the onnxruntime CUDA EP. A naive fp16 export emits an all-zero llm_decoder output on CUDA (deep-layer RMSNorm x^2 overflows fp16's 65504 range β†’ inf β†’ rsqrt 0 β†’ zeros); bf16's fp32-range exponent has no such overflow. audio_embeddings is also bf16 (verified lossless, embeds cosine 1.000).

Contents (backbone at repo root)

  • llm_decoder.onnx, audio_embeddings_encoder.onnx, audio_heads_decoder.onnx + tokenizer/config β€” the backbone.
  • audio_tokenizer/ β€” Higgs Audio V2 codec graphs (fp32).
  • voices/ β€” curated reference clips (.wav + transcript) for built-in cloning voices.

Runs on plain onnxruntime (no onnxruntime-genai); the non-autoregressive decode loop lives in the app.

Why bidirectional β€” what we changed

OmniVoice is non-autoregressive: its 32-step iterative unmasking uses the full (bidirectional) context. The community onnx-community/OmniVoice-Onnx export bakes in a causal mask (via onnxruntime-genai's Qwen3ForCausalLM) β†’ every MASK position collapses to one token β†’ noise, not speech. This repo re-exports the llm_decoder with the correct bidirectional mask (hidden-state cosine β‰ˆ 1.000 vs the fp32 reference).

License & attribution β€” NON-COMMERCIAL

License: CC-BY-NC-4.0. Inherited from k2-fsa/OmniVoice (weights are CC-BY-NC due to the Emilia training set, CC-BY-NC-4.0). This constraint originates upstream and cannot be relaxed by any re-upload or format conversion. This is an unofficial re-export for interoperability β€” not affiliated with nor endorsed by the OmniVoice authors. Some intermediate re-uploads mislabel OmniVoice apache-2.0; that is incorrect for the weights β€” do not use commercially.

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for jiangzhuo9357/omnivoice-onnx-bidi-bf16

Finetuned
Qwen/Qwen3-0.6B
Finetuned
k2-fsa/OmniVoice
Quantized
(51)
this model