Skip to main content

Model guide

Qwen2.5 7B Instruct

Qwen2.5 7B Instruct is a multilingual text assistant to try for structured extraction, summaries and ordinary chat. It is a general instruction checkpoint, not Qwen2.5-Coder or an original Qwen3 thinking model. Start with a short supplied record and check that the requested fields are correct before scaling the document length.

7.61BText chat131,072 token contextView the model card →

At a glance

Parameters
7.61B
Accepts
Text
Returns
Text
Published context limit
131,072 tokensThe published 131,072-token limit needs YaRN rope scaling enabled in your app; without it the model handles 32,768 tokens.
Model format
Safetensors · GGUF
Software and download hosts
Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4_K_M
Model-weight download
Q4_K_M weights · 4.68 GB across 2 partsQwen (model publisher)Part 1Part 2
Languages
Chinese · English · French · Spanish · Portuguese · German · Italian · Russian · Japanese · Korean · Vietnamese · Thai · Arabic
License
Apache-2.0

Will it fit?

Qwen2.5 7B Instruct · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.

Check on your computer

Best for

  • Extract a few fields from an order and return JSON with a null for the absent value. Validate both the types and the values.

Choose something else when

  • Keep the working context within the configured limit. A 16 GB label alone cannot settle fit.

First setup

Check a representative task

Use a structured extraction task to check this general instruction model, rather than treating it as the Coder checkpoint.

Use only this note. Return a JSON object with exactly these keys: item, quantity, due_date, tracking_number. Use a string for item, an integer for quantity, an ISO YYYY-MM-DD string for due_date, and null for a missing tracking_number. Do not add Markdown or commentary.
Note: Order R-17 contains three replacement keyboards. Delivery is due on 12 November 2026. No tracking number has been issued.

Check the result: Parse the result as JSON. It should contain exactly the four requested keys, with item="replacement keyboards" (equivalent wording is acceptable), quantity=3 as a number, due_date="2026-11-12", and tracking_number=null. Reject extra prose, a quoted quantity or a fabricated tracking number.

Correct JSON in this exercise does not establish API-level structured-output enforcement or native tool calling.

This creates a 4,096-token copy of qwen2.5:7b named qwen2-5-7b-instruct-short-context. Save the following as a file named Modelfile in your working folder:

FROM qwen2.5:7b
PARAMETER num_ctx 4096

Then run these commands from that folder:

ollama pull qwen2.5:7b
ollama create qwen2-5-7b-instruct-short-context -f ./Modelfile
ollama run qwen2-5-7b-instruct-short-context

Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.

The recorded Ollama package is Q4_K_M: 4.68 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.

See Ollama context settings and the Modelfile instructions.

Use ollama run qwen2.5:7b for Ollama's packaged build, or ollama run hf.co/Qwen/Qwen2.5-7B-Instruct-GGUF:Q4_K_M to pin the official Hugging Face GGUF.

Other models for this task