AB
AiBoss
project

Qwen2.5-Omni - Alibaba's open-source end-to-end multimodal model

Qwen2.5-Omni is Alibaba's open-source flagship multimodal model in the Qwen series. It boasts 7B parameters and powerful multimodal perception capabilities, handling text, image, audio, and video inputs, and supporting streaming...

What is Qwen2.5-Omni?

Qwen2.5-Omni is Alibaba's flagship multimodal model in the Qwen series, open-sourced by Alibaba. With 7B parameters, Qwen2.5-Omni boasts powerful multimodal perception capabilities, processing text, images, audio, and video inputs. It supports streaming text generation and natural speech synthesis output, enabling real-time voice and video chat. Qwen2.5-Omni utilizes a unique Thinker-Talker architecture: the Thinker handles and understands multimodal inputs, generating high-level representations and text, while the Talker transforms these representations and text into fluent speech output. The model achieves state-of-the-art performance in multimodal tasks (such as OmniBench), significantly outperforming similar models like Google's Gemini-1.5-Pro across all dimensions. It also performs exceptionally well in unimodal tasks (such as speech recognition, translation, and audio understanding). Qwen2.5-Omni is available for free trial on Qwen Chat, and the model is now open-source, allowing developers and enterprises to download and use it for commercial purposes, deploying it on smartphones and other smart devices.

Main functions of Qwen2.5-Omni

  • Text processingIt can understand and process various text inputs, including natural language dialogues, commands, long texts, etc., and supports multiple languages.
  • Image recognitionSupports the recognition and understanding of image content.
  • Audio processingIt has speech recognition capabilities, converts speech into text, understands voice commands, and generates natural and fluent speech output.
  • Video UnderstandingIt supports processing video input, simultaneously analyzing visual and audio information in the video, and enabling functions such as video content understanding and video question answering.
  • Real-time voice and video chatIt supports real-time processing of voice and video streams, enabling smooth voice and video chat functionality.

Technical Principles of Qwen2.5-Omni

  • Thinker-Talker ArchitectureBased on the Thinker-Talker architecture, the model is divided into two main parts. The Thinker, acting as the "brain" of the model, is responsible for processing and understanding multimodal information such as input text, audio, and video, generating high-level semantic representations and corresponding text output. The Talker, acting as the "mouth" of the model, is responsible for converting the high-level representations and text generated by the Thinker into fluent speech output.
  • Time-aligned multimodal position embedding (TMRoPE)To synchronize timestamps with audio in video input, Qwen2.5-Omni introduces a new positional embedding method, TMRoPE (Time-aligned Multimodal RoPE). It organizes audio and video frames in an interleaved manner to ensure the temporal order of the video sequence. TMRoPE encodes the 3D positional information (time, height, and width) of the multimodal input into the model, based on decomposing the original rotational embedding into three components: time, height, and width. For text input, the same ID is used, and TMRoPE is functionally equivalent to 1D RoPE. For audio input, each 40ms audio frame is assigned the same ID, introducing absolute temporal positional encoding. For image input, the time ID of each visual marker remains constant, while the height and width IDs are assigned based on the marker's position in the image. For video input, the time IDs of audio and video frames are alternated to ensure temporal alignment.
  • Streaming and Real-Time ResponseBased on a block-based processing approach, long sequences of multimodal data are decomposed into smaller blocks for separate processing, reducing processing latency. The model introduces a sliding window mechanism to limit the context of the current tag, further optimizing the efficiency of streaming generation. The audio and video encoders use a block-based attention mechanism to process audio and video data in blocks, with each block taking approximately 2 seconds to process. Streaming speech generation uses the Flow-Matching and BigVGAN models to convert the generated audio tags into waveforms block by block, supporting real-time speech output.
  • The three training phases of Qwen2.5-Omni:
    • Phase 1With fixed language model parameters, only the visual and audio encoders are trained, and a large amount of audio-text and image-text pair data is used to enhance the model's understanding of multimodal information.
    • Phase TwoUnfreeze all parameters and train with a wider range of data, including mixed data of images, videos, audio, and text, to further improve the model’s ability to comprehensively understand multimodal information.
    • Phase ThreeTraining is based on long sequence data (32k) to enhance the model's ability to understand complex long sequence data.

Qwen2.5-Omni project address

Model performance of Qwen2.5-Omni

  • Multimodal tasksIt has achieved advanced levels in multimodal tasks such as OmniBench.
  • Single-modal taskIt performs well in multiple fields, 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).

Application scenarios of Qwen2.5-Omni

  • Intelligent Customer Service Based on voice and text interaction, it provides users with real-time consultation and answer services.
  • Virtual Assistant As a personal virtual assistant, it helps users complete various tasks, such as schedule management, information retrieval, and reminders.
  • Education Used for online education, providing features such as voice explanations, interactive Q&A, and homework tutoring.
  • Entertainment In fields such as games and videos, it provides features such as voice interaction, character dubbing, and content recommendation to enhance user engagement and immersion, and provide a richer entertainment experience.
  • Smart Office : Assists in office work, such as generating high-quality meeting minutes and notes for voice conference recording, thereby improving work efficiency.