
Qwen3.8-27B is here — a compact, deployment-friendly dense model built on the Qwen3.5 architecture, with native vision-language understanding and flexible thinking control.
Two developer-facing features are worth your attention right away:
Here's how to use both.
Qwen3.8 thinks by default before answering. With official support for reasoning_effort, you can now tune how hard it thinks — balancing accuracy, speed, and cost:
A minimal example via the OpenAI-compatible Chat Completions API:
from openai import OpenAI
# Configured by environment variables
client = OpenAI()
messages = [{"role": "user", "content": "Write a Python function to merge two sorted linked lists."}]
completion = client.chat.completions.create(
model="Qwen/Qwen3.8-27B",
messages=messages,
extra_body={
"chat_template_kwargs": {
"enable_thinking": True, # on by default
"preserve_thinking": True, # on by default
},
},
reasoning_effort="xhigh", # supported levels: xhigh, medium, low
)
One practical tip: in multi-turn agentic tasks, lower effort doesn't always mean faster end-to-end. Faster per-turn responses may come with more failures and retries, which can increase total latency and token consumption. Pick the effort level that fits the task.
Qwen3.8-27B natively supports context lengths of up to 262,144 tokens. When your total length (input + output) exceeds that, enable RoPE scaling — YaRN is supported by vLLM, SGLang, and TokenSpeed.
The quickest approach is to pass the configuration as engine startup flags.
For vLLM, use
VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 vllm serve ... --hf-overrides '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 4.0, "original_max_position_embeddings": 262144}}}' --max-model-len 1000000
For SGLang, use
SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 python -m sglang.launch_server ... --json-model-override-args '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 4.0, "original_max_position_embeddings": 262144}}}' --context-length 1000000
For TokenSpeed, use
TOKENSPEED_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 tokenspeed serve ... --hf-overrides '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 4.0, "original_max_position_embeddings": 262144}}}' --max-model-len 1000000
Or modify rope_parameters inside text_config in the model's config.json:
{
"mrope_interleaved": true,
"mrope_section": [11, 11, 10],
"rope_type": "yarn",
"rope_theta": 10000000,
"partial_rotary_factor": 0.25,
"factor": 4.0,
"original_max_position_embeddings": 262144
}
Two important notes:
Qwen3.8-27B is compatible with vLLM, SGLang, TokenSpeed, Unsloth, and more. For production workloads or high-throughput scenarios, see the deployment guides maintained by each framework:
Happy building.
Alibaba CEO Honored on TIME100 AI List for Putting AI Front and Center
1,553 posts | 523 followers
FollowAlibaba Cloud Community - August 27, 2026
Johnny Mai - October 7, 2026
Johnny Mai - October 7, 2026
Alibaba Cloud Community - September 20, 2026
Johnny Mai - October 7, 2026
Alibaba Cloud Community - August 5, 2026
1,553 posts | 523 followers
Follow
Token Plan
Build more, spend less. One plan, every modality.
Learn More
QwenWork
QwenWork is dedicated to helping employees strengthen their professional competitiveness in the AI era and to enabling enterprises to improve organizational effectiveness.
Learn More
Alibaba Cloud Model Studio
A one-stop generative AI platform to build intelligent applications that understand your business, based on Qwen model series such as Qwen-Max and other popular models
Learn More
Qwen
Full-range, open-source, multimodal, and multi-functional
Learn MoreMore Posts by Alibaba Cloud Community