File size: 3,648 Bytes
e9f496e
 
 
 
 
 
 
 
 
 
 
 
 
 
3765b6f
 
24fc7ff
3765b6f
 
 
24fc7ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5197888
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
license: apache-2.0
language:
- en
- ko
base_model:
- Motif-Technologies/Motif-2-12.7B-Base
tags:
- text-generation-inference
- conversational
- custom_code
- text-generation
- Motif
library_name: transformers
---

Last update: 10 Dec. 2025

# Introduction

This is a reasoning enhanced version of **Motif-2-12.7B-Instruct**. Detailed information will be released later.

# Evaluation

|Benchmark|Evaluation setting|Motif-2-12.7B|Motif-2-12.7B|
|---|---|---|---|
|||Instruct|Reasoning|
|MMLU|0-shot|86.11|84.07
|MMLU-Redux|-|90.02|88.89|
|BBH|0-shot|85.78|78.34|
|GPQA-Diamond|0-shot, CoT|63.6|70|
|GSM8K|0-shot, CoT|96.13|95.53|
|MATH|0-shot|97|95.07|
|MBPP|3-shot|91|88.9|
|LiveBench 2024-11-25|-|33.8|49.9|
|IFEval|strict prompt|75.78|79.11|
|IFEval|0-shot|76.52|81.89|
|MATH-500|-|96.8|99.3|
|AIME24|-|72.3|88.3|
|AIME25|-|63.6|80|
|ZebraLogic|-|69.5|77|
|BFCL v3|-|55.34|60.2|
|LiveCodeBench v5 <br> (2024.10 - 2025.2)|-|50.03|65|
|LiveCodeBench v5 |0-shot, CoT|61.66|60.1|
|HumanEval|0-shot|93.2|93.2|
|**Average**|-|**75.45**|**79.71**|

## How to use in vllm
The [PR](https://github.com/vllm-project/vllm/pull/27396) adding support for the Motif model in the official vLLM package is currently under review.  
In the meantime, to use our model with vLLM, please use the following container [image](https://github.com/motiftechnologies/vllm/pkgs/container/vllm).  
Our model supports a sequence length of up to 64K tokens.
```bash
# run vllm api server
VLLM_ATTENTION_BACKEND=DIFFERENTIAL_FLASH_ATTN \
vllm serve Motif-Technologies/Motif-2-12.7B-Reasoning \
    --trust-remote-code \
    --max-model-len 65536 \
    --tensor-parallel-size 8

# sending requests with curl
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "What is the capital city of South Korea?"}
    ],
    "temperature": 0.6,
    "skip_special_tokens": false,
    "chat_template_kwargs": {
        "enable_thinking": true
    }
  }'
```

## How to use advanced vllm options
Description of each option  
```--compilation_config '{"full_cuda_graph": true}'``` : Activates cuda [full graph capture](https://docs.vllm.ai/en/stable/design/cuda_graphs/#cudagraphmodes)  
```--rope-scaling '{"rope_type":"yarn","factor":2.0,"original_max_position_embeddings":65536}'```: Apply [yarn](https://arxiv.org/abs/2309.00071)  
```--enable-auto-tool-choice --tool-call-parser hermes``` : Enables [tool calling](https://docs.vllm.ai/en/latest/features/tool_calling/)  
```--logits-processors logit_:WrappedPerReqLogitsProcessor``` : Enables VLLM_THINK_BUDGET_RATIO env variable and repetition-based auto-stop for thinking autostop  
```--reasoning-parser deepseek_r1``` : Parses [reasoning outputs](https://docs.vllm.ai/en/latest/features/reasoning_outputs/)  

### how to use
```bash
pip install -U "huggingface_hub[cli]"
hf download Motif-Technologies/Motif-2-12.7B-Reasoning \
  --include "logit_processors/*" \
  --local-dir ./

export PYTHONPATH="$PWD/logit_processors"
VLLM_ATTENTION_BACKEND=DIFFERENTIAL_FLASH_ATTN \
VLLM_THINK_BUDGET_RATIO=0.95 \ 
vllm serve Motif-Technologies/Motif-2-12.7B-Reasoning \
    --trust-remote-code \
    --compilation_config '{"full_cuda_graph": true}' \
    --rope-scaling '{"rope_type":"yarn","factor":2.0,"original_max_position_embeddings":65536}' \
    --max-model-len 131072 \
    --tensor-parallel-size 8 \
    --enable-auto-tool-choice \
    --tool-call-parser hermes \
    --logits-processors logit_:WrappedPerReqLogitsProcessor \
    --reasoning-parser deepseek_r1
```