[!Note]
This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format.
These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, KTransformers, etc.
Over recent months, we have intensified our focus on developing foundation models that deliver exceptional utility and performance. Qwen3.5 represents a significant leap forward, integrating breakthroughs in multimodal learning, architectural efficiency, reinforcement learning scale, and global accessibility to empower developers and enterprises with unprecedented capability and efficiency.
Qwen3.5 Highlights
Qwen3.5 features the following enhancement:
Unified Vision-Language Foundation: Early fusion training on multimodal tokens achieves cross-generational parity with Qwen3 and outperforms Qwen3-VL models across reasoning, coding, agents, and visual understanding benchmarks.
Efficient Hybrid Architecture: Gated Delta Networks combined with sparse Mixture-of-Experts deliver high-throughput inference with minimal latency and cost overhead.
Scalable RL Generalization: Reinforcement learning scaled across million-agent environments with progressively complex task distributions for robust real-world adaptability.
Global Linguistic Coverage: Expanded support to 201 languages and dialects, enabling inclusive, worldwide deployment with nuanced cultural and regional understanding.
Next-Generation Training Infrastructure: Near-100% multimodal training efficiency compared to text-only training and asynchronous RL frameworks supporting massive-scale agent scaffolds and environment orchestration.
Benchmark Results
For more details, please refer to our blog post Qwen3.5.
Number of Linear Attention Heads: 32 for V and 16 for QK
Head Dimension: 128
Gated Attention:
Number of Attention Heads: 16 for Q and 4 for KV
Head Dimension: 256
Rotary Position Embedding Dimension: 64
Feed Forward Network:
Intermediate Dimension: 9216
LM Output: 248320 (Tied to token embedding)
MTP: trained with multi-steps
Context Length: 262,144 natively and extensible up to 1,010,000 tokens.
Benchmark Results
Language
GPT-OSS-120B
GPT-OSS-20B
Qwen3-Next-80B-A3B-Thinking
Qwen3-30BA3B-Thinking-2507
Qwen3.5-9B
Qwen3.5-4B
Knowledge & STEM
MMLU-Pro
80.8
74.8
82.7
80.9
82.5
79.1
MMLU-Redux
91.0
87.8
92.5
91.4
91.1
88.8
C-Eval
76.2
71.4
89.7
87.4
88.2
85.1
SuperGPQA
54.6
48.5
60.8
56.8
58.2
52.9
GPQA Diamond
80.1
71.5
77.2
73.4
81.7
76.2
Instruction Following
IFEval
88.9
88.2
88.9
88.9
91.5
89.8
IFBench
69.0
65.1
61.5
51.5
64.5
59.2
MultiChallenge
45.3
40.1
51.3
46.5
54.5
49.0
Long Context
AA-LCR
50.7
30.7
51.7
49.0
63.0
57.0
LongBench v2
48.2
45.6
48.0
44.8
55.2
50.0
Reasoning & Coding
HMMT Feb 25
90.0
76.7
73.7
63.1
83.2
74.0
HMMT Nov 25
90.0
81.8
81.2
73.8
82.9
76.8
LiveCodeBench v6
82.7
74.6
68.7
66.0
65.6
55.8
OJBench
41.5
36.3
29.7
25.1
29.2
24.1
General Agent
BFCL-V4
--
--
49.7
42.4
66.1
50.3
TAU2-Bench
--
--
57.4
41.9
79.1
79.9
VITA-Bench
--
--
29.5
14.1
29.8
22.0
DeepPlanning
--
--
0.4
4.9
18.0
17.6
Multilingualism
MMMLU
78.2
69.7
81.3
78.4
81.2
76.1
MMLU-ProX
74.5
67.3
73.6
69.1
76.3
71.5
NOVA-63
51.1
48.7
53.3
52.5
55.9
54.3
INCLUDE
74.0
65.3
78.3
74.4
75.6
71.0
Global PIQA
84.1
79.8
83.5
80.2
83.2
78.9
PolyMATH
54.0
30.9
62.4
52.6
57.3
51.1
WMT24++
74.4
67.8
57.4
69.3
72.6
66.6
MAXIFE
83.7
80.1
79.9
77.4
83.4
78.0
* TAU2-Bench: we follow the official setup except for the airline domain, where all models are evaluated by applying the fixes proposed in the Claude Opus 4.5 system card.
* MMLU-ProX: we report the averaged accuracy on 29 languages.
* WMT24++: a harder subset of WMT24 after difficulty labeling and rebalancing; we report the averaged scores on 55 languages using XCOMET-XXL.
* MAXIFE: we report the accuracy on English + multilingual original prompts (totally 23 settings).
* Empty cells (--) indicate scores not yet available or not applicable.
Vision Language
GPT-5-Nano-2025-08-07
Gemini-2.5-Flash-Lite
Qwen3-VL-30B-A3B
Qwen3.5-9B
Qwen3.5-4B
STEM and Puzzle
MMMU
75.8
73.4
76.0
78.4
77.6
MMMU-Pro
57.2
59.7
63.0
70.1
66.3
MathVision
62.2
52.1
65.7
78.9
74.6
Mathvista(mini)
71.5
72.8
81.9
85.7
85.1
We-Math
62.5
32.1
70.0
75.2
75.4
DynaMath
78.0
69.9
80.1
83.6
83.3
ZEROBench
1.0
1.0
0.0
3.0
3.0
ZEROBench_sub
22.2
19.2
23.7
31.1
26.3
VlmsAreBlind
66.7
68.4
72.5
93.7
92.6
BabyVision
14.4
17.5
18.6
28.6/25.8
16.0/19.1
General VQA
RealWorldQA
71.8
72.2
77.4
80.3
79.5
MMStar
68.6
69.1
75.5
79.7
78.3
MMBenchEN-DEV-v1.1
80.3
82.7
88.9
90.1
89.4
SimpleVQA
46.0
54.1
54.3
51.2
43.4
HallusionBench
58.4
64.5
66.0
69.3
65.0
Text Recognition and Document Understanding
OmniDocBench1.5
55.9
79.4
86.8
87.7
86.2
CharXiv(RQ)
50.1
56.1
56.6
73.0
70.8
MMLongBench-Doc
31.8
46.5
47.4
57.7
54.2
CC-OCR
58.9
72.9
77.8
79.3
76.7
AI2D_TEST
81.9
85.7
86.9
90.2
89.6
OCRBench
75.3
82.5
83.9
89.2
85.0
Spatial Intelligence
ERQA
45.8
44.3
45.3
55.5
54.0
CountBench
80.0
79.2
90.0
97.2
96.3
RefCOCO(avg)
--
--
89.3
89.7
88.1
EmbSpatialBench
74.2
66.1
80.6
83.0
81.3
RefSpatialBench
12.6
11.2
54.2
58.5
54.6
LingoQA
57.0
17.8
62.0
80.4
74.4
Hypersim
--
--
11.4
13.5
12.5
Nuscene
--
--
10.3
11.8
9.9
Video Understanding
VideoMME(w sub.)
71.7
74.6
79.9
84.5
83.5
VideoMME(w/o sub.)
66.2
72.7
73.3
78.4
76.9
VideoMMMU
63.0
69.2
75.0
78.9
74.1
MLVU
69.2
78.5
78.9
84.4
82.8
MVBench
--
--
72.0
74.4
71.2
LVBench
--
60.9
59.2
70.0
66.4
MMVU
63.1
65.3
66.1
67.8
64.9
Visual Agent
ScreenSpot Pro
--
--
60.5
65.2
60.3
OSWorld-Verified
--
--
30.6
41.8
35.6
AndroidWorld
--
--
55.0
57.8
58.6
Tool Calling
TIR-Bench
18.5
21.5
22.5
45.6/31.9
38.9/29.9
V*
68.1
69.6
83.2
90.1/88.5
84.3/86.4
Medical VQA
SLAKE
57.0
65.0
68.8
79.0
76.1
PMC-VQA
37.8
48.8
51.5
57.9
55.5
MedXpertQA-MM
26.7
35.3
35.5
49.9
42.9
* MathVision: our model’s score is evaluated using a fixed prompt, e.g., “Please reason step by step, and put your final answer within \boxed{}.” For other models, we report the higher score between runs with and without the \boxed{} formatting.
* BabyVision: scores reported as "with CI / without CI".
* TIR-Bench and V*: scores reported as "with CI / without CI".
* Empty cells (--) indicate scores not yet available or not applicable.
Quickstart
[!Important]
Qwen3.5 models operate in thinking mode by default, generating thinking content signified by <think>\n...</think>\n\n before producing the final responses.
To disable thinking content and obtain direct response, refer to the examples here.
For streamlined integration, we recommend using Qwen3.5 via APIs. Below is a guide to use Qwen3.5 via OpenAI-compatible API.
Serving Qwen3.5
Qwen3.5 can be served via APIs with popular inference frameworks.
In the following, we show example commands to launch OpenAI-Compatible API servers for Qwen3.5 models.
[!Important]
Inference efficiency and throughput vary significantly across frameworks.
We recommend using the latest framework versions to ensure optimal performance and compatibility.
For production workloads or high-throughput scenarios, dedicated serving engines such as SGLang, KTransformers or vLLM are strongly recommended.
[!Important]
The model has a default context length of 262,144 tokens.
If you encounter out-of-memory (OOM) errors, consider reducing the context window.
However, because Qwen3.5 leverages extended context for complex tasks, we advise maintaining a context length of at least 128K tokens to preserve thinking capabilities.
SGLang
SGLang is a fast serving framework for large language models and vision language models.
SGLang from the main branch of the open-source repository is required for Qwen3.5, which can be installed using the following command in a fresh environment:
The following will create API endpoints at http://localhost:8000/v1:
Standard Version: The following command can be used to create an API endpoint with maximum context length 262,144 tokens using tensor parallel on 8 GPUs.
vLLM is a high-throughput and memory-efficient inference and serving engine for LLMs.
vLLM from the main branch of the open-source repository is required for Qwen3.5, which can be installed using the following command in a fresh environment:
The following will create API endpoints at http://localhost:8000/v1:
Standard Version: The following command can be used to create an API endpoint with maximum context length 262,144 tokens using tensor parallel on 8 GPUs.
KTransformers is a flexible framework for experiencing cutting-edge LLM inference optimizations with CPU-GPU heterogeneous computing.
For running Qwen3.5 with KTransformers, see the KTransformers Deployment Guide.
Hugging Face Transformers
Hugging Face Transformers contains a lightweight server which can be used for quick testing and moderate load deployment.
The latest transformers is required for Qwen3.5:
1from openai import OpenAI
2# Configured by environment variables3client = OpenAI()45messages =[6{7"role":"user",8"content":[9{10"type":"image_url",11"image_url":{12"url":"https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3.5/demo/CI_Demo/mathv-1327.jpg"13}14},15{16"type":"text",17"text":"The centres of the four illustrated circles are in the corners of the square. The two big circles touch each other and also the two little circles. With which factor do you have to multiply the radii of the little circles to obtain the radius of the big circles?\nChoices:\n(A) $\\frac{2}{9}$\n(B) $\\sqrt{5}$\n(C) $0.8 \\cdot \\pi$\n(D) 2.5\n(E) $1+\\sqrt{2}$"18}19]20}21]2223chat_response = client.chat.completions.create(24 model="Qwen/Qwen3.5-4B",25 messages=messages,26 max_tokens=81920,27 temperature=1.0,28 top_p=0.95,29 presence_penalty=1.5,30 extra_body={31"top_k":20,32},33)34print("Chat response:", chat_response)
Video Input
python
1from openai import OpenAI
2# Configured by environment variables3client = OpenAI()45messages =[6{7"role":"user",8"content":[9{10"type":"video_url",11"video_url":{12"url":"https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3.5/demo/video/N1cdUjctpG8.mp4"13}14},15{16"type":"text",17"text":"Summarize the video content."18}19]20}21]2223# When vLLM is launched with `--media-io-kwargs '{"video": {"num_frames": -1}}'`,24# video frame sampling can be configured via `extra_body` (e.g., by setting `fps`).25# This feature is currently supported only in vLLM.26#27# By default, `fps=2` and `do_sample_frames=True`.28# With `do_sample_frames=True`, you can customize the `fps` value to set your desired video sampling rate.29chat_response = client.chat.completions.create(30 model="Qwen/Qwen3.5-4B",31 messages=messages,32 max_tokens=81920,33 temperature=1.0,34 top_p=0.95,35 presence_penalty=1.5,36 extra_body={37"top_k":20,38"mm_processor_kwargs":{"fps":2,"do_sample_frames":True},39},40)4142print("Chat response:", chat_response)
Instruct (or Non-Thinking) Mode
[!Important]
Qwen3.5 does not officially support the soft switch of Qwen3, i.e., /think and /nothink.
Qwen3.5 will think by default before response.
You can obtain direct response from the model without thinking by configuring the API parameters.
For example,
[!Note]
If you are using APIs from Alibaba Cloud Model Studio, in addition to changing model, please use "enable_thinking": False instead of "chat_template_kwargs": {"enable_thinking": False}.
Agentic Usage
Qwen3.5 excels in tool calling capabilities.
Qwen-Agent
We recommend using Qwen-Agent to quickly build Agent applications with Qwen3.5.
To define the available tools, you can use the MCP configuration file, use the integrated tool of Qwen-Agent, or integrate other tools by yourself.
python
1import os
2from qwen_agent.agents import Assistant
34# Define LLM5# Using Alibaba Cloud Model Studio6llm_cfg ={7# Use the OpenAI-compatible model service provided by DashScope:8'model':'Qwen3.5-4B',9'model_type':'qwenvl_oai',10'model_server':'https://dashscope.aliyuncs.com/compatible-mode/v1',11'api_key': os.getenv('DASHSCOPE_API_KEY'),1213'generate_cfg':{14'use_raw_api':True,15# When using Dash Scope OAI API, pass the parameter of whether to enable thinking mode in this way16'extra_body':{17'enable_thinking':True18},19},20}2122# Using OpenAI-compatible API endpoint.23# functionality of the deployment frameworks and let Qwen-Agent automate the related operations.24#25# llm_cfg = {26# # Use your own model service compatible with OpenAI API by vLLM/SGLang:27# 'model': 'Qwen/Qwen3.5-4B',28# 'model_type': 'qwenvl_oai',29# 'model_server': 'http://localhost:8000/v1', # api_base30# 'api_key': 'EMPTY',31#32# 'generate_cfg': {33# 'use_raw_api': True,34# # When using vLLM/SGLang OAI API, pass the parameter of whether to enable thinking mode in this way35# 'extra_body': {36# 'chat_template_kwargs': {'enable_thinking': True}37# },38# },39# }4041# Define Tools42tools =[43{'mcpServers':{# You can specify the MCP configuration file44"filesystem":{45"command":"npx",46"args":["-y","@modelcontextprotocol/server-filesystem","/Users/xxxx/Desktop"]47}48}49}50]5152# Define Agent53bot = Assistant(llm=llm_cfg, function_list=tools)5455# Streaming generation56messages =[{'role':'user','content':'Help me organize my desktop.'}]57for responses in bot.run(messages=messages):58pass59print(responses)6061# Streaming generation62messages =[{'role':'user','content':'Develop a dog website and save it on the desktop'}]63for responses in bot.run(messages=messages):64pass65print(responses)
Qwen Code
Qwen Code is an open-source AI agent for the terminal, optimized for Qwen models. It helps you understand large codebases, automate tedious work, and ship faster.
Qwen3.5 natively supports context lengths of up to 262,144 tokens.
For long-horizon tasks where the total length (including both input and output) exceeds this limit, we recommend using RoPE scaling techniques to handle long texts effectively., e.g., YaRN.
YaRN is currently supported by several inference frameworks, e.g., transformers, vllm, ktransformers and sglang.
In general, there are two approaches to enabling YaRN for supported frameworks:
Modifying the model configuration file:
In the config.json file, change the rope_parameters fields in text_config to:
[!NOTE]
All the notable open-source frameworks implement static YaRN, which means the scaling factor remains constant regardless of input length, potentially impacting performance on shorter texts.
We advise modifying the rope_parameters configuration only when processing long contexts is required.
It is also recommended to modify the factor as needed. For example, if the typical context length for your application is 524,288 tokens, it would be better to set factor as 2.0.
Best Practices
To achieve optimal performance, we recommend the following settings:
Sampling Parameters:
We suggest using the following sets of sampling parameters depending on the mode and task type:
Thinking mode for general tasks: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0
For supported frameworks, you can adjust the presence_penalty parameter between 0 and 2 to reduce endless repetitions. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance.
Adequate Output Length: We recommend using an output length of 32,768 tokens for most queries. For benchmarking on highly complex problems, such as those found in math and programming competitions, we suggest setting the max output length to 81,920 tokens. This provides the model with sufficient space to generate detailed and comprehensive responses, thereby enhancing its overall performance.
Standardize Output Format: We recommend using prompts to standardize model outputs when benchmarking.
Math Problems: Include "Please reason step by step, and put your final answer within \boxed{}." in the prompt.
Multiple-Choice Questions: Add the following JSON structure to the prompt to standardize responses: "Please show your choice in the answer field with only the choice letter, e.g., "answer": "C"."
No Thinking Content in History: In multi-turn conversations, the historical model output should only include the final output part and does not need to include the thinking content. It is implemented in the provided chat template in Jinja2. However, for frameworks that do not directly use the Jinja2 chat template, it is up to the developers to ensure that the best practice is followed.
Long Video Understanding: To optimize inference efficiency for plain text and images, the size parameter in the released video_preprocessor_config.json is conservatively configured. It is recommended to set the longest_edge parameter in the video_preprocessor_config file to 469,762,048 (corresponding to 224k video tokens) to enable higher frame-rate sampling for hour-scale videos and thereby achieve superior performance. For example,