Model reference · open weights
Qwen-Audio is an open-weight language model from Qwen. Qwen-Audio (BF16) weighs 16.8 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the Qwen/Qwen-Audio model card, 2026-10-01
What it is
| Released by | Qwen |
|---|---|
| Released | 2023-11-30 |
| Parameters | 8.4B |
| VRAM | 16.8 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 2K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | |||
| RTX 3090 24 GB | 5 | all 2K | 23.4 GB |
| RTX 4090 24 GB | 5 | all 2K | 23.4 GB |
| RTX 5090 32 GB | 12 | all 2K | 31.0 GB |
| L40S 48 GB | 24 | all 2K | 44.0 GB |
| A100 80 GB | 56 | all 2K | 78.2 GB |
| H100 80 GB | 52 | all 2K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 66 | all 2K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 79 | all 2K | 107 GB |
| H200 141 GB | 107 | all 2K | 138 GB |
| B200 180 GB | 142 | all 2K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 4 | all 2K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 11 | all 2K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel | 26 | all 2K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 26 | all 2K | 23.4 GB a card |
| Requests at once | 2K tokens each |
|---|---|
| 1 | 18.7 GB |
| 5 | 23.0 GB |
| 8 | 26.2 GB |
| 16 | 34.8 GB |
| 32 | 52.0 GB |
| 64 | 86.3 GB |
One card, with vLLM's small-card settings.
From the model card
Qwen-Audio 🤖 | 🤗  | Qwen-Audio-Chat 🤖 | 🤗  |    Demo 🤖 | 🤗    Homepage  |  Paper |  🤗
Qwen-Audio (Qwen Large Audio Language Model) is the multimodal version of the large model series, Qwen (abbr. Tongyi Qianwen), proposed by Alibaba Cloud. Qwen-Audio accepts diverse audio (human speech, natural sound, music and song) and text as inputs, outputs text. The contribution of Qwen-Audio include:
Qwen-Audio 是阿里云研发的大规模音频语言模型(Large Audio Language Model)。Qwen-Audio 可以以多种音频 (包括说话人语音、自然音、音乐、歌声)和文本作为输入,并以文本作为输出。Qwen-Audio 系列模型的特点包括:
We release Qwen-Audio and Qwen-Audio-Chat, which are pretrained model and Chat model respectively. For more details about Qwen-Audio, please refer to our Github Repo. This repo is the one for Qwen-Audio.
目前,我们提供了Qwen-Audio和Qwen-Audio-Chat两个模型,分别为预训练模型和Chat模型。如果想了解更多关于信息,请点击链接查看Github仓库。本仓库为Qwen-Audio仓库。
Below, we provide simple examples to show how to use Qwen-Audio with 🤗 Transformers.
Before running the code, make sure you have setup the environment and installed the required packages. Make sure you meet the above requirements, and then install the dependent libraries.
pip install -r requirements.txt
For more details, please refer to tutorial.
To use Qwen-Audio for the inference, all you need to do is to input a few lines of codes as demonstrated below. However, please make sure that you are using the latest code.
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers.generation import GenerationConfig
import torch
torch.manual_seed(1234)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen-Audio", trust_remote_code=True)
# use bf16
# model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-Audio", device_map="auto", trust_remote_code=True, bf16=True).eval()
# use fp16
# model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-Audio", device_map="auto", trust_remote_code=True, fp16=True).eval()
# use cpu only
# model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-Audio", device_map="cpu", trust_remote_code=True).eval()
# use cuda device
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-Audio", device_map="cuda", trust_remote_code=True).eval()
# Specify hyperparameters for generation (No need to do this if you are using transformers>4.32.0)
# model.generation_config = GenerationConfig.from_pretrained("Qwen/Qwen-Audio", trust_remote_code=True)
audio_url = "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Audio/1272-128104-0000.flac"
sp_prompt = ""
query = f"{audio_url}{sp_prompt}"
audio_info = tokenizer.process_audio(query)
inputs = tokenizer(query, return_tensors='pt', audio_info=audio_info)
inputs = inputs.to(model.device)
pred = model.generate(**inputs, audio_info=audio_info)
response = tokenizer.decode(pred.cpu()[0], skip_special_tokens=False,audio_info=audio_info)
print(response)
# https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Audio/1272-128104-0000.flacmister quilting is the apostle of the middle classes and we are glad to welcome his gospel
Researchers and developers are free to use the codes and model weights of Qwen-Audio. We also allow its commercial use. Check our license at LICENSE for more details.
If you find our paper and code useful in your research, please consider giving a star and citation
@article{Qwen-Audio,
title={Qwen-Audio: Advancing Universal Audio Understanding via Unified Large-Scale Audio-Language Models},
author={Chu, Yunfei and Xu, Jin and Zhou, Xiaohuan and Yang, Qian and Zhang, Shiliang and Yan, Zhijie and Zhou, Chang and Zhou, Jingren},
journal={arXiv preprint arXiv:2311.07919},
year={2023}
}
If you are interested to leave a message to either our res
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.