qwen2-5-omni-7b

Qwen2.5-Omni-7B

Qwen2.5-Omni-7B is an end-to-end multimodal foundation model that perceives text, images, audio, and video while streaming both text and natural speech responses in real time. Built on the novel Thinker–Talker architecture with TMRoPE time-aligned multimodal position embeddings, it delivers state-of-the-art results on OmniBench and matches or surpasses similarly sized single-modality models across speech, vision, and audio reasoning benchmarks. Its end-to-end speech-instruction-following ability rivals its text-input performance on standards such as MMLU and GSM8K.

Apache-2.0
Text Generation
Transformers
Safetensors
English
by @AIOZAI
2
0

Last updated: 18 days ago


Generic badge Generic badge

Qwen2.5 Omni 7B

Summary

Introduction

Qwen2.5-Omni is an end-to-end multimodal foundation model capable of perceiving text, images, audio, and video, while concurrently generating text and natural-sounding speech responses in a streaming fashion. It unifies multiple input modalities and dual-modality output (text and speech) within a single architecture, enabling fully real-time multimodal interaction.

Key Features

  • Omni and Novel Architecture: The authors propose the Thinker-Talker architecture, an end-to-end multimodal design that perceives text, images, audio, and video while simultaneously generating text and natural speech responses in a streaming manner. They also introduce a novel position embedding, TMRoPE (Time-aligned Multimodal RoPE), which synchronizes the timestamps of video inputs with audio.

  • Real-Time Voice and Video Chat: The architecture is designed for fully real-time interaction, supporting chunked input and immediate output for low-latency conversational use cases.

  • Natural and Robust Speech Generation: The model surpasses many existing streaming and non-streaming alternatives, demonstrating superior robustness and naturalness in speech synthesis.

  • Strong Performance Across Modalities: Qwen2.5-Omni achieves competitive results across all supported modalities when benchmarked against similarly sized single-modality models. It outperforms the similarly sized Qwen2-Audio on audio tasks and attains comparable performance to Qwen2.5-VL-7B on vision tasks.

  • Excellent End-to-End Speech Instruction Following: Qwen2.5-Omni exhibits speech-based instruction-following capability that rivals its text-based counterpart, as evidenced by benchmarks such as MMLU and GSM8K.

Model Architecture

Performance

The authors conducted a comprehensive evaluation of Qwen2.5-Omni, demonstrating strong performance across all modalities when compared to similarly sized single-modality models and proprietary systems such as Qwen2.5-VL-7B, Qwen2-Audio, and Gemini-1.5-Pro. On tasks requiring the integration of multiple modalities, such as OmniBench, Qwen2.5-Omni achieves state-of-the-art results. In single-modality settings, it also excels in speech recognition (Common Voice), speech translation (CoVoST2), audio understanding (MMAU), image reasoning (MMMU, MMStar), video understanding (MVBench), and speech generation (Seed-TTS-eval and subjective naturalness).

Multimodality -> Text
DatasetsModelPerformance
OmniBench
Speech | Sound Event | Music | Avg
Gemini-1.5-Pro42.67%|42.26%|46.23%|42.91%
MIO-Instruct36.96%|33.58%|11.32%|33.80%
AnyGPT (7B)17.77%|20.75%|13.21%|18.04%
video-SALMONN34.11%|31.70%|56.60%|35.64%
UnifiedIO2-xlarge39.56%|36.98%|29.25%|38.00%
UnifiedIO2-xxlarge34.24%|36.98%|24.53%|33.98%
MiniCPM-o-|-|-|40.50%
Baichuan-Omni-1.5-|-|-|42.90%
Qwen2.5-Omni-3B52.14%|52.08%|52.83%|52.19%
Qwen2.5-Omni-7B55.25%|60.00%|52.83%|56.13%
Audio -> Text
DatasetsModelPerformance
ASR
Librispeech
dev-clean | dev other | test-clean | test-other
SALMONN-|-|2.1|4.9
SpeechVerse-|-|2.1|4.4
Whisper-large-v3-|-|1.8|3.6
Llama-3-8B-|-|-|3.4
Llama-3-70B-|-|-|3.1
Seed-ASR-Multilingual-|-|1.6|2.8
MiniCPM-o-|-|1.7|-
MinMo-|-|1.7|3.9
Qwen-Audio1.8|4.0|2.0|4.2
Qwen2-Audio1.3|3.4|1.6|3.6
Qwen2.5-Omni-3B2.0|4.1|2.2|4.5
Qwen2.5-Omni-7B1.6|3.5|1.8|3.4
Common Voice 15
en | zh | yue | fr
Whisper-large-v39.3|12.8|10.9|10.8
MinMo7.9|6.3|6.4|8.5
Qwen2-Audio8.6|6.9|5.9|9.6
Qwen2.5-Omni-3B9.1|6.0|11.6|9.6
Qwen2.5-Omni-7B7.6|5.2|7.3|7.5
Fleurs
zh | en
Whisper-large-v37.7|4.1
Seed-ASR-Multilingual-|3.4
Megrez-3B-Omni10.8|-
MiniCPM-o4.4|-
MinMo3.0|3.8
Qwen2-Audio7.5|-
Qwen2.5-Omni-3B3.2|5.4
Qwen2.5-Omni-7B3.0|4.1
Wenetspeech
test-net | test-meeting
Seed-ASR-Chinese4.7|5.7
Megrez-3B-Omni-|16.4
MiniCPM-o6.9|-
MinMo6.8|7.4
Qwen2.5-Omni-3B6.3|8.1
Qwen2.5-Omni-7B5.9|7.7
Voxpopuli-V1.0-enLlama-3-8B6.2
Llama-3-70B5.7
Qwen2.5-Omni-3B6.6
Qwen2.5-Omni-7B5.8
S2TT
CoVoST2
en-de | de-en | en-zh | zh-en
SALMONN18.6|-|33.1|-
SpeechLLaMA-|27.1|-|12.3
BLSP14.1|-|-|-
MiniCPM-o-|-|48.2|27.2
MinMo-|39.9|46.7|26.0
Qwen-Audio25.1|33.9|41.5|15.7
Qwen2-Audio29.9|35.2|45.2|24.4
Qwen2.5-Omni-3B28.3|38.1|41.4|26.6
Qwen2.5-Omni-7B30.2|37.7|41.4|29.4
SER
MeldWavLM-large0.542
MiniCPM-o0.524
Qwen-Audio0.557
Qwen2-Audio0.553
Qwen2.5-Omni-3B0.558
Qwen2.5-Omni-7B0.570
VSC
VocalSoundCLAP0.495
Pengi0.604
Qwen-Audio0.929
Qwen2-Audio0.939
Qwen2.5-Omni-3B0.936
Qwen2.5-Omni-7B0.939
Music
GiantSteps TempoLlark-7B0.86
Qwen2.5-Omni-3B0.88
Qwen2.5-Omni-7B0.88
MusicCapsLP-MusicCaps0.291|0.149|0.089|0.061|0.129|0.130
Qwen2.5-Omni-3B0.325|0.163|0.093|0.057|0.132|0.229
Qwen2.5-Omni-7B0.328|0.162|0.090|0.055|0.127|0.225
Audio Reasoning
MMAU
Sound | Music | Speech | Avg
Gemini-Pro-V1.556.75|49.40|58.55|54.90
Qwen2-Audio54.95|50.98|42.04|49.20
Qwen2.5-Omni-3B70.27|60.48|59.16|63.30
Qwen2.5-Omni-7B67.87|69.16|59.76|65.60
Voice Chatting
VoiceBench
AlpacaEval | CommonEval | SD-QA | MMSU
Ultravox-v0.4.1-LLaMA-3.1-8B4.55|3.90|53.35|47.17
MERaLiON4.50|3.77|55.06|34.95
Megrez-3B-Omni3.50|2.95|25.95|27.03
Lyra-Base3.85|3.50|38.25|49.74
MiniCPM-o4.42|4.15|50.72|54.78
Baichuan-Omni-1.54.50|4.05|43.40|57.25
Qwen2-Audio3.74|3.43|35.71|35.72
Qwen2.5-Omni-3B4.32|4.00|49.37|50.23
Qwen2.5-Omni-7B4.49|3.93|55.71|61.32
VoiceBench
OpenBookQA | IFEval | AdvBench | Avg
Ultravox-v0.4.1-LLaMA-3.1-8B65.27|66.88|98.46|71.45
MERaLiON27.23|62.93|94.81|62.91
Megrez-3B-Omni28.35|25.71|87.69|46.25
Lyra-Base72.75|36.28|59.62|57.66
MiniCPM-o78.02|49.25|97.69|71.69
Baichuan-Omni-1.574.51|54.54|97.31|71.14
Qwen2-Audio49.45|26.33|96.73|55.35
Qwen2.5-Omni-3B74.73|42.10|98.85|68.81
Qwen2.5-Omni-7B81.10|52.87|99.42|74.12
Image -> Text
DatasetQwen2.5-Omni-7BQwen2.5-Omni-3BOther BestQwen2.5-VL-7BGPT-4o-mini
MMMUval59.253.153.958.660.0
MMMU-Prooverall36.629.7-38.337.6
MathVistatestmini67.959.471.968.252.5
MathVisionfull25.020.823.125.1-
MMBench-V1.1-ENtest81.877.880.582.676.0
MMVetturbo66.862.167.567.166.9
MMStar64.055.764.063.954.8
MMEsum23402117237223472003
MuirBench59.248.0-59.2-
CRPErelation76.573.7-76.4-
RealWorldQAavg70.362.671.968.5-
MME-RealWorlden61.655.6-57.4-
MM-MT-Bench6.05.0-6.3-
AI2D83.279.585.883.9-
TextVQAval84.479.883.284.9-
DocVQAtest95.293.393.595.7-
ChartQAtest Avg85.382.884.987.3-
OCRBench_V2en57.851.7-56.3-
DatasetQwen2.5-Omni-7BQwen2.5-Omni-3BQwen2.5-VL-7BGrounding DINOGemini 1.5 Pro
Refcocoval90.588.790.090.673.2
RefcocotextA93.591.892.593.272.9
RefcocotextB86.684.085.488.274.6
Refcoco+val85.481.184.288.262.5
Refcoco+textA91.087.589.189.063.9
Refcoco+textB79.373.276.975.965.0
Refcocog+val87.485.087.286.175.2
Refcocog+test87.985.187.287.076.2
ODinW42.439.237.355.036.7
PointGrounding66.546.267.3--
Video(without audio) -> Text
DatasetQwen2.5-Omni-7BQwen2.5-Omni-3BOther BestQwen2.5-VL-7BGPT-4o-mini
Video-MMEw/o sub64.362.063.965.164.8
Video-MMEw sub72.468.667.971.6-
MVBench70.368.767.269.6-
EgoSchematest68.661.463.265.0-
Zero-shot Speech Generation
DatasetsModelPerformance
Content Consistency
SEED
test-zh | test-en | test-hard
Seed-TTS_ICL1.11 | 2.24 | 7.58
Seed-TTS_RL1.00 | 1.94 | 6.42
MaskGCT2.27 | 2.62 | 10.27
E2_TTS1.97 | 2.19 | -
F5-TTS1.56 | 1.83 | 8.67
CosyVoice 21.45 | 2.57 | 6.83
CosyVoice 2-S1.45 | 2.38 | 8.08
Qwen2.5-Omni-3B_ICL1.95 | 2.87 | 9.92
Qwen2.5-Omni-3B_RL1.58 | 2.51 | 7.86
Qwen2.5-Omni-7B_ICL1.70 | 2.72 | 7.97
Qwen2.5-Omni-7B_RL1.42 | 2.32 | 6.54
Speaker Similarity
SEED
test-zh | test-en | test-hard
Seed-TTS_ICL0.796 | 0.762 | 0.776
Seed-TTS_RL0.801 | 0.766 | 0.782
MaskGCT0.774 | 0.714 | 0.748
E2_TTS0.730 | 0.710 | -
F5-TTS0.741 | 0.647 | 0.713
CosyVoice 20.748 | 0.652 | 0.724
CosyVoice 2-S0.753 | 0.654 | 0.732
Qwen2.5-Omni-3B_ICL0.741 | 0.635 | 0.748
Qwen2.5-Omni-3B_RL0.744 | 0.635 | 0.746
Qwen2.5-Omni-7B_ICL0.752 | 0.632 | 0.747
Qwen2.5-Omni-7B_RL0.754 | 0.641 | 0.752
Text -> Text
DatasetQwen2.5-Omni-7BQwen2.5-Omni-3BQwen2.5-7BQwen2.5-3BQwen2-7BLlama3.1-8BGemma2-9B
MMLU-Pro47.040.456.343.744.148.352.1
MMLU-redux71.060.975.464.467.367.272.8
LiveBench083129.622.335.926.829.226.730.6
GPQA30.834.336.430.334.332.832.8
MATH71.563.675.565.952.951.944.3
GSM8K88.782.691.686.785.784.576.7
HumanEval78.770.784.874.479.972.668.9
MBPP73.270.479.272.767.269.674.9
MultiPL-E65.857.670.460.259.150.753.4
LiveCodeBench2305-240924.616.528.719.923.98.318.9

Parameters

Inputs

  • image_input (image - .png | .jpg | .jpeg): An optional image file provided as input. The model analyzes visual content to support multimodal understanding and produce context-aware responses.
  • audio_input (audio - .mp3 | .wav): An optional audio file containing speech or sound. The model transcribes and interprets the audio to extract meaningful information.
  • video_input (video - .mp4): An optional video file. The model processes the visual and audio streams of the video to provide richer contextual understanding.
  • text_input (text): The primary textual input from the user. Accepts any form of natural language prompt, such as a question or instruction.
  • chat_history (text): Previous conversation context, used to maintain continuity and produce coherent, context-aware responses across turns.
  • voice_type (text): Specifies the voice style or speaker profile for audio generation (e.g., male, female, neutral, or a specific TTS voice).
  • enable_audio_output (bool): A flag indicating whether the model should generate an audio response in addition to the textual response.

Output

  • chat_history (text): Updated conversation history that includes the latest user input and model response, used for maintaining context in subsequent interactions.
  • text_response (text): The generated textual response based on the provided inputs and context.
  • output_file (audio - .wav): The generated audio response in .wav format (only if enable_audio_output is set to true). The audio corresponds to text_response.

Usage for developers

The following details describe how to access and run the model on our platform.

Requirements

pip install -r requirements.txt

Code based on AIOZ structure

import torch
from transformers import Qwen2_5OmniModel, Qwen2_5OmniProcessor
from qwen_omni_utils import process_mm_info
import soundfile as sf
import tempfile

...

def load_model(model_storage_directory: Union[str, Path]):
    ...

    
def user_input_to_content(user_input):
    ...


def do_ai_task(
        image_input: str,
        audio_input: str,
        video_input: str,
        text_input: str,
        chat_history: list,
        voice_type: str,
        enable_audio_output: bool,
        model_storage_directory: Union[str, Path],
        device: Literal["cpu", "cuda", "gpu"] = "cpu",
        *args, **kwargs) -> Any:
    """Define AI task: load model, pre-process, post-process, etc ..."""
    # Define AI task workflow. Below is an example
    user_input = {
        "text": text_input,
        "image": image_input if image_input is not None else None,
        "audio": audio_input if audio_input is not None else None,
        "video": video_input if video_input is not None else None
    }

    ...
        
    # Prepare output
    if enable_audio_output and audio_path:
        audio_path = open(tmp_file.name, "rb")  # io.BufferedReader
        return chat_history, text_response, audio_path
    else:
        return chat_history, text_response, None

Reference

This repository is based on and inspired by Qwen's work. We sincerely appreciate their generosity in sharing their model and code.

License

We respect and comply with the terms of the original author's license cited in the Reference section.

Citation

@article{Qwen2.5-Omni,
  title={Qwen2.5-Omni Technical Report},
  author={Jin Xu, Zhifang Guo, Jinzheng He, Hangrui Hu, Ting He, Shuai Bai, Keqin Chen, Jialin Wang, Yang Fan, Kai Dang, Bin Zhang, Xiong Wang, Yunfei Chu, Junyang Lin},
  journal={arXiv preprint arXiv:2503.20215},
  year={2025}
}