Instructions to use FunAudioLLM/Qwen-Audio-3.1-Jev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FunAudioLLM/Qwen-Audio-3.1-Jev with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="FunAudioLLM/Qwen-Audio-3.1-Jev", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("FunAudioLLM/Qwen-Audio-3.1-Jev", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 3,854 Bytes
e008a3b 82f7b45 d66f9f4 82f7b45 e6a1f25 d66f9f4 82f7b45 d66f9f4 82f7b45 d9f308c 82f7b45 d9f308c 82f7b45 d9f308c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | ---
license: cc-by-nc-sa-4.0
library_name: transformers
tags:
- audio
- custom_code
- qwen-audio-jev
---
# Qwen-Audio-3.1-Jev
**[Project Page & Demos](https://qwenaudio.github.io/qwen-audio-jev/)** · **[Technical Report](https://arxiv.org/abs/2610.21614)** · **[Code Repository](https://github.com/QwenAudio/Qwen-Audio-Jev)**
Qwen-Audio-3.1-Jev is an audio decision model. Given audio and a
natural-language question, it produces a structured decision through three
interfaces. It combines an audio encoder with a Qwen3.5-35B-A3B MoE language
backbone and dedicated decision heads.
| Interface | Use | Output |
| --- | --- | --- |
| **Choice** | Select a category or answer from candidates | Selected option and candidate probabilities |
| **Noul** | Evaluate a proposition about the audio | Probability that the proposition is true, from 0 to 1 |
| **Score** | Rate an ordered attribute such as audio quality | Level probabilities, expected level and optional mapped rating |
Qwen-Audio-3.1-Jev supports complete-audio inference. It is intended for audio decisions
and does not generate text responses. Use [Qwen-Audio-3.1-Jev-Tiny](https://huggingface.co/FunAudioLLM/Qwen-Audio-3.1-Jev-Tiny) for the streaming
interface. Choice accepts up to 64 candidates, and Score accepts up to 10 levels.
## Setup
Use the [Qwen-Audio-Jev inference repository](https://github.com/QwenAudio/Qwen-Audio-Jev)
for installation, audio decoding, feature extraction, request packing and the
structured Python/CLI interface. The reference environment uses Linux,
Python 3.10–3.12, Transformers 5.3.0, matching CUDA builds of PyTorch and
TorchAudio, and FFmpeg.
Select one visible GPU with enough memory for the model and audio input:
```bash
export CUDA_VISIBLE_DEVICES=0
```
Download the HF model and create the SDK runner after installing the inference
repository:
```python
from huggingface_hub import snapshot_download
from qwen_audio_jev import JevModel
model_dir = snapshot_download("FunAudioLLM/Qwen-Audio-3.1-Jev")
model = JevModel(checkpoint=model_dir, variant="qwen-audio-3.1-jev")
```
## Audio decisions
### Noul: evaluate a proposition
```python
result = model.predict(
audio="speech.wav",
task="noul",
question="Is human speech present in the audio?",
)
print(result["answers"]["q1"]["noul"])
```
### Choice: select from candidates
```python
result = model.predict(
audio="recording.wav",
task="choice",
question="Which type of sound is most prominent?",
criteria={"speech": "Human speech", "music": "Music", "noise": "Background noise"},
)
print(result["answers"]["q1"]["choice"])
print(result["answers"]["q1"]["probabilities"])
```
### Score: rate an ordered attribute
```python
result = model.predict(
audio="speech.wav",
task="score",
question="Rate the perceived speech quality.",
criteria=["Very poor", "Poor", "Fair", "Good", "Excellent"],
score_values=[1, 2, 3, 4, 5],
)
print(result["answers"]["q1"]["mapped_score"])
```
`score` is the expected zero-based level index. Supplying `score_values` also
returns `mapped_score` on the requested numerical scale.
## Standard Hugging Face loading
The complete HF directory includes the custom model/configuration code,
safetensors, tokenizer and mel filters:
```python
import torch
from transformers import AutoModel
native_model = AutoModel.from_pretrained(
"FunAudioLLM/Qwen-Audio-3.1-Jev",
trust_remote_code=True,
dtype=torch.bfloat16,
device_map={"": "cuda:0"},
)
```
Use the SDK to prepare audio inputs and interpret decision-head logits.
Run direct forwards with evaluation mode and `torch.inference_mode()`.
## License
The model weights are licensed under
[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).
See `LICENSE`. Accompanying code retains its original licenses and notices. |