Chatterbox-Multilingual-Hindi β€” Q8 / Q4 quantized (+ MNN toolkit)

Source: ResembleAI/Chatterbox-Multilingual-hi (0.5B T3 transformer + S3Gen decoder, fp32 β‰ˆ 2.14 GB).

Actual model files (this repo)

Path What Size
q8/t3_hi_int8.safetensors T3 transformer β€” INT8 weight quantized (per-output-row quant, int8 w + float scale) ~514 MB
q4/t3_hi_int4.safetensors T3 transformer β€” INT4 weight quantized (group=128, 2 nibbles packed) + scale ~272 MB
s3gen_v3.safetensors S3Gen V3 speech decoder (kept fp32) ~1008 MB
grapheme_mtl_merged_expanded_v1.json multilingual tokenizer config ~0.1 MB

These are the weight-level quantized checkpoints. Each quantized linear/conv weight tensor is stored as int8 (or packed int4) alongside a matching weight_scale tensor. LayerNorms/embeddings are kept fp32 for stability.

Size comparison

Variant T3 weight size Ops
fp32 (base) ~2.0 GB β€”
Q8 / INT8 ~514 MB int8 Γ— float scale
Q4 / INT4 ~272 MB group-scale, packed

Quantization scripts

  • scripts/quantize_weights.py β€” int8 / int4 (unpacked)
  • scripts/quant_int4_pack.py β€” int4 packed (2 nibbles/byte)
  • scripts/stream_quant.sh / quant_stream.py β€” streaming per-tensor quantize (low-RAM)

⚠️ Important β€” about MNN for Chatterbox

Chatterbox ek custom autoregressive TTS hai (T3 token-transformer β†’ S3Gen mel/vocoder). Ye safely one-click ONNX/MNN export nahi hota β€” T3 ke op graph + autoregressive generation ko MNN mein wirit karne ke liye manual MNN::Express wiring + custom op (RoPE/sinusoidal) implementation chahiye. Isliye:

  • Is repo mein quantized safetensors (weights) hain β€” ye weights hain, par MNN .mnn nahi. MNN .mnn ke liye aapko ONNX export β†’ mnnconvert karna padta hai (jisake liye chatterbox package + torch + graph needed, aur is sandbox RAM mein possible nahi).
  • Woh DhVaani MNN repo jo already mil raha hai (Bbkblo/DhVaani-0.5-MNN) β€” wo MNN .mnn files real hain aur load/test ho chuke hain (neeche dekho).

For a working MNN TTS right now β†’ use DhVaani

Bbkblo/DhVaani-0.5-MNN (sahi, tested). Chatterbox ka MNN banao to aapko:

  1. pip install chatterbox-tts (β‰₯8GB RAM / GPU pe)
  2. (poore) model mein .t3 + .s3gen β†’ ONNX export
  3. mnnconvert β†’ .mnn

πŸ“± Android Setup Status β€” READ THIS FIRST

Ye repo MNN nahi hai. Isme sirf quantized .safetensors weights hain. Directly Android TTS app mein nahi lagta.

ANDROID_SETUP.md (repo mein) mein pura honest status + MNN banane ka exact path hai:

  1. ONNX export (torch, β‰₯8GB RAM/GPU) β€” model.t3 + model.s3gen
  2. mnnconvert β†’ .mnn
  3. RoPE/sinusoidal + autoregressive custom op wire (MNN MNN::Express)

Abhi Android ke liye ready model β†’ Bbkblo/DhVaani-0.5-MNN (MNN files, tested). Ye repo tab use karo jab aap MNN export + custom op kaam karein.

Reference: https://github.com/resemble-ai/chatterbox Β· https://github.com/alibaba/MNN

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