DramaBox DiT INT8 — Selective Weight-Only Quantization
A selectively quantized version of the
DramaBox TTS
3.3B DiT (Diffusion Transformer) model from
Resemble AI
. Reduces VRAM by 20% and checkpoint size by 45% while preserving audio quality.
MCD (Mel-Cepstral Distortion) measures spectral distance from the BF16 baseline. Lower is better. Scores below 5.0 dB are perceptually near-identical for speech.
Quantization details
Method:
Selective INT8 weight-only quantization via
torchao
Int8WeightOnlyConfig
. Weights are stored as INT8 with per-channel BF16 scales and dequantized at runtime during matrix multiplication.
What's quantized (562 layers, ~81.5% of DiT parameters):
All attention projections (
to_q
,
to_k
,
to_v
,
to_out
) across all 48 transformer blocks
All
gate_logits
layers
All FFN GELU projections (
audio_ff.net.0.proj
) across all 48 blocks
from load_int8 import load_int8_dit
# Loads the INT8 safetensors and reconstructs quantized Linear layers
load_int8_dit(tts._velocity_model, "dramabox-dit-int8-selective.safetensors")
Option 3: Full optimized pipeline with Gemma offload
For maximum VRAM savings (5.93 GB during denoising), use the included
inference_optimized.py
which also offloads Gemma 12B to CPU between text encoding and audio generation.
Requirements
PyTorch >= 2.4
torchao >= 0.15.0
CUDA GPU with >= 16 GB VRAM (14 GB with Gemma offload)
The original DramaBox model and its dependencies
How this was made
We ran 80+ experiments using an automated loop inspired by Karpathy's auto-research methodology:
Start from the BF16 baseline
Modify quantization config (which layers, which precision, which blocks)
Generate 3 evaluation audio samples with fixed prompts/seeds
Measure peak VRAM, generation time, and MCD vs baseline
Keep the change if MCD < 5.0 dB, discard otherwise
Repeat
Key findings from the search:
Flow-matching diffusion models are far more precision-sensitive than autoregressive LLMs.
All 4-bit approaches (NF4, NVFP4, FP4, Int4) produced unacceptable quality (MCD 17–32 dB).
FP8 is worse than INT8
for weight representation in this model (MCD 11.8 vs 4.35).
torch.compile
breaks audio output
even on the unquantized baseline (MCD 24–32 dB). The iterative denoising loop is numerically sensitive to graph optimizations.
Early transformer blocks (0–14) are most sensitive
in their FFN output projections. Block 17 is an outlier.
Attention projections and GELU gates are universally robust
to INT8 across all 48 blocks.
Citation
If you use this work, please cite the original DramaBox model:
@misc{dramabox2025,
title={DramaBox: Expressive Text to Speech Model},
author={Resemble AI},
year={2025},
url={https://github.com/resemble-ai/DramaBox}
}
dramabox-dit-int8 huggingface.co is an AI model on huggingface.co that provides dramabox-dit-int8's model effect (), which can be used instantly with this EllaPriest45 dramabox-dit-int8 model. huggingface.co supports a free trial of the dramabox-dit-int8 model, and also provides paid use of the dramabox-dit-int8. Support call dramabox-dit-int8 model through api, including Node.js, Python, http.
dramabox-dit-int8 huggingface.co is an online trial and call api platform, which integrates dramabox-dit-int8's modeling effects, including api services, and provides a free online trial of dramabox-dit-int8, you can try dramabox-dit-int8 online for free by clicking the link below.
EllaPriest45 dramabox-dit-int8 online free url in huggingface.co:
dramabox-dit-int8 is an open source model from GitHub that offers a free installation service, and any user can find dramabox-dit-int8 on GitHub to install. At the same time, huggingface.co provides the effect of dramabox-dit-int8 install, users can directly use dramabox-dit-int8 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.