Model reference · open weights

midashenglm-gen

Audio mispeech Music / audio 1 build Open weights 1k dl/mo

midashenglm-gen is an open-weight audio or speech model from mispeech. midashenglm-gen (FP32) weighs 5.8 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • MiDashengLM-Gen is a 2.9B parameter text-to-audio model developed by mispeech that generates coherent 16 kHz audio scenes blending speech, music, sound effects, and environmental acoustics from structured text descriptions.
  • The model uses a Qwen3-1.7B LLM backbone and a flow matching DiT to produce variable-length mixed-audio output, and it is distributed under the Apache 2.0 license.

Summary of the mispeech/midashenglm-gen model card, 2026-10-01

What it is

Released bymispeech
Released2026-08-12
Parameters2.9B
VRAM5.8 GB for the weights

What it runs on

Memory and cards for midashenglm-gen (FP32)

5.8 GBweights, file size
1.6 GBruntime overhead
CardOne streamMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What mispeech says about midashenglm-gen

Read the model card

MiDashengLM-Gen

      

English | 中文

MiDashengLM-Gen is an end-to-end framework that uses a pre-trained Large Language Model and audio tokenizer as the backbone, combined with per-token conditional flow matching for autoregressive, variable-length mixed-audio scene generation. It generates coherent 16 kHz audio scenes that simultaneously blend speech, music, sound effects, and environmental acoustics from structured text descriptions.

Architecture

Left: training pipeline with flow matching loss. Right: autoregressive inference pipeline.

Key components:

ComponentDetails
Audio TokenizerDashengTokenizer → 768-dim latents @ 25 Hz, downsampled to 5 Hz via audio projector
LLM BackboneQwen3-1.7B, fully fine-tuned
Flow Matching DiT16 layers, hidden dim 2048, 8 heads, MLP ratio 4.0
Inference10-step Euler ODE solver, CFG scale 2.0
Stop HeadLearned binary classifier for variable-length truncation
Output16 kHz mono WAV, auto-truncated

Input Format

Input uses structured multi-view captions with special tokens to describe different aspects of an audio scene. Use `` for absent elements.

TokenDescriptionExample
``Overall scene descriptionA comedian delivering a punchline followed by uproarious crowd laughter and an upbeat jazz band hit
``Speech transcriptAnd that is why I never buy cheap luggage anymore!
``Speaker characteristics (voice, emotion, style)expressive comedic male voice
``Sound effectsuproarious crowd laughter
``Music descriptionsudden upbeat jazz band sting
``Environment / ambienceintimate comedy club

Installation

pip install torch torchaudio "transformers>=4.51" einops safetensors soundfile tqdm numpy x-transformers

Quick Start

from transformers import AutoModel
import soundfile as sf

model = AutoModel.from_pretrained("mispeech/midashenglm-gen", trust_remote_code=True)
model = model.cuda()

result = model.generate(
    " A comedian delivering a punchline followed by uproarious crowd laughter and an upbeat jazz band hit "
    " And that is why I never buy cheap luggage anymore! "
    " expressive comedic male voice "
    " sudden upbeat jazz band sting "
    " uproarious crowd laughter "
    " intimate comedy club"
)

sf.write("output.wav", result["audio"], result["sample_rate"])

Batch Generation

texts = [
    " A comedian delivering a punchline followed by uproarious crowd laughter and an upbeat jazz band hit  And that is why I never buy cheap luggage anymore!  expressive comedic male voice  sudden upbeat jazz band sting  uproarious crowd laughter  intimate comedy club",
    " Upbeat instrumental music with occasional whistling and low audio quality.      Intermittent whistling emerges in later segment alongside persistent instrumental playback.  Bright melodic composition with guitar, piano, and rhythmic percussion elements, maintaining a consistently upbeat character.  Low-fidelity recording with compressed dynamics and limited frequency response.",
]
result = model.generate(texts)
for i, audio in enumerate(result["audio"]):
    sf.write(f"output_{i}.wav", audio, result["sample_rate"])

Generation Parameters

result = model.generate(
    "...",
    eval_cfg=2.0,           # Classifier-free guidance scale
    stop_threshold=0.5,     # Stop prediction threshold
    min_stop_step=5,        # Minimum steps before stopping
    seed=42,                # Random seed for reproducibility
)
ParameterDefaultDescription
eval_cfg2.0Classifier-free guidance scale
stop_threshold0.5Stop probability threshold for audio truncation
min_stop_step5Minimum generation steps before stopping
seedNoneRandom seed for reproducibility

Citation

@article{sun2026midashenglmgen,
  title={MiDashengLM-Gen: Unified Audio Scene Generation via LLM-Driven Autoregressive Flow Matching},
  author={Sun, Xingwei and Dinkel, Heinrich and Li, Gang and Mei, Jiahao and Niu, Yadong and Han, Zerui and Jiang, Yuepeng and Zhou, Jiahao and Fan, Lichun and Luan, Jian},
  journal={arXiv preprint},
  eprint={2608.11804},
  archivePrefix={arXiv},
  year={2026}
}

License

Apache 2.0

Use Restrictions

You are solely responsible for your use of MiDashengLM-Gen and any outputs, actions, or consequences arising therefrom, and you agree not to use MiDashengLM-Gen or any derivatives thereof:

  • For any unlawful, fraudulent, or malicious purpose, or in any manner that violates any applicable laws or regulations;
  • To infringe upon the intellectual property rights, privacy rights, publicity rights, or other lawful rights or interests of any third party;
  • To exploit, harm, harass, defame, unlawfully discriminate against, or otherwise adversely affect any individual or group, including minors or vulnerable persons;
  • For any military purpose or application.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms