Saltar al contenido
ModelPublicadoExterno
Browse files

Midashenglm 7b 1021 Fp32

MiDashengLM is an efficient audio-language model that achieves holistic audio understanding through caption-based alignment. It achieves state-of-the-art performance on multiple audio understanding benchmarks while...

TipoOtherModelo baseQwen/Qwen2.5-Omni-7BVersiónRevision 1696deeBcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
3,15–4,66 GB
Modelo base
Qwen/Qwen2.5-Omni-7B
Versión
vRevision 1696dee
Actualizado
25 oct 2026
Descargas
60
Fuente
Hugging Face

Descripción de la fuente

MiDashengLM-7B-1021

MiDashengLM is an efficient audio-language model that achieves holistic audio understanding through caption-based alignment. It achieves state-of-the-art performance on multiple audio understanding benchmarks while maintaining high inference efficiency—delivering 3.2× throughput speedup and supporting batch sizes up to 512.

📖 For more detailed introduction and technical report, please visit our GitHub repository.

Note that for most applications, we strongly recommend using the BF16 version (mispeech/midashenglm-7b-1021-bf16) for optimal performance and efficiency.

Usage

Load Model

from transformers import AutoModelForCausalLM, AutoProcessor, AutoTokenizer

model_id = "mispeech/midashenglm-7b-1021-fp32"  # Only for exact reproduction; otherwise strongly recommend "mispeech/midashenglm-7b-1021-bf16"
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_id)
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)

Construct Prompt

user_prompt = "Caption the audio."  # You may try any other prompt

messages = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": user_prompt},
            {
                "type": "audio",
                "path": "/path/to/example.wav",
                # or "url": "https://example.com/example.wav"
                # or "audio": np.random.randn(16000)
            },
        ],
    },
]

Generate Output

import torch

with torch.no_grad():
    model_inputs = processor.apply_chat_template(
        messages,
        tokenize=True,
        add_generation_prompt=True,
        add_special_tokens=True,
        return_dict=True,
    ).to(device=model.device, dtype=model.dtype)
    generation = model.generate(**model_inputs)
    output = tokenizer.batch_decode(generation, skip_special_tokens=True)  # ["An engine is idling."]

Results

The following evaluation results are based on the model version: mispeech/midashenglm-7b-1021-fp32.

Audio Captioning Results

DomainDatasetMiDashengLMQwen2.5-Omni-7BKimi-Audio-Instruct
MusicMusicCaps59.1143.7135.43
MusicSongdescriber46.4245.3144.63
SoundAudioCaps62.1360.7949.00
SoundClothoV249.3547.5548.01
SoundAutoACD67.1355.9344.76

Metrics: FENSE (higher is better).

Audio and Paralinguistic Classification

DatasetMetricMiDashengLMQwen2.5-Omni-7BKimi-Audio-Instruct
VoxCeleb1ACC↑92.6659.7182.72
VoxLingua107ACC↑93.7251.0373.65
VoxCeleb-GenderACC↑97.7299.8299.69
VGGSoundACC↑52.190.972.20
CochlsceneACC↑75.8123.8818.34
NSynthACC↑80.3260.4538.09
FMAACC↑62.9466.7727.91
FSDKaggle2018ACC↑73.3831.3824.75
AudioSetmAP↑9.906.483.47
FSD50KmAP↑38.1023.8727.23

ASR Performance

DatasetLanguageMiDashengLMQwen2.5-Omni-7BKimi-Audio-Instruct
LibriSpeech test-cleanEnglish3.61.71.3
LibriSpeech test-otherEnglish5.93.42.4
People's SpeechEnglish26.1228.622.3
AISHELL2 MicChinese3.22.52.7
AISHELL2 iOSChinese2.92.62.6
AISHELL2 AndroidChinese3.12.72.6
GigaSpeech2Indonesian22.321.2>100
GigaSpeech2Thai38.453.8>100
GigaSpeech2Viet17.718.6>100

Metrics: WER/CER (lower is better).

Question Answering Results

DatasetSubsetMetricMiDashengLMQwen2.5-Omni-7BKimi-Audio-Instruct
MMAU-ProIFACC↑37.9361.3042.30
MMAU-ProMulti-AudioACC↑42.3324.3017.20
MMAU-ProMusicACC↑62.2061.5057.60
MMAU-ProOpen-endedACC↑63.2152.3034.50
MMAU-ProSoundACC↑58.3647.6046.00
MMAU-ProSound–MusicACC↑42.0040.0046.00
MMAU-ProSound–Music–SpeechACC↑71.4328.5042.80
MMAU-ProSpatialACC↑18.7741.2043.70
MMAU-ProSpeechACC↑61.1757.4052.20
MMAU-ProSpeech–MusicACC↑58.7053.2054.30
MMAU-ProSpeech–SoundACC↑51.1460.2048.90
MMAU-ProVoiceACC↑54.8360.0050.60
MMAU-ProAverageACC↑55.9252.2046.60
MMAU-v05.15.25SoundACC↑77.4878.1075.68
MMAU-v05.15.25MusicACC↑70.9665.9066.77
MMAU-v05.15.25SpeechACC↑76.2870.6062.16
MMAU-v05.15.25AverageACC↑74.9071.5068.20
MuChoMusicACC↑73.0464.7967.40
MusicQAFENSE↑61.5660.6040.00
AudioCaps-QAFENSE↑54.2053.2847.34

Metrics: Higher is better.

Citation

MiDashengLM is under the Apache License 2.0, and we encourage its use in both research and business applications.

If you find MiDashengLM useful in your research, please consider citing our work:

@techreport{midashenglm7b,
  title      = {MiDashengLM: Efficient Audio Understanding with General Audio Captions},
  author     = {{Horizon Team, MiLM Plus}},
  institution= {Xiaomi Inc.},
  year       = {2025},
  note       = {Contributors: Heinrich Dinkel et al. (listed alphabetically in Appendix B)},
  url        = {https://arxiv.org/abs/2508.03983},
  eprint     = {2508.03983},
}

Fuentes

1 fuente
Hugging FacePrincipalVersión 1696dee0b07f0261ad55a903b0d5b3f79ba2c1c7
huggingface.co/mispeech/midashenglm-7b-1021-fp32/tree/1696dee0b07f0261ad55a903b0d5b3f79ba2c1c7

Verificado 25 oct

Download files

Artefactos del modelo

7 artefactos

model-00001-of-00007.safetensors

safetensors · 4,62 GB · SHA-256 311cd41867cd…9b26 · Hugging Face

Download shard

model-00002-of-00007.safetensors

safetensors · 4,59 GB · SHA-256 8b2c52f3b795…c72b · Hugging Face

Download shard

model-00003-of-00007.safetensors

safetensors · 4,59 GB · SHA-256 88be6288965c…0ff5 · Hugging Face

Download shard

model-00004-of-00007.safetensors

safetensors · 4,66 GB · SHA-256 235e84a11a65…f90b · Hugging Face

Download shard

model-00005-of-00007.safetensors

safetensors · 4,64 GB · SHA-256 8ef7df2637fb…b18d · Hugging Face

Download shard

model-00006-of-00007.safetensors

safetensors · 4,59 GB · SHA-256 628a7b534251…f8cf · Hugging Face

Download shard

model-00007-of-00007.safetensors

safetensors · 3,15 GB · SHA-256 2d42c1493ff4…c57d · Hugging Face

Download shard

Extractos de fuentes

3 extractos

--- license: apache-2.0 language: - en - zh - th - id - vi pipeline_tag: audio-text-to-text tags: - multimodal - audio-language-model - audio base_model: - mispeech/dasheng-0.6B - Qwen/Qwen2.5-Omni-7B base_model_relation: finetune --- # MiDashengLM-7B-1021 MiDashengLM is an efficient audio-language model that achieves holistic audio understanding through caption-based alignment. It achieves state-of-the-art performance on multiple audio understanding benchmarks while maintaining high inference efficiency—delivering 3.2× throughput speedup and supporting batch sizes up to 512. 📖 For more detailed introduction and technical report, please visit our [GitHub repository](https://github.com/xiaomi-research/dasheng-lm). Note that for most applications, we strongly recommend using the BF16 version ([mispeech/midashenglm-7b-1021-bf16](https://huggingface.co/mispeech/midashenglm-7b-1021-bf16)) for optimal performance and efficiency. ## Usage ### Load Model ```python from transformers import AutoModelForCausalLM, AutoProcessor, AutoTokenizer model_id = "mispeech/midashenglm-7b-1021-fp32" # Only for exact reproduction; otherwise strongly recommend "mispeech/midashenglm-7b-1021-bf16" model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True) tokenizer = AutoTokenizer.from_pretrained(model_id) processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True) ``` ### Construct Prompt ```python user_prompt = "Caption the audio." # You may try any other prompt messages = [ { "role": "user", "content": [ {"type": "text", "text": user_prompt}, { "type": "audio", "path": "/path/to/example.wav", # or "url": "https://example.com/example.wav" # or "audio": np.random.randn(16000) }, ], }, ] ``` ### Generate Output ```python import torch with torch.no_grad(): model_inputs = processor.apply_chat_template( messages, tokenize=True, add_generation_prompt=True, add_special_tokens=True, return_dict=True, ).to(device=model.device, dtype=model.dtype) generation = model.generate(**model_inputs) output = tokenizer.batch_decode(generation, skip_special_tokens=True) # ["An engine is idling."] ``` ## Results The following evaluation results are based on the model version: `mispeech/midashenglm-7b-1021-fp32`. ### Audio Captioning Results | Domain | Dataset | MiDashengLM | Qwen2.5-Omni-7B | Kimi-Audio-Instruct | |:--------:|:...

Source context: 60 downloads · 2 likes · Pipeline audio-text-to-text · Repo mispeech/midashenglm-7b-1021-fp32

Source context: 40 downloads · 2 likes · Pipeline audio-text-to-text · Repo mispeech/midashenglm-7b-1021-fp32