Run this model with HF Jobs

Run nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic
Quick Links

nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic

This is a merge of pre-trained language models created using mergekit.

Performance

Metric Value
GSM8k (zero-shot) 86.20
HellaSwag (zero-Shot) 49.91
MBPP (zero-shot) 55.20

Merge Details

Merge Method

This model was merged using the Task Arithmetic merge method using Qwen/Qwen2.5-7B as a base.

Models Merged

The following models were included in the merge:

Configuration

The following YAML configuration was used to produce this model:

base_model: Qwen/Qwen2.5-7B
dtype: bfloat16
merge_method: task_arithmetic
parameters:
  lambda: 0.5676097213578511
  normalize: 1.0
slices:
- sources:
  - layer_range: [0, 28]
    model: Qwen/Qwen2.5-7B
  - layer_range: [0, 28]
    model: Qwen/Qwen2.5-Math-7B
    parameters:
      weight: 0.5215841338521604
  - layer_range: [0, 28]
    model: Qwen/Qwen2.5-Coder-7B
    parameters:
      weight: 0.13680114132969845
  - layer_range: [0, 28]
    model: Qwen/Qwen2.5-7B-Instruct
    parameters:
      weight: 0.8507353075455186
Downloads last month
12
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic

Collection including nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic

Paper for nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic