Qwen2.5 Merged
Collection
Making Qwen2.5 greater with Merging • 6 items • Updated
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic" \
--host 0.0.0.0 \
--port 30000# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/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?"
}
]
}'This is a merge of pre-trained language models created using mergekit.
| Metric | Value |
|---|---|
| GSM8k (zero-shot) | 86.20 |
| HellaSwag (zero-Shot) | 49.91 |
| MBPP (zero-shot) | 55.20 |
This model was merged using the Task Arithmetic merge method using Qwen/Qwen2.5-7B as a base.
The following models were included in the merge:
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
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nthehai01/Qwen2.5-7B-Instruct-Math-Code-task-arithmetic" \ --host 0.0.0.0 \ --port 30000# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/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?" } ] }'