skillfed

qwen-omni-utils

Qwen Omni Language Model Utils - PyTorch

qwen-omni-utils v0.0.9 849.8K downloads/30d#4,907 on PyPI19,787
Permissive license Apache-2.0 AGING released

What it is and what it does

qwen-omni-utils is a utility library that bridges multimodal inputs—images, videos, and audio—with Qwen language models in the transformers ecosystem. It provides two main functions: process_mm_info for Qwen-Omni models (which handle vision and audio) and process_vision_info for Qwen2VL and Qwen2.5VL models (vision-only). The library abstracts away the complexity of loading media from local files, URLs, base64-encoded data, or numpy arrays, and normalizing them into the format expected by the model's processor.

The package is designed for developers building applications that combine text with visual or audio context—for instance, image captioning, video understanding, or audio transcription paired with language generation. It handles resizing, frame extraction, and format conversion transparently, so you can focus on prompt engineering and model inference rather than media preprocessing plumbing.

Use it for:

  • Build a chatbot that accepts images or videos and generates descriptions or answers questions about their content.
  • Process video files frame-by-frame with configurable fps and dimensions to fit model constraints.
  • Integrate remote audio files or numpy-format audio into multimodal prompts without manual download or conversion.
  • Batch-process mixed-media conversations where images, videos, and audio appear alongside text in a single message.
  • Resize and normalize images and video frames to specific dimensions required by a deployed Qwen model.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides helper functions to preprocess and integrate images, videos, and audio with Qwen multimodal language models for use in transformers pipelines.

Yes, if you are building applications with Qwen multimodal models. The package has low install friction, permissive licensing, no known vulnerabilities, and addresses a real integration gap. Maintenance is aging with last commit on 2026-01-30, so expect slower bug fixes, but the repository is not archived and the library is in active use (top 5000 PyPI packages). Install it as a dependency of your Qwen integration, not as a standalone utility.

Install

qwen-omni-utils on PyPI

pip

pip install qwen-omni-utils

uv

uv add qwen-omni-utils

poetry

poetry add qwen-omni-utils

Installing qwen-omni-utils

Before you install

Low friction installation with five runtime dependencies (av, librosa, packaging, pillow, requests). Maintenance status is aging with last commit on 2026-01-30, but the repository remains active and not archived.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions; attribution and license notice are required.

Quickstart

pip install qwen-omni-utils

from qwen_omni_utils import process_mm_info
messages = [{"role": "user", "content": [{"type": "image", "image": "file:///path/to/image.jpg"}, {"type": "text", "text": "Describe this."}]}]
audios, images, videos = process_mm_info(messages)

Requires transformers library and a compatible Qwen model checkpoint; av and librosa are needed for video and audio processing.

Verify before relying

  • Whether process_mm_info and process_vision_info handle all edge cases (malformed files, unsupported formats, network timeouts).
  • Performance characteristics when processing large videos or batches of audio files.
  • Compatibility with specific Qwen model versions beyond those shown in examples.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 5 — av, librosa, packaging, pillow, requests
Maintenance aging — 185 days since the last release
Last repo commit
First released
Downloads 849,809/month — #4,907 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: qwen_omni_utils-0.0.9-py3-none-any.whl

Keywords: large language model, pytorch, qwen-omni, vision language model

Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

qwen omni model preprocessingmultimodal input processingvision audio language model utilsqwen2 vl integrationimage video audio formatting
multimodal-aiqwen-integrationmedia-preprocessing

More Artificial Intelligence packages

Further reading