Magpie-Align/Magpie-Pro-MT-300K-v0.1
Viewer โข Updated โข 300k โข 1.19k โข 32
How to use heegyu/0710-qwen2-magpie-qarv-komath with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="heegyu/0710-qwen2-magpie-qarv-komath")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM
tokenizer = AutoTokenizer.from_pretrained("heegyu/0710-qwen2-magpie-qarv-komath")
model = AutoModelForMultimodalLM.from_pretrained("heegyu/0710-qwen2-magpie-qarv-komath")
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]:]))How to use heegyu/0710-qwen2-magpie-qarv-komath with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "heegyu/0710-qwen2-magpie-qarv-komath"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "heegyu/0710-qwen2-magpie-qarv-komath",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/heegyu/0710-qwen2-magpie-qarv-komath
How to use heegyu/0710-qwen2-magpie-qarv-komath with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "heegyu/0710-qwen2-magpie-qarv-komath" \
--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": "heegyu/0710-qwen2-magpie-qarv-komath",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "heegyu/0710-qwen2-magpie-qarv-komath" \
--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": "heegyu/0710-qwen2-magpie-qarv-komath",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use heegyu/0710-qwen2-magpie-qarv-komath with Docker Model Runner:
docker model run hf.co/heegyu/0710-qwen2-magpie-qarv-komath
ChatML ํ ํ๋ฆฟ ์ฌ์ฉ
Epoch-1
์นดํ
๊ณ ๋ฆฌ: ์ถ๋ก (Reasoning), ์ฑ๊ธ ์ ์ ํ๊ท : 6.86, ๋ฉํฐ ์ ์ ํ๊ท : 4.00
์นดํ
๊ณ ๋ฆฌ: ์ํ(Math), ์ฑ๊ธ ์ ์ ํ๊ท : 6.00, ๋ฉํฐ ์ ์ ํ๊ท : 4.00
์นดํ
๊ณ ๋ฆฌ: ๊ธ์ฐ๊ธฐ(Writing), ์ฑ๊ธ ์ ์ ํ๊ท : 3.57, ๋ฉํฐ ์ ์ ํ๊ท : 4.00
์นดํ
๊ณ ๋ฆฌ: ์ฝ๋ฉ(Coding), ์ฑ๊ธ ์ ์ ํ๊ท : 5.71, ๋ฉํฐ ์ ์ ํ๊ท : 6.71
์นดํ
๊ณ ๋ฆฌ: ์ดํด(Understanding), ์ฑ๊ธ ์ ์ ํ๊ท : 6.57, ๋ฉํฐ ์ ์ ํ๊ท : 4.14
์นดํ
๊ณ ๋ฆฌ: ๋ฌธ๋ฒ(Grammar), ์ฑ๊ธ ์ ์ ํ๊ท : 6.29, ๋ฉํฐ ์ ์ ํ๊ท : 1.43
์ ์ฒด ์ฑ๊ธ ์ ์ ํ๊ท : 5.83
์ ์ฒด ๋ฉํฐ ์ ์ ํ๊ท : 4.05
์ ์ฒด ์ ์: 4.94
Epoch-2 (Main)
์นดํ
๊ณ ๋ฆฌ: ์ถ๋ก (Reasoning), ์ฑ๊ธ ์ ์ ํ๊ท : 5.86, ๋ฉํฐ ์ ์ ํ๊ท : 4.71
์นดํ
๊ณ ๋ฆฌ: ์ํ(Math), ์ฑ๊ธ ์ ์ ํ๊ท : 5.43, ๋ฉํฐ ์ ์ ํ๊ท : 2.86
์นดํ
๊ณ ๋ฆฌ: ๊ธ์ฐ๊ธฐ(Writing), ์ฑ๊ธ ์ ์ ํ๊ท : 3.86, ๋ฉํฐ ์ ์ ํ๊ท : 3.57
์นดํ
๊ณ ๋ฆฌ: ์ฝ๋ฉ(Coding), ์ฑ๊ธ ์ ์ ํ๊ท : 4.57, ๋ฉํฐ ์ ์ ํ๊ท : 6.00
์นดํ
๊ณ ๋ฆฌ: ์ดํด(Understanding), ์ฑ๊ธ ์ ์ ํ๊ท : 7.14, ๋ฉํฐ ์ ์ ํ๊ท : 6.29
์นดํ
๊ณ ๋ฆฌ: ๋ฌธ๋ฒ(Grammar), ์ฑ๊ธ ์ ์ ํ๊ท : 6.14, ๋ฉํฐ ์ ์ ํ๊ท : 2.71
์ ์ฒด ์ฑ๊ธ ์ ์ ํ๊ท : 5.50
์ ์ฒด ๋ฉํฐ ์ ์ ํ๊ท : 4.36
์ ์ฒด ์ ์: 4.93