/ Модель

Характеристики

Контекст
32 768 токенов
Размер весов
12 ГБ
Лицензия
Своя лицензия
Архитектура
qwen2_5_omni · dense
Библиотека
transformers
Опубликована
30 апр 2025

Qwen2.5-Omni-3B

Мультимодальная модель8 профессий

Компактная мультимодальная модель Qwen для диалога с текстом, изображениями, аудио и видео с генерацией текстовых и речевых ответов.

248 тыс.скачиваний за 30 дней367лайковвеса обновлены30 апр 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки31

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

  • SIBFLEURS

    main_score

    Результат

    0,1613

    Общий результат 0,2858Общий результат 0,2842Общий результат 0,268
    MTEB

    Публичная таблицаревизия совпадает

  • VGGSoundAVV2ARetrieval

    main_score

    Результат

    0,0063

    MTEB

    Публичная таблицаревизия совпадает

  • VoxPopuliAccentPairClassification

    main_score

    Результат

    0,5098

    MTEB

    Публичная таблицаревизия совпадает

  • AudioCapsAVV2ARetrieval

    main_score

    Результат

    0,0074

    MTEB

    Публичная таблицаревизия совпадает

  • AVSpeakerBenchPairClassification

    main_score

    Результат

    0,7862

    MTEB

    Публичная таблицаревизия совпадает

  • VATEXA2VRetrieval

    main_score

    Результат

    0,007

    MTEB

    Публичная таблицаревизия совпадает

  • AudioCapsAVAT2VRetrieval

    main_score

    Результат

    0,0082

    MTEB

    Публичная таблицаревизия совпадает

  • FleursT2ARetrieval

    main_score

    Результат

    0,0247

    Общий результат 0,0376Общий результат 0,0182Общий результат 0,0145
    MTEB

    Публичная таблицаревизия совпадает

  • Kinetics700VAZeroShot

    main_score

    Результат

    0,0013

    MTEB

    Публичная таблицаревизия совпадает

  • CREMA_D

    main_score

    Результат

    0,2001

    MTEB

    Публичная таблицаревизия совпадает

  • MELDAudioVideoClassification

    main_score

    Результат

    0,1968

    MTEB

    Публичная таблицаревизия совпадает

  • AVEDatasetAudioVideoClustering

    main_score

    Результат

    0,4407

    MTEB

    Публичная таблицаревизия совпадает

  • RAVDESSAVZeroShot

    main_score

    Результат

    0,1333

    MTEB

    Публичная таблицаревизия совпадает

  • MSRVTTVA2T

    main_score

    Результат

    0,0061

    MTEB

    Публичная таблицаревизия совпадает

  • RAVDESSAVClustering

    main_score

    Результат

    0,0662

    MTEB

    Публичная таблицаревизия совпадает

  • UCF101VideoClustering

    main_score

    Результат

    0,3854

    MTEB

    Публичная таблицаревизия совпадает

  • EgoSchemaVideoCentricQA

    main_score

    Результат

    0,144

    MTEB

    Публичная таблицаревизия совпадает

  • BreakfastZeroShot

    main_score

    Результат

    0,1132

    MTEB

    Публичная таблицаревизия совпадает

  • WorldSense1MinDomainVideoClustering

    main_score

    Результат

    0,116

    MTEB

    Публичная таблицаревизия совпадает

  • AVEDatasetVideoClustering

    main_score

    Результат

    0,3729

    MTEB

    Публичная таблицаревизия совпадает

  • VATEXT2VRetrieval

    main_score

    Результат

    0,004

    MTEB

    Публичная таблицаревизия совпадает

  • DailyOmniVideoAudioCentricQA

    main_score

    Результат

    0,2408

    MTEB

    Публичная таблицаревизия совпадает

  • Shot2Story20KV2TRetrieval

    main_score

    Результат

    0,0014

    MTEB

    Публичная таблицаревизия совпадает

  • DiDeMoV2TRetrieval

    main_score

    Результат

    0,0044

    MTEB

    Публичная таблицаревизия совпадает

  • AVMemeVideoClassification

    main_score

    Результат

    0,2878

    MTEB

    Публичная таблицаревизия совпадает

  • AVEDatasetVPairClassification

    main_score

    Результат

    0,6145

    MTEB

    Публичная таблицаревизия совпадает

  • HumanAnimalCartoonVAPairClassification

    main_score

    Результат

    0,5244

    MTEB

    Публичная таблицаревизия совпадает

  • CommonVoiceMini21T2ARetrieval

    main_score

    Результат

    0,06

    Общий результат 0,04
    MTEB

    Публичная таблицаревизия совпадает

  • FSD2019Kaggle

    main_score

    Результат

    0,1405

    Общий результат 0,0932
    MTEB

    Публичная таблицаревизия совпадает

  • AVMemeExamT2VARetrieval

    main_score

    Результат

    0,0121

    MTEB

    Публичная таблицаревизия совпадает

  • DiDeMoA2VRetrieval

    main_score

    Результат

    0,0061

    MTEB

    Публичная таблицаревизия совпадает

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Qwen2.5-Omni-3B — мультимодальная модель семейства Qwen2.5-Omni, разработанная командой Qwen компании Alibaba Group. Она построена на плотной архитектуре Thinker-Talker и предназначена для диалогового взаимодействия с текстом, изображениями, аудио и видео; модель может выдавать текстовые ответы и естественную речь, в том числе потоково.

Модель подходит для голосового и видеочата в реальном времени, распознавания и понимания речи, анализа изображений и видео, ответов на инструкции, а также генерации речи. В карточке приведены результаты по распознаванию речи, переводу, визуальным рассуждениям и пониманию видео; размер 3B обеспечивает более компактный вариант семейства. Позиционное кодирование TMRoPE синхронизирует временные метки видео и аудио.

Модель доступна в формате safetensors и рассчитана на использование через Transformers; для поддержки рекомендуется актуальная версия библиотеки. В метаданных указана лицензия other, поэтому перед использованием следует проверить условия лицензирования репозитория. Число параметров, длина контекста и полный перечень поддерживаемых языков в предоставленных данных не приведены.

Сценарии применения

  • голосовой чат с потоковыми ответами
  • распознавание речи и выполнение голосовых инструкций
  • ответы на вопросы по изображениям
  • описание и анализ видеороликов с аудиодорожкой
  • генерация естественной речи в диалоге

Ограничения

Для генерации аудио требуется специальная системная инструкция; отключение речевого компонента ограничивает выдачу только текстом. В метаданных лицензия обозначена как other, поэтому условия использования нужно сверить с карточкой репозитория.

Для каких профессий подходит8

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen2.5-Omni

Overview

Introduction

Qwen2.5-Omni is an end-to-end multimodal model designed to perceive diverse modalities, including text, images, audio, and video, while simultaneously generating text and natural speech responses in a streaming manner.

Key Features

  • Omni and Novel Architecture: We propose Thinker-Talker architecture, an end-to-end multimodal model designed to perceive diverse modalities, including text, images, audio, and video, while simultaneously generating text and natural speech responses in a streaming manner. We propose a novel position embedding, named TMRoPE (Time-aligned Multimodal RoPE), to synchronize the timestamps of video inputs with audio.

  • Real-Time Voice and Video Chat: Architecture designed for fully real-time interactions, supporting chunked input and immediate output.

  • Natural and Robust Speech Generation: Surpassing many existing streaming and non-streaming alternatives, demonstrating superior robustness and naturalness in speech generation.

  • Strong Performance Across Modalities: Exhibiting exceptional performance across all modalities when benchmarked against similarly sized single-modality models. Qwen2.5-Omni outperforms the similarly sized Qwen2-Audio in audio capabilities and achieves comparable performance to Qwen2.5-VL-7B.

  • Excellent End-to-End Speech Instruction Following: Qwen2.5-Omni shows performance in end-to-end speech instruction following that rivals its effectiveness with text inputs, evidenced by benchmarks such as MMLU and GSM8K.

Model Architecture

Performance

We conducted a comprehensive evaluation of Qwen2.5-Omni, which demonstrates strong performance across all modalities when compared to similarly sized single-modality models and closed-source models like Qwen2.5-VL-7B, Qwen2-Audio, and Gemini-1.5-pro. In tasks requiring the integration of multiple modalities, such as OmniBench, Qwen2.5-Omni achieves state-of-the-art performance. Furthermore, in single-modality tasks, it excels in areas including speech recognition (Common Voice), translation (CoVoST2), audio understanding (MMAU), image reasoning (MMMU, MMStar), video understanding (MVBench), and speech generation (Seed-tts-eval and subjective naturalness).

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--
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-
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

Quickstart

Below, we provide simple examples to show how to use Qwen2.5-Omni with 🤗 Transformers. The codes of Qwen2.5-Omni has been in the latest Hugging face transformers and we advise you to build from source with command:

pip uninstall transformers
pip install git+https://github.com/huggingface/transformers@v4.51.3-Qwen2.5-Omni-preview
pip install accelerate

or you might encounter the following error:

KeyError: 'qwen2_5_omni'

We offer a toolkit to help you handle various types of audio and visual input more conveniently, as if you were using an API. This includes base64, URLs, and interleaved audio, images and videos. You can install it using the following command and make sure your system has ffmpeg installed:

# It's highly recommended to use `[decord]` feature for faster video loading.
pip install qwen-omni-utils[decord] -U

If you are not using Linux, you might not be able to install decord from PyPI. In that case, you can use pip install qwen-omni-utils -U which will fall back to using torchvision for video processing. However, you can still install decord from source to get decord used when loading video.

🤗 Transformers Usage

Here we show a code snippet to show you how to use the chat model with transformers and qwen_omni_utils:

import soundfile as sf

from transformers import Qwen2_5OmniForConditionalGeneration, Qwen2_5OmniProcessor
from qwen_omni_utils import process_mm_info

# default: Load the model on the available device(s)
model = Qwen2_5OmniForConditionalGeneration.from_pretrained("Qwen/Qwen2.5-Omni-3B", torch_dtype="auto", device_map="auto")

# We recommend enabling flash_attention_2 for better acceleration and memory saving.
# model = Qwen2_5OmniForConditionalGeneration.from_pretrained(
#     "Qwen/Qwen2.5-Omni-3B",
#     torch_dtype="auto",
#     device_map="auto",
#     attn_implementation="flash_attention_2",
# )

processor = Qwen2_5OmniProcessor.from_pretrained("Qwen/Qwen2.5-Omni-3B")

conversation = [
    {
        "role": "system",
        "content": [
            {"type": "text", "text": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech."}
        ],
    },
    {
        "role": "user",
        "content": [
            {"type": "video", "video": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen2.5-Omni/draw.mp4"},
        ],
    },
]

# set use audio in video
USE_AUDIO_IN_VIDEO = True

# Preparation for inference
text = processor.apply_chat_template(conversation, add_generation_prompt=True, tokenize=False)
audios, images, videos = process_mm_info(conversation, use_audio_in_video=USE_AUDIO_IN_VIDEO)
inputs = processor(text=text, audio=audios, images=images, videos=videos, return_tensors="pt", padding=True, use_audio_in_video=USE_AUDIO_IN_VIDEO)
inputs = inputs.to(model.device).to(model.dtype)

# Inference: Generation of the output text and audio
text_ids, audio = model.generate(**inputs, use_audio_in_video=USE_AUDIO_IN_VIDEO)

text = processor.batch_decode(text_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)
print(text)
sf.write(
    "output.wav",
    audio.reshape(-1).detach().cpu().numpy(),
    samplerate=24000,
)
ModelPrecision15(s) Video30(s) Video60(s) Video
Qwen-Omni-3BFP3289.10 GBNot RecommendNot Recommend
Qwen-Omni-3BBF1618.38 GB22.43 GB28.22 GB
Qwen-Omni-7BFP3293.56 GBNot RecommendNot Recommend
Qwen-Omni-7BBF1631.11 GB41.85 GB60.19 GB

Note: The table above presents the theoretical minimum memory requirements for inference with transformers and BF16 is test with attn_implementation="flash_attention_2"; however, in practice, the actual memory usage is typically at least 1.2 times higher. For more information, see the linked resource here.

Video URL compatibility largely depends on the third-party library version. The details are in the table below. Change the backend by FORCE_QWENVL_VIDEO_READER=torchvision or FORCE_QWENVL_VIDEO_READER=decord if you prefer not to use the default one.

BackendHTTPHTTPS
torchvision >= 0.19.0✅✅
torchvision < 0.19.0❌❌
decord✅❌

The model can batch inputs composed of mixed samples of various types such as text, images, audio and videos as input when return_audio=False is set. Here is an example.

# Sample messages for batch inference

# Conversation with video only
conversation1 = [
    {
        "role": "system",
        "content": [
            {"type": "text", "text": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech."}
        ],
    },
    {
        "role": "user",
        "content": [
            {"type": "video", "video": "/path/to/video.mp4"},
        ]
    }
]

# Conversation with audio only
conversation2 = [
    {
        "role": "system",
        "content": [
            {"type": "text", "text": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech."}
        ],
    },
    {
        "role": "user",
        "content": [
            {"type": "audio", "audio": "/path/to/audio.wav"},
        ]
    }
]

# Conversation with pure text
conversation3 = [
    {
        "role": "system",
        "content": [
            {"type": "text", "text": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech."}
        ],
    },
    {
        "role": "user",
        "content": "who are you?"
    }
]


# Conversation with mixed media
conversation4 = [
    {
        "role": "system",
        "content": [
            {"type": "text", "text": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech."}
        ],
    },
    {
        "role": "user",
        "content": [
            {"type": "image", "image": "/path/to/image.jpg"},
            {"type": "video", "video": "/path/to/video.mp4"},
            {"type": "audio", "audio": "/path/to/audio.wav"},
            {"type": "text", "text": "What are the elements can you see and hear in these medias?"},
        ],
    }
]

# Combine messages for batch processing
conversations = [conversation1, conversation2, conversation3, conversation4]

# set use audio in video
USE_AUDIO_IN_VIDEO = True

# Preparation for batch inference
text = processor.apply_chat_template(conversations, add_generation_prompt=True, tokenize=False)
audios, images, videos = process_mm_info(conversations, use_audio_in_video=USE_AUDIO_IN_VIDEO)

inputs = processor(text=text, audio=audios, images=images, videos=videos, return_tensors="pt", padding=True, use_audio_in_video=USE_AUDIO_IN_VIDEO)
inputs = inputs.to(model.device).to(model.dtype)

# Batch Inference
text_ids = model.generate(**inputs, use_audio_in_video=USE_AUDIO_IN_VIDEO, return_audio=False)
text = processor.batch_decode(text_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)
print(text)

Usage Tips

Prompt for audio output

If users need audio output, the system prompt must be set as "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech.", otherwise the audio output may not work as expected.

{
    "role": "system",
    "content": [
        {"type": "text", "text": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech."}
    ],
}

Use audio in video

In the process of multimodal interaction, the videos provided by users are often accompanied by audio (such as questions about the content in the video, or sounds generated by certain events in the video). This information is conducive to the model providing a better interactive experience. So we provide the following options for users to decide whether to use audio in video.

# first place, in data preprocessing
audios, images, videos = process_mm_info(conversations, use_audio_in_video=True)
# second place, in model processor
inputs = processor(text=text, audio=audios, images=images, videos=videos, return_tensors="pt", 
                   padding=True, use_audio_in_video=True)
#  third place, in model inference
text_ids, audio = model.generate(**inputs, use_audio_in_video=True)

It is worth noting that during a multi-round conversation, the use_audio_in_video parameter in these places must be set to the same, otherwise unexpected results will occur.

Use audio output or not

The model supports both text and audio outputs, if users do not need audio outputs, they can call model.disable_talker() after init the model. This option will save about ~2GB of GPU memory but the return_audio option for generate function will only allow to be set at False.

model = Qwen2_5OmniForConditionalGeneration.from_pretrained(
    "Qwen/Qwen2.5-Omni-3B",
    torch_dtype="auto",
    device_map="auto"
)
model.disable_talker()

In order to obtain a flexible experience, we recommend that users can decide whether to return audio when generate function is called. If return_audio is set to False, the model will only return text outputs to get text responses faster.

model = Qwen2_5OmniForConditionalGeneration.from_pretrained(
    "Qwen/Qwen2.5-Omni-3B",
    torch_dtype="auto",
    device_map="auto"
)
...
text_ids = model.generate(**inputs, return_audio=False)

Change voice type of output audio

Qwen2.5-Omni supports the ability to change the voice of the output audio. The "Qwen/Qwen2.5-Omni-3B" checkpoint support two voice types as follow:

Voice TypeGenderDescription
ChelsieFemaleA honeyed, velvety voice that carries a gentle warmth and luminous clarity.
EthanMaleA bright, upbeat voice with infectious energy and a warm, approachable vibe.

Users can use the speaker parameter of generate function to specify the voice type. By default, if speaker is not specified, the default voice type is Chelsie.

text_ids, audio = model.generate(**inputs, speaker="Chelsie")
text_ids, audio = model.generate(**inputs, speaker="Ethan")

Flash-Attention 2 to speed up generation

First, make sure to install the latest version of Flash Attention 2:

pip install -U flash-attn --no-build-isolation

Also, you should have hardware that is compatible with FlashAttention 2. Read more about it in the official documentation of the flash attention repository. FlashAttention-2 can only be used when a model is loaded in torch.float16 or torch.bfloat16.

To load and run a model using FlashAttention-2, add attn_implementation="flash_attention_2" when loading the model:

from transformers import Qwen2_5OmniForConditionalGeneration

model = Qwen2_5OmniForConditionalGeneration.from_pretrained(
    "Qwen/Qwen2.5-Omni-3B",
    device_map="auto",
    torch_dtype=torch.bfloat16,
    attn_implementation="flash_attention_2",
)

Citation

If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil: :)


@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}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Any-to-any модели пока не поддерживаются.

Класс архитектуры
Qwen2_5OmniModel
Ревизия весов
f75b40e

0 моделей