keras / qwen2.5_instruct_32b_en

huggingface.co
Total runs: 9
24-hour runs: 0
7-day runs: -3
30-day runs: 4
Model's Last Updated: June 17 2025
text-generation

Introduction of qwen2.5_instruct_32b_en

Model Details of qwen2.5_instruct_32b_en

Model Overview

Model Summary

Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, the Qwen team released a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters.

Qwen2.5 brings the following improvements upon Qwen2:
  • Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains.
  • Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and condition-setting for chatbots.
  • Long-context Support up to 128K tokens and can generate up to 8K tokens.
  • Multilingual support for over 29 languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.

For more details, please refer to Qwen Blog , GitHub , and Documentation .

Weights are released under the Apache 2 License . Keras model code is released under the Apache 2 License .

Links
Installation

Keras and KerasHub can be installed with:

pip install -U -q keras-hub
pip install -U -q keras

Jax, TensorFlow, and Torch come preinstalled in Kaggle Notebooks. For instructions on installing them in another environment see the Keras Getting Started page.

Presets

The following model checkpoints are provided by the Keras team. Full code examples for each are available below.

Preset name Parameters Description
qwen2.5_0.5b_en 0.5B 24-layer Qwen model with 0.5 billion parameters.
qwen2.5_3b_en 3.1B 36-layer Qwen model with 3.1 billion parameters.
qwen2.5_7b_en 7B 48-layer Qwen model with 7 billion parameters.
qwen2.5_instruct_0.5b_en 0.5B Instruction fine-tuned 24-layer Qwen model with 0.5 billion parameters.
qwen2.5_instruct_32b_en 32B Instruction fine-tuned 64-layer Qwen model with 32 billion parameters.
qwen2.5_instruct_72b_en 72B Instruction fine-tuned 80-layer Qwen model with 72 billion parameters.
Example Usage

import keras
import keras_hub
import numpy as np

# Use generate() to do text generation.
qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset("qwen2.5_instruct_32b_en")
qwen_lm.generate("I want to say", max_length=30)

# Generate with batched prompts.
qwen_lm.generate(["This is a", "Where are you"], max_length=30)

# Compile the generate() function with a custom sampler.
qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset("qwen2.5_instruct_32b_en")
qwen_lm.compile(sampler="greedy")
qwen_lm.generate("I want to say", max_length=30)
qwen_lm.compile(sampler=keras_hub.samplers.BeamSampler(num_beams=2))
qwen_lm.generate("I want to say", max_length=30)

# Use generate() without preprocessing.
# Prompt the model with `15191, 374` (the token ids for `"Who is"`).
# Use `"padding_mask"` to indicate values that should not be overridden.
prompt = {
    "token_ids": np.array([[15191, 374, 0, 0, 0]] * 2),
    "padding_mask": np.array([[1, 1, 0, 0, 0]] * 2),
}

qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset(
    "qwen2.5_instruct_32b_en",
    preprocessor=None,
)
qwen_lm.generate(prompt)

# Call fit() on a single batch.
features = ["The quick brown fox jumped.", "I forgot my homework."]
qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset("qwen2.5_instruct_32b_en")
qwen_lm.fit(x=features, batch_size=2)

# Call fit() without preprocessing.
x = {
    "token_ids": np.array([[1, 2, 3, 4, 5]] * 2),
    "padding_mask": np.array([[1, 1, 1, 1, 1]] * 2),
}
y = np.array([[2, 3, 4, 5, 0]] * 2)
sw = np.array([[1, 1, 1, 1, 1]] * 2)

qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset(
    "qwen2.5_instruct_32b_en",
    preprocessor=None,
)
qwen_lm.fit(x=x, y=y, sample_weight=sw, batch_size=2)
Example Usage with Hugging Face URI

import keras
import keras_hub
import numpy as np

# Use generate() to do text generation.
qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset("hf://keras/qwen2.5_instruct_32b_en")
qwen_lm.generate("I want to say", max_length=30)

# Generate with batched prompts.
qwen_lm.generate(["This is a", "Where are you"], max_length=30)

# Compile the generate() function with a custom sampler.
qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset("hf://keras/qwen2.5_instruct_32b_en")
qwen_lm.compile(sampler="greedy")
qwen_lm.generate("I want to say", max_length=30)
qwen_lm.compile(sampler=keras_hub.samplers.BeamSampler(num_beams=2))
qwen_lm.generate("I want to say", max_length=30)

# Use generate() without preprocessing.
# Prompt the model with `15191, 374` (the token ids for `"Who is"`).
# Use `"padding_mask"` to indicate values that should not be overridden.
prompt = {
    "token_ids": np.array([[15191, 374, 0, 0, 0]] * 2),
    "padding_mask": np.array([[1, 1, 0, 0, 0]] * 2),
}

qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset(
    "hf://keras/qwen2.5_instruct_32b_en",
    preprocessor=None,
)
qwen_lm.generate(prompt)

# Call fit() on a single batch.
features = ["The quick brown fox jumped.", "I forgot my homework."]
qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset("hf://keras/qwen2.5_instruct_32b_en")
qwen_lm.fit(x=features, batch_size=2)

# Call fit() without preprocessing.
x = {
    "token_ids": np.array([[1, 2, 3, 4, 5]] * 2),
    "padding_mask": np.array([[1, 1, 1, 1, 1]] * 2),
}
y = np.array([[2, 3, 4, 5, 0]] * 2)
sw = np.array([[1, 1, 1, 1, 1]] * 2)

qwen_lm = keras_hub.models.Qwen2CausalLM.from_preset(
    "hf://keras/qwen2.5_instruct_32b_en",
    preprocessor=None,
)
qwen_lm.fit(x=x, y=y, sample_weight=sw, batch_size=2)

Runs of keras qwen2.5_instruct_32b_en on huggingface.co

9
Total runs
0
24-hour runs
-3
3-day runs
-3
7-day runs
4
30-day runs

More Information About qwen2.5_instruct_32b_en huggingface.co Model

qwen2.5_instruct_32b_en huggingface.co

qwen2.5_instruct_32b_en huggingface.co is an AI model on huggingface.co that provides qwen2.5_instruct_32b_en's model effect (), which can be used instantly with this keras qwen2.5_instruct_32b_en model. huggingface.co supports a free trial of the qwen2.5_instruct_32b_en model, and also provides paid use of the qwen2.5_instruct_32b_en. Support call qwen2.5_instruct_32b_en model through api, including Node.js, Python, http.

qwen2.5_instruct_32b_en huggingface.co Url

https://huggingface.co/keras/qwen2.5_instruct_32b_en

keras qwen2.5_instruct_32b_en online free

qwen2.5_instruct_32b_en huggingface.co is an online trial and call api platform, which integrates qwen2.5_instruct_32b_en's modeling effects, including api services, and provides a free online trial of qwen2.5_instruct_32b_en, you can try qwen2.5_instruct_32b_en online for free by clicking the link below.

keras qwen2.5_instruct_32b_en online free url in huggingface.co:

https://huggingface.co/keras/qwen2.5_instruct_32b_en

qwen2.5_instruct_32b_en install

qwen2.5_instruct_32b_en is an open source model from GitHub that offers a free installation service, and any user can find qwen2.5_instruct_32b_en on GitHub to install. At the same time, huggingface.co provides the effect of qwen2.5_instruct_32b_en install, users can directly use qwen2.5_instruct_32b_en installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

qwen2.5_instruct_32b_en install url in huggingface.co:

https://huggingface.co/keras/qwen2.5_instruct_32b_en

Url of qwen2.5_instruct_32b_en

qwen2.5_instruct_32b_en huggingface.co Url

Provider of qwen2.5_instruct_32b_en huggingface.co

keras
ORGANIZATIONS

Other API from keras

huggingface.co

Total runs: 22
Run Growth: 19
Growth Rate: 86.36%
Updated:February 27 2026
huggingface.co

Total runs: 18
Run Growth: -130
Growth Rate: -866.67%
Updated:July 17 2026
huggingface.co

Total runs: 13
Run Growth: -28
Growth Rate: -215.38%
Updated:June 17 2025
huggingface.co

Total runs: 13
Run Growth: 6
Growth Rate: 46.15%
Updated:February 27 2026
huggingface.co

Total runs: 13
Run Growth: 10
Growth Rate: 76.92%
Updated:March 25 2025
huggingface.co

Total runs: 13
Run Growth: -23
Growth Rate: -176.92%
Updated:June 17 2025
huggingface.co

Total runs: 12
Run Growth: -130
Growth Rate: -1181.82%
Updated:July 17 2026
huggingface.co

Total runs: 11
Run Growth: 8
Growth Rate: 72.73%
Updated:February 27 2026
huggingface.co

Total runs: 10
Run Growth: 0
Growth Rate: 0.00%
Updated:March 25 2025
huggingface.co

Total runs: 9
Run Growth: 3
Growth Rate: 33.33%
Updated:March 25 2025
huggingface.co

Total runs: 8
Run Growth: 1
Growth Rate: 12.50%
Updated:March 25 2025
huggingface.co

Total runs: 7
Run Growth: -12
Growth Rate: -171.43%
Updated:May 15 2026
huggingface.co

Total runs: 7
Run Growth: -27
Growth Rate: -385.71%
Updated:June 17 2025
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 57.14%
Updated:February 27 2026
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 57.14%
Updated:February 27 2026
huggingface.co

Total runs: 6
Run Growth: 3
Growth Rate: 50.00%
Updated:June 17 2025
huggingface.co

Total runs: 6
Run Growth: 6
Growth Rate: 100.00%
Updated:June 17 2025
huggingface.co

Total runs: 6
Run Growth: 3
Growth Rate: 50.00%
Updated:March 25 2025