Drama 3 · 128 experts · W4A16

Built with Fish Audio.

A pruned and quantized build of fishaudio/drama-3 that loads and generates on a single 16 GB consumer card. The original checkpoint does not fit one; this one runs on an RTX 5080 with room for two concurrent requests.

This is a proof of concept, published so people with a 16 GB card can try Drama 3 at all. It is not an official Fish Audio release, and Fish Audio neither sponsors nor endorses it.

What this build is

original this build
routed experts per MoE layer 256 128
expert weights bf16 int4, group 128, symmetric
attention + shared-expert linears bf16 int8, group 128
embeddings, LM head, codec bf16 bf16 (unchanged)
text vocabulary 252,288 169,193
weights on disk ~23 GiB 12.7 GiB
peak VRAM, 2 concurrent requests — ~15.4 GiB

The 128 kept experts were chosen from measured router usage over a calibration corpus rather than by weight magnitude, and the selections are nested across all 40 layers. The exact recipe is recorded in config.json under pruning and vocab_trim, and in NOTICE.

Requirements

  • One CUDA GPU with 16 GB or more
  • SGLang-Omni with the Drama 3 model support
  • The drop-in loader in this repo, quantization.py (see below)

quant_method in config.json is bsgemm-moe-w4a16-l8, which upstream SGLang-Omni does not register. Copy the file from this repo over the one in your install:

cp quantization.py \
   <sglang-omni>/sglang_omni/models/fishaudio_drama3/quantization.py

Running it

serve.sh in this repo is the 16 GB profile. Every number in it is measured on a 15.56 GiB card; the two that matter most are ENG_FRAC/VOC_FRAC (how the card is split between the language model and the vocoder) and enable_reference_encoder=false.

DRAMA_MODEL=/path/to/this/repo PORT=7861 bash serve.sh

Then generate — a plain, non-streaming request that writes a complete WAV:

curl -s -X POST http://127.0.0.1:7861/v1/audio/speech \
  -H 'Content-Type: application/json' \
  -d '{
        "model": "drama-3",
        "input": "Guten Tag, mein Name ist Jonas. Wie kann ich Ihnen helfen?",
        "reference": {"text": "...", "vq_codes": [[...]]},
        "response_format": "wav"
      }' \
  --output out.wav

Voice references are precomputed codes, not WAVs

enable_reference_encoder=false is what frees the ~1.9 GiB that lets 128 experts fit a 16 GB card, so the engine rejects raw reference audio with HTTP 400. Encode each voice once on the CPU instead, with export_reference.py from this repo:

python export_reference.py \
    --audio  voices/jonas.wav \
    --text   voices/jonas.txt \
    --codec  /path/to/this/repo \
    --output reference_codes/jonas.json

That writes {"text": ..., "vq_codes": [...]}, which is what the reference field above takes. A 6-10 second clip is enough.

On a card with more than 16 GB you can set REFERENCE_ENCODER=true and pass reference audio directly, as upstream does.

License

Fish Audio Community License, Version 1.0 — see LICENSE, and NOTICE for the attribution and the full list of modifications. Note in particular that the license covers commercial use only below a revenue threshold, that hosted text-to-speech services need a separate agreement with Fish Audio, and that cloning the voice of a real person requires that person's consent.

Downloads last month
69
Safetensors
Model size
4B params
Tensor type
I32
·
BF16
·
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for asfberlin/drama-3-128e-w4a16

Quantized
(70)
this model