How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="qingy2024/Qwen2.5-Math-14B-Instruct-Preview")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("qingy2024/Qwen2.5-Math-14B-Instruct-Preview")
model = AutoModelForCausalLM.from_pretrained("qingy2024/Qwen2.5-Math-14B-Instruct-Preview")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Uploaded model

  • Developed by: qingy2019
  • License: apache-2.0
  • Finetuned from model : unsloth/qwen2.5-14b-instruct-bnb-4bit

This Qwen 2.5 model was trained 2x faster with Unsloth and Huggingface's TRL library.

I fine-tuned it for 400 steps on garage-bAInd/Open-Platypus with a batch size of 3.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 36.71
IFEval (0-Shot) 60.66
BBH (3-Shot) 47.02
MATH Lvl 5 (4-Shot) 28.47
GPQA (0-shot) 16.33
MuSR (0-shot) 19.63
MMLU-PRO (5-shot) 48.12
Downloads last month
764
Safetensors
Model size
15B params
Tensor type
F16
·
Inference Providers NEW
Input a message to start chatting with qingy2024/Qwen2.5-Math-14B-Instruct-Preview.

Model tree for qingy2024/Qwen2.5-Math-14B-Instruct-Preview

Merges
6 models
Quantizations
5 models

Collection including qingy2024/Qwen2.5-Math-14B-Instruct-Preview

Evaluation results