File size: 5,895 Bytes
8fb8698 79fd668 8fb8698 79fd668 de04971 a4685fa 8fb8698 21ed0e4 79fd668 8fb8698 8c4cd97 dcf8141 8c4cd97 21ed0e4 8fb8698 a4685fa |
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 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
---
base_model:
- benhaotang/Phi-4-llama-t1-full
- prithivMLmods/Phi-4-QwQ
- win10/Phi-4-llama-t1-lora
library_name: transformers
tags:
- mergekit
- merge
datasets:
- NovaSky-AI/Sky-T1_data_17k
license: mit
model-index:
- name: phi4-qwq-sky-t1
results:
- task:
type: text-generation
name: Text Generation
dataset:
name: IFEval (0-Shot)
type: wis-k/instruction-following-eval
split: train
args:
num_few_shot: 0
metrics:
- type: inst_level_strict_acc and prompt_level_strict_acc
value: 4.6
name: averaged accuracy
source:
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=benhaotang%2Fphi4-qwq-sky-t1
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: BBH (3-Shot)
type: SaylorTwift/bbh
split: test
args:
num_few_shot: 3
metrics:
- type: acc_norm
value: 52.61
name: normalized accuracy
source:
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=benhaotang%2Fphi4-qwq-sky-t1
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: MATH Lvl 5 (4-Shot)
type: lighteval/MATH-Hard
split: test
args:
num_few_shot: 4
metrics:
- type: exact_match
value: 39.58
name: exact match
source:
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=benhaotang%2Fphi4-qwq-sky-t1
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: GPQA (0-shot)
type: Idavidrein/gpqa
split: train
args:
num_few_shot: 0
metrics:
- type: acc_norm
value: 19.35
name: acc_norm
source:
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=benhaotang%2Fphi4-qwq-sky-t1
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: MuSR (0-shot)
type: TAUR-Lab/MuSR
args:
num_few_shot: 0
metrics:
- type: acc_norm
value: 21.38
name: acc_norm
source:
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=benhaotang%2Fphi4-qwq-sky-t1
name: Open LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: MMLU-PRO (5-shot)
type: TIGER-Lab/MMLU-Pro
config: main
split: test
args:
num_few_shot: 5
metrics:
- type: acc
value: 47.16
name: accuracy
source:
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=benhaotang%2Fphi4-qwq-sky-t1
name: Open LLM Leaderboard
---
# merge
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
## Merge Details
### Merge Method
This model was merged using the [TIES](https://arxiv.org/abs/2306.01708) merge method using [prithivMLmods/Phi-4-QwQ](https://huggingface.co/prithivMLmods/Phi-4-QwQ) as a base.
### Models Merged
The following models were included in the merge:
* [benhaotang/Phi-4-llama-t1-full](https://huggingface.co/benhaotang/Phi-4-llama-t1-full) but actually [win10/Phi-4-llama-t1-lora](https://huggingface.co/win10/Phi-4-llama-t1-lora), this is who and where you should really thank.
* [prithivMLmods/Phi-4-QwQ](https://huggingface.co/prithivMLmods/Phi-4-QwQ)
### Eval

IFEval is broken due to the Sky-T1 strict system prompt format, but other than that, seems to have recreated qwq at 14B.
### Running
- With Ollama
```
ollama run hf.co/benhaotang/phi4-qwq-sky-t1-Q4_K_M-GGUF
```
I suggest adding `SYSTEM "You are a helpful AI asistent. You always think step by step."` to triger step by step reasoning.
- With pytorch
```
import transformers
tokenizer = AutoTokenizer.from_pretrained("mircosoft/phi-4")
pipeline = transformers.pipeline(
"text-generation",
model="benhaotang/phi4-qwq-sky-t1",
tokenizer=tokenizer,
device_map="auto",
)
messages = [
{"role": "system", "content": "You are a helpful AI asistent. You always think step by step."},
{"role": "user", "content": "Give me a short intodcution to renormalization group(RG) flow in physcis?"},
]
outputs = pipeline(messages, max_new_tokens=128)
print(outputs[0]["generated_text"])
```
### Configuration
The following YAML configuration was used to produce this model:
```yaml
models:
- model: prithivMLmods/Phi-4-QwQ
#no parameters necessary for base model
- model: benhaotang/Phi-4-llama-t1-full
parameters:
density: 0.5
weight: 0.5
- model: prithivMLmods/Phi-4-QwQ
parameters:
density: 0.5
weight: 0.5
merge_method: ties
base_model: prithivMLmods/Phi-4-QwQ
parameters:
normalize: false
int8_mask: true
dtype: float16
```
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/benhaotang__phi4-qwq-sky-t1-details)!
Summarized results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/contents/viewer/default/train?q=benhaotang%2Fphi4-qwq-sky-t1&sort[column]=Average%20%E2%AC%86%EF%B8%8F&sort[direction]=desc)!
| Metric |Value (%)|
|-------------------|--------:|
|**Average** | 30.78|
|IFEval (0-Shot) | 4.60|
|BBH (3-Shot) | 52.61|
|MATH Lvl 5 (4-Shot)| 39.58|
|GPQA (0-shot) | 19.35|
|MuSR (0-shot) | 21.38|
|MMLU-PRO (5-shot) | 47.16|
|