Views
No views yet
1pip install git+https://github.com/lvliang-intel/vllm-omni.git@feats/ar-w4a16-qwen-omni
2pip install git+https://github.com/huggingface/transformers.git1CUDA_VISIBLE_DEVICES=0,1 vllm serve Intel/Qwen3-Omni-30B-A3B-Instruct-int4-AutoRound --omni --port 8091
2
3curl -s http://localhost:8091/v1/chat/completions \
4 -H "Content-Type: application/json" \
5 -d '{
6 "model": "Intel/Qwen3-Omni-30B-A3B-Instruct-int4-AutoRound",
7 "messages": [
8 {
9 "role": "system",
10 "content": "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."
11 },
12 {
13 "role": "user",
14 "content": "What is 2 + 3? Answer with just the number."
15 }
16 ],
17 "temperature": 0.0,
18 "max_tokens": 2048,
19 "repetition_penalty": 1.1
20 }'
21
22curl -s http://127.0.0.1:8091/v1/chat/completions \
23 -H "Content-Type: application/json" \
24 -d '{
25 "model": "Intel/Qwen3-Omni-30B-A3B-Instruct-int4-AutoRound",
26 "messages": [
27 {
28 "role": "system",
29 "content": "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."
30 },
31 {
32 "role": "user",
33 "content": [
34 {
35 "type": "image_url",
36 "image_url": {
37 "url": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-Omni/demo/cars.jpg"
38 }
39 },
40 {
41 "type": "text",
42 "text": "Describe this image in one short sentence."
43 }
44 ]
45 }
46 ],
47 "temperature": 0.0,
48 "max_tokens": 2048,
49 "repetition_penalty": 1.1
50 }'
51
52curl -s http://127.0.0.1:8091/v1/chat/completions \
53 -H "Content-Type: application/json" \
54 -d '{
55 "model": "Intel/Qwen3-Omni-30B-A3B-Instruct-int4-AutoRound",
56 "messages": [
57 {
58 "role": "system",
59 "content": "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."
60 },
61 {
62 "role": "user",
63 "content": [
64 {
65 "type": "audio_url",
66 "audio_url": {
67 "url": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-Omni/demo/cough.wav"
68 }
69 },
70 {
71 "type": "text",
72 "text": "What sound can you hear? Answer in one short sentence."
73 }
74 ]
75 }
76 ],
77 "temperature": 0.0,
78 "max_tokens": 2048,
79 "repetition_penalty": 1.1
80 }'1auto_round \
2 --model Qwen/Qwen3-Omni-30B-A3B-Instruct \
3 --output_dir tmp_qwen3_omni_w4a16 \
4 --trust_remote_code