Qwen 2.5 7B Instruct

QWEN_2_5_7B

Multilingual instruction-following language model.

Text GenerationllmqweninstructFine-tunableRAG
Qwen 2.5 7B Instruct: Text Generation model on Kainguru

About Qwen 2.5 7B Instruct

Qwen 2.5 7B Instruct — a multilingual instruction-following language model. Takes a text prompt (with an optional system prompt) and returns a generated text response, with controls for sampling, repetition, and stop sequences.

Capabilities

  • Multilingual text chat / instruction following — prompt (optionally with system_prompt)
  • Sampling control — temperature, top_p, top_k, and do_sample shape output diversity
  • Repetition control — repetition_penalty discourages repeated tokens
  • Reproducible outputs — fix generation with seed
  • Custom stop conditions — stop_sequences ends generation early

Qwen 2.5 7B Instruct inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—User prompt.
Min 1 characters
system_prompttextNo—System-level instruction prepended before the user prompt.
max_new_tokensintegerNo512Maximum number of tokens to generate.
1–4096
temperaturenumberNo0.7Sampling temperature. Higher values increase randomness.
0–2
top_pnumberNo0.8Cumulative probability threshold for nucleus sampling.
0–1
top_kintegerNo—Number of highest-probability tokens to keep for sampling.
1–200
do_samplebooleanNotrueWhether to use sampling; if false, greedy decoding is used.
repetition_penaltynumberNo1.0Penalty for token repetition. 1.0 means no penalty.
1–2
seedintegerNo—Random seed for reproducibility.
stop_sequencestextNo—JSON array of stop sequences (e.g. [" "]).

Output. Generated text response.

Run Qwen 2.5 7B Instruct with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=QWEN_2_5_7B" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "What is the difference between latency and throughput? One sentence.",
    "do_sample": true,
    "max_new_tokens": 512,
    "repetition_penalty": 1.0,
    "temperature": 0.7,
    "top_p": 0.8
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "QWEN_2_5_7B",
        {
          "prompt": "What is the difference between latency and throughput? One sentence.",
          "do_sample": True,
          "max_new_tokens": 512,
          "repetition_penalty": 1.0,
          "temperature": 0.7,
          "top_p": 0.8
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune Qwen 2.5 7B Instruct

You can fine-tune Qwen 2.5 7B Instruct on your own data and run the tuned model through the same API. Dataset: JSONL file(s): one JSON object per line, either {"text": "..."} or {"prompt": "...", "response": "..."}.

Qwen 2.5 7B Instruct also supports retrieval-augmented generation.

The steps are in the docs.

Qwen 2.5 7B Instruct pricing

Price per 1M tokens: 1358.5 credits ($13.585). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Llama 3.1 8B Instruct: Text Generation model on Kainguru
Text Generation

Llama 3.1 8B Instruct

High-quality open-weight instruction-following chat model, ready to call or fine-tune.

Fine-tunable
DeepSeek-R1-0528 Qwen3 8B: Text Generation model on Kainguru
Text Generation

DeepSeek-R1-0528 Qwen3 8B

DeepSeek-R1-0528 Qwen3 8B, a reasoning model for maths, code and science that works through a problem step by step…

Fine-tunable
Qwen3.5 2B: Text Generation model on Kainguru
Text Generation

Qwen3.5 2B

Qwen3.5 2B, a small assistant for chat, writing, summaries and code in about 200 languages, Azerbaijani included, that…

Fine-tunable
Qwen3.5 9B: Text Generation model on Kainguru
Text Generation

Qwen3.5 9B

Qwen3.5 9B, a strong assistant for chat, reasoning, writing and code in about 200 languages, Azerbaijani included…

Fine-tunable
Qwen3.8 27B: Text Generation model on Kainguru
Text Generation

Qwen3.8 27B

Qwen3.8 27B, Qwen's compact assistant for chat, reasoning, writing, code and agent-style tasks, that works through…

Fine-tunable
Gemma 4 E2B: Text Generation model on Kainguru
Text Generation

Gemma 4 E2B

Small multimodal language model that takes text, image, audio and video input.

Fine-tunable