Skip to content

About

Native pure-PyTorch ComfyUI custom nodes for Fish Audio Drama 3 (drama-3-int4 & drama-3). Runs on AMD ROCm (Windows/Linux) and NVIDIA CUDA without SGLang, vLLM, or Triton — featuring voice cloning, 16-speaker dialogue, emotion tags, and balanced multi-GPU support.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

ComfyUI-Drama3

Native pure-PyTorch ComfyUI custom nodes for Fish Audio Drama 3 (fishaudio/drama-3-int4 and fishaudio/drama-3) — no SGLang, vLLM, Linux, Triton, dac, or CUDA-only GPTQ-Marlin extensions required.

Runs out-of-the-box on Windows AMD ROCm (e.g. Radeon AI PRO R9700 / RDNA3 / RDNA4), NVIDIA CUDA, and multi-GPU setups.

Features

  • Native drama3-int4 W4A16 loader: keeps all 30,720 routed MoE experts packed as 4-bit uint8 nibbles in VRAM and unpacks only the 8 active experts per token on the fly.
  • Dense weight modes: choose dequant_bf16 (dequantizes the 130 dense attention/GDN layers to bfloat16 for fastest attention, ~24 GB total VRAM) or packed_int4 (keeps them packed in 4-bit, ~22 GB total VRAM).
  • Balanced Multi-GPU support: multi-gpu (balanced) automatically splits the 40-layer backbone evenly across all visible GPUs (~12–13 GB per GPU on dual 32 GB R9700s).
  • Self-contained 44.1 kHz ModdedDAC codec: full encode (for voice cloning) and decode included in pure PyTorch (drama3/codec.py).
  • Multi-speaker dialogue & performance tags: supports <|speaker:0|> through <|speaker:15|> and inline cues ([sighs], [laughs], [whispering], etc.), with automatic long-text chunking and crossfading.

Installation

  1. Clone or copy this folder into your ComfyUI custom_nodes directory:
    cd ComfyUI/custom_nodes
    git clone https://github.com/mnector/ComfyUI-Drama3.git
  2. Install dependencies inside your ComfyUI Python environment (do not overwrite your ROCm/CUDA PyTorch wheel):
    pip install safetensors tokenizers huggingface_hub numpy
    (torch and torchaudio are already provided by ComfyUI; if torchaudio is missing, drama3/codec.py falls back to pure-PyTorch resampling.)

Models

On first run, Drama 3 Model Loader can auto-download fishaudio/drama-3-int4 (~22.1 GB, skipping eval/, media/, and samples/) into ComfyUI/models/drama3/fishaudio--drama-3-int4.

You can also download manually ahead of time with hf download / huggingface-cli:

hf download fishaudio/drama-3-int4 --local-dir ComfyUI/models/drama3/drama-3-int4 --exclude "eval/*" "eval_ab/*" "media/*" "samples/*"

Nodes (audio/Drama3)

Node Purpose
Drama 3 Model Loader Loads and caches the Drama 3 backbone, codebook tower, tokenizer, and codec.pth.
Drama 3 Voice Reference Attaches a reference AUDIO clip + transcript (chainable for multi-speaker cloning).
Drama 3 Dialogue Builder Builds `<
Drama 3 Text-to-Speech Generates 44.1 kHz AUDIO with chunking, history conditioning, crossfade, and progress bar.
Drama 3 Unload Model Pass-through node that clears the cached model and frees VRAM.

VRAM & Hardware Notes

  • fishaudio/drama-3-int4 (dequant_bf16): ~24 GB VRAM + KV cache — fits comfortably on a single 32 GB GPU (auto (single GPU)) or split ~12–13 GB per GPU with multi-gpu (balanced).
  • fishaudio/drama-3-int4 (packed_int4): ~22 GB VRAM + KV cache.
  • AMD ROCm on Windows: use_cuda_graph="auto" automatically uses eager decode on HIP/ROCm and multi-GPU setups. Reference audio resampling runs on CPU so CPU-only torchaudio wheels work without device-mismatch errors.

License

This custom node code is provided under Apache-2.0. The fishaudio/drama-3 and fishaudio/drama-3-int4 weights are governed by the Fish Audio Community License v1.0 (free for research/non-commercial use and commercial use under USD 500k annual revenue; no impersonation without consent; see the model card on Hugging Face).

About

Native pure-PyTorch ComfyUI custom nodes for Fish Audio Drama 3 (drama-3-int4 & drama-3). Runs on AMD ROCm (Windows/Linux) and NVIDIA CUDA without SGLang, vLLM, or Triton — featuring voice cloning, 16-speaker dialogue, emotion tags, and balanced multi-GPU support.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages