MorseSign inOpen Morse

Qwen2.5 7B and 72B: what the 2024 release offers, and the same coding test on both

The Morse teamPublished Facts checked 4 min read

Qwen 2.5 is the generation of Alibaba's Qwen models released on September 19, 2024: dense language models in seven sizes, from 0.5 billion to 72 billion parameters, trained on up to 18 trillion tokens. Two years on it's still everywhere, because so many fine-tunes, evals and papers were built on the 7B and 72B. Morse serves both on a private, OpenAI-compatible API, and below we give each the identical coding question and test what comes back.

Facts come from the Qwen team's Qwen2.5 launch post and Alibaba's model cards for Qwen2.5-72B-Instruct and Qwen2.5-7B-Instruct, read December 3, 2026.

What came with Qwen 2.5?

The launch post called it "a party of foundation models," and it was a big drop: the general Qwen2.5 models, a coding line, Qwen2.5-Coder (trained on 5.5 trillion tokens of code-related data), and a maths line, Qwen2.5-Math. Every open model in the release was a dense decoder, with no Mixture of Experts. Compared with Qwen2, the team reported more knowledge (MMLU above 85), better coding (HumanEval above 85) and better maths (MATH above 80), along with stronger instruction following, long-form writing past 8K tokens, reading tables, and producing JSON.

It also brought back two middle sizes, 14B and 32B, that Qwen2 had skipped. Vision and multimodal editions, Qwen2.5-VL and Qwen2.5-Omni, arrived in early 2025; our what is Qwen explainer places them in the family's longer timeline.

How do the 7B and 72B differ?

Qwen2.5 7B InstructQwen2.5 72B Instruct
Parameters7.61 billion72.7 billion
Without embeddings6.53 billion70.0 billion
Layers2880
Attention heads28 for queries, 4 for keys and values64 for queries, 8 for keys and values
Context on the card131,072 tokens131,072 tokens
Longest reply8,192 tokens8,192 tokens
LicenseApache 2.0Qwen license

Source: the two Hugging Face cards, read December 3, 2026.

The license line matters most. Alibaba's post says all open models in the release use Apache 2.0 "except for the 3B and 72B variants," which carry the Qwen license with its own terms. Check it before shipping the 72B in a product. This isn't legal advice.

The context line needs a footnote too. The cards ship a configuration for 32,768 tokens and describe switching on YaRN scaling to reach 131,072, while warning that the static form of YaRN in some servers can hurt quality on short inputs. On Morse both models run with a 32K tokens window.

The same coding question for both

We asked each model, at temperature 0 with max_tokens set to 150, for a Python function is_valid_ipv4(s) that accepts only dotted-quad addresses whose four parts are decimal numbers from 0 to 255 with no leading zeros. The call is identical for both apart from the model id:

import os
import time

from openai import OpenAI

client = OpenAI(
    base_url="https://inference.trymorse.ai/v1",
    api_key=os.environ["MORSE_API_KEY"],
)

question = (
    "Write a Python function is_valid_ipv4(s) that returns True only for dotted-quad IPv4 "
    "addresses where each of the four parts is a decimal number from 0 to 255 with no leading "
    "zeros, and False otherwise. Reply with the code only."
)

for model in ["qwen/qwen-2.5-7b-instruct", "qwen/qwen-2.5-72b-instruct"]:
    start = time.time()
    reply = client.chat.completions.create(
        model=model,
        temperature=0,
        max_tokens=150,
        messages=[{"role": "user", "content": question}],
    )
    print(model, f"{time.time() - start:.2f} s")
    print(reply.choices[0].message.content)

What came back on December 3, 2026:

7B72B
Whole reply1.02 s2.31 s
Output tokens8981
Our checks passed12 of 1412 of 14

Both answers had the same shape: split on dots, insist on exactly four parts, then reject any part that isn't all digits, starts with a zero, or falls outside 0 to 255. The 72B folded the three part checks into one line; the 7B wrote them out one per line. We ran each against 14 inputs, including 256.1.1.1, 01.2.3.4, 1..3.4, and addresses with a stray space at either end. Both got the 12 plain-ASCII cases right.

Both missed the same 2. Python's str.isdigit() is true for digits from other scripts, so each function accepted an Arabic-Indic digit as a valid first part, and each crashed with a ValueError on a superscript two, which counts as a digit but can't become an integer. Testing part.isascii() and part.isdigit() fixes both. On a task this small the larger model bought tidier code, not a more correct answer, at twice the wait. Bigger or more ambiguous problems are where the 72B's extra layers earn their cost.

Which should you call?

Qwen2.5 7B InstructQwen2.5 72B Instruct
Model idqwen/qwen-2.5-7b-instructqwen/qwen-2.5-72b-instruct
Context32K tokens32K tokens
Longest reply8,192 tokens8,192 tokens
TiersTEEPrivate
Price$0.125 per million input tokens and $0.25 per million output tokens$0.45 per million input tokens and $0.50 per million output tokens

Read from Morse's catalog when this page was built.

The 7B is a good fit for classification, extraction and short rewrites at volume, and it costs the least of the two. The 72B suits jobs that need more knowledge per answer. Both accept tool calls and a JSON response_format, and neither has a reasoning mode, so there's no effort setting to pass. If you aren't tied to Qwen 2.5 by an existing fine-tune or eval, a newer generation will usually do more: see Qwen 3.5 and Qwen3 Next, or the 3.8 models below.

Is there an uncensored Qwen?

Yes, on a newer base. Qwen3.8 27B Uncensored is the abliterated Qwen on Morse, built from Qwen3.8 27B, reads text and images, and serves Morse's four uncensored use cases: cybersecurity, agent security, AI and ML research, and training data. Our Qwen3.8 27B Uncensored guide covers it, and the uncensored Qwen page explains why Morse builds it on the current generation rather than on Qwen 2.5. The 2.5 models above are served as Alibaba released them.

Privacy

For the 72B: It runs under zero-data-retention terms, and the provider sees Morse as the customer, not you. For the 7B: It runs in attested hardware enclaves, under zero-data-retention terms. Morse runs the published weights on its own providers, so nothing goes to Alibaba. Make an API key and run the test above against either size.

Common questions

When was Qwen 2.5 released?

September 19, 2024, in seven sizes from 0.5B to 72B parameters, alongside the specialised Qwen2.5-Coder and Qwen2.5-Math models.

What license is Qwen 2.5 under?

Apache 2.0 for most sizes. The 3B and 72B use the Qwen license instead, so read that license before building a commercial product on the 72B.

What is Qwen 2.5's context length?

The card lists 131,072 tokens with YaRN scaling switched on, and 32,768 tokens in the default configuration. Replies run to 8,192 tokens.

Is the 72B much better than the 7B at code?

On our one short test, no: both wrote a working IPv4 validator that passed the same 12 of 14 checks and failed the same 2. The 72B wrote it more compactly and took longer. Larger tasks will show more difference.

Should I start a new project on Qwen 2.5?

Usually on a newer Qwen, such as Qwen3.8 27B. Qwen 2.5 still makes sense when you need to match an existing fine-tune, eval, or prompt set built on it.

Ask what you actually want to ask.

80+ models, uncensored ones included, plus images. Every chat is encrypted and stays on your device. Free to start.

Start a private chat

Read next