Qwen2 raises the bar for open-source language models
Alibaba's cloud computing unit has released Qwen2, a new generation of open-source language models with gains in programming, math, logic and multilingual understanding. The release spans five model sizes, adds broader language training, expands long-context handling and changes the license for most models to Apache 2.0.
Alibaba's cloud computing unit has released Qwen2, the latest version of its Qwen language model family. The update is positioned around stronger benchmark performance, broader multilingual training and more capable long-context work, while also changing how most of the models are licensed for the community.
“This is mostly a routine open-source model launch, with only a mild lean toward more powerful and widely deployable AI capabilities.”Why it scores Terminator
What changed with Qwen2
Qwen2 arrives less than a year after the first generation, which researchers released in August 2023. The new release includes both pre-trained and instruction-tuned models, giving developers different starting points depending on whether they need a base model or a system already tuned to follow instructions.
The model family comes in five sizes, ranging from 0.5 billion to 72 billion parameters. That spread matters because open-source language models are often used in very different settings, from smaller local experiments to larger deployments that need stronger reasoning and task performance.
According to the Qwen team's blog post, Qwen2 improves in programming, math, logic and multilingual understanding. Those are practical areas for model users because they affect code generation, structured problem solving, reasoning tasks and the ability to work across languages.
More languages and stronger benchmarks
One of the central changes is the training data. Qwen2 was trained with data in 27 more languages, including German, French, Spanish, Italian and Russian, in addition to English and Chinese. The Qwen team believes this will strengthen the models' multilingual capabilities.
The release also emphasizes better programming and math results compared with the previous generation. Qwen2-72B-Instruct, in particular, shows significant improvements across various programming languages by integrating experiences and data from CodeQwen1.5.
In a comparison shown by the team, Qwen2-72B outperforms Meta's Llama3-70B in all tested benchmarks, sometimes by a wide margin. The source also places Qwen2 in a broader open-source field where Meta's LLaMA 3, Mixtral-8x22B and DeepSeek-V2 are all close together in benchmark lists.
Long-context performance becomes a key selling point
Qwen2 also targets one of the harder problems for language models: understanding and retrieving information from very long inputs. All instruction-tuned models were trained with context lengths of at least 32,000 tokens.
The largest instruction-tuned model goes further. Qwen2-72B-Instruct can handle information extraction tasks within a context of 128,000 tokens without errors, while Qwen2-57B-A14B supports 64,000 tokens.
This matters because language models can appear capable on short prompts but lose track of specific details when the input becomes large. The source describes this as the "Needle in a Haystack" problem, where the model must find relevant information buried inside a long context window.
Safety tests and limits
The Qwen team also tested safety and responsibility by using unsafe queries translated into multiple languages. In those tests, Qwen2-72B-Instruct performed comparably to GPT-4 in terms of safety and significantly outperformed Mistral-8x22B.
There is also a clear limitation noted in the source. Like other Chinese language models, Qwen2 refuses to answer questions about the Tiananmen Square massacre and other taboo topics in Chinese discourse.
For users evaluating open-source language models, both points matter. The safety testing suggests attention to harmful-query behavior across languages, while the refusal behavior shows that model access and openness do not remove all content restrictions.
Licensing, availability and what comes next
The release changes the licensing picture for the Qwen family. Qwen2-72B and its instruction-tuned models continue to use the original Qianwen license, while all other models have adopted Apache 2.0.
The Qwen team believes this improved openness can accelerate Qwen2's applications and commercial use worldwide. The code and weights have been uploaded to GitHub and Hugging Face, respectively, and a demo for Qwen2-72B-Instruct is available.
A technical paper with more detail on the structure and training data is still missing, but is expected to follow soon. The Qwen team is also relying on partners to support fine-tuning, local execution and integration with RAG systems.
The roadmap points to larger Qwen2 models in the future, including multimodal variants that use image and audio data. The researchers also want to release future models as open-source, keeping Qwen in the same fast-moving field as other technically strong open-source model families.
Read next