mav23 commited on
Commit
f982e93
·
verified ·
1 Parent(s): a6720a2

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +207 -0
  3. higgs-llama-3-70b.Q4_0.gguf +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ higgs-llama-3-70b.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: meta-llama/Meta-Llama-3-70B
4
+ ---
5
+ # Higgs-Llama-3-70B
6
+
7
+ Higgs-Llama-3-70B is post-trained from [meta-llama/Meta-Llama-3-70B](https://huggingface.co/meta-llama/Meta-Llama-3-70B), specially tuned for role-playing while being competitive in general-domain instruction-following and reasoning.
8
+
9
+ We perform supervised fine-tuning with our in-house instruction-following and chat datasets. Afterwards, we construct preference pairs with a semi-automated pipeline that relies on both human-labelers and our private LLMs.
10
+ We conduct iterative preference optimization to align the model. During alignment, we adopted a special strategy to align the model’s behavior with the system message.
11
+ Compared with other instruct models, Higgs models follow their roles more closely.
12
+
13
+ See our [release blog](https://boson.ai/higgs-opensource/).
14
+
15
+ ## Evaluation
16
+
17
+ All benchmarks lead to eventual overfitting, including those for LLMs. Training on data, particularly beneficial for benchmarks typically does not improve (or even worsen) role-playing performance. We worked to exclude benchmark data, including their training examples, from our fine-tuning data.
18
+
19
+ We highlight our results on two new and challenging benchmarks: [MMLU-Pro](https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro) and [Arena-Hard](https://github.com/lm-sys/arena-hard-auto). MMLU-Pro extends the popular MMLU benchmark. We believe that it suffers from less overfitting by other released models as well, as it was released only recently (it was released after our models finished training).
20
+
21
+ ### MMLU-Pro
22
+
23
+ <table class="col-12 col-md-6" width="100px">
24
+ <tr>
25
+ <td><b>Model</b></td>
26
+ <td><b>MMLU-Pro</b></td>
27
+ </tr>
28
+ <tr>
29
+ <td>GPT-4o</td>
30
+ <td>72.6</td>
31
+ </tr>
32
+ <tr>
33
+ <td>Gemini-1.5-Pro</td>
34
+ <td>69.0</td>
35
+ </tr>
36
+ <tr>
37
+ <td>Claude-3-Opus</td>
38
+ <td>68.5</td>
39
+ </tr>
40
+ <tr>
41
+ <td>GPT-4-Turbo</td>
42
+ <td>63.7</td>
43
+ </tr>
44
+ <tr style="font-weight: bold">
45
+ <td>Higgs-Llama-3-70B</td>
46
+ <td>63.2</td>
47
+ </tr>
48
+ <tr>
49
+ <td>Gemini-1.5-Flash</td>
50
+ <td>59.1</td>
51
+ </tr>
52
+ <tr>
53
+ <td>Claude-3-Sonnet</td>
54
+ <td>56.8</td>
55
+ </tr>
56
+ <tr>
57
+ <td>Llama-3-70B-Instruct</td>
58
+ <td>56.2</td>
59
+ </tr>
60
+ </table>
61
+
62
+
63
+ ### Arena-Hard
64
+
65
+ <table class="col-12 col-md-6">
66
+ <tr>
67
+ <td><b>Model</b></td>
68
+ <td><b>Arena-Hard</b></td>
69
+ </tr>
70
+ <tr>
71
+ <td>GPT-4o</td>
72
+ <td>79.5</td>
73
+ </tr>
74
+ <tr>
75
+ <td>Gemini-1.5-Pro</td>
76
+ <td>72.0</td>
77
+ </tr>
78
+ <tr>
79
+ <td>Claude-3-Opus</td>
80
+ <td>60.4</td>
81
+ </tr>
82
+ <tr style="font-weight: bold">
83
+ <td>Higgs-Llama-3-70B</td>
84
+ <td>49.6</td>
85
+ </tr>
86
+ <tr>
87
+ <td>Gemini-1.5-Flash</td>
88
+ <td>49.6</td>
89
+ </tr>
90
+ <tr>
91
+ <td>Claude-3-Sonnet</td>
92
+ <td>46.8</td>
93
+ </tr>
94
+ <tr>
95
+ <td>Claude-3-Haiku</td>
96
+ <td>41.5</td>
97
+ </tr>
98
+ <tr>
99
+ <td>Llama-3-70B-Instruct</td>
100
+ <td>41.1</td>
101
+ </tr>
102
+ <tr>
103
+ <td>GPT-4-0613</td>
104
+ <td>37.9</td>
105
+ </tr>
106
+ <tr>
107
+ <td>Mistral-Large</td>
108
+ <td>37.7</td>
109
+ </tr>
110
+ </table>
111
+
112
+ ## Overall Results
113
+
114
+ In the following, we compare our model's performance with `gpt-4o` and `Llama-3-70B-Instruct` on [MMLU-Pro](https://github.com/TIGER-AI-Lab/MMLU-Pro), [Arena-Hard](https://github.com/lm-sys/arena-hard-auto/tree/main), [AlpacaEval 2.0 LC](https://github.com/tatsu-lab/alpaca_eval), MMLU, GPQA and DROP. For MMLU, GPQA and DROP, we adopt [openai/simple-evals](https://github.com/openai/simple-evals) for evaluation. For the other benchmarks, we evaluate via the official implementation.
115
+
116
+ <div style="overflow: auto">
117
+ <table>
118
+ <tr>
119
+ <th></th>
120
+ <td><b>MMLU-Pro</td>
121
+ <td><b>Arena-Hard</td>
122
+ <td><b>AlpacaEval <br> 2.0 LC</b></td>
123
+ <td><b>MMLU</b></td>
124
+ <td><b>GPQA</b></td>
125
+ <td><b>DROP <br> (F1,3-shot)</b></td>
126
+ </tr>
127
+ <tr>
128
+ <td>GPT-4o</td>
129
+ <td>72.6</td>
130
+ <td>79.5*</td>
131
+ <td>57.5</td>
132
+ <td>87.2</td>
133
+ <td>49.9</td>
134
+ <td>83.7</td>
135
+ </tr>
136
+ <tr style="font-weight: bold">
137
+ <td>Higgs-Llama-3-70B</td>
138
+ <td>63.2</td>
139
+ <td>49.6</td>
140
+ <td>38.6</td>
141
+ <td>80.8</td>
142
+ <td>42.1</td>
143
+ <td>81.6</td>
144
+ </tr>
145
+ <tr>
146
+ <td>Llama-3-70B-Instruct*</td>
147
+ <td>56.2</td>
148
+ <td>41.1</td>
149
+ <td>34.4</td>
150
+ <td>80.2</td>
151
+ <td>41.3</td>
152
+ <td>81.4</td>
153
+ </tr>
154
+ </table>
155
+ </div>
156
+
157
+ <small>*For Llama-3-70B-Instruct, the MMLU-Pro number is copied from the [MMLU-Pro leaderboard](https://huggingface.co/spaces/TIGER-Lab/MMLU-Pro); the Arena-Hard numbers are copied from the [leaderboard updated on 5/21](https://github.com/lm-sys/arena-hard-auto/tree/main?tab=readme-ov-file#full-leaderboard-updated-0521) while we run gpt-4o ourselves; and the MMLU/GPQA/DROP are copied from [simple-evals](https://github.com/openai/simple-evals).</small>
158
+
159
+
160
+ ## How to use
161
+
162
+ We use the same prompting format as in Meta-Llama-3-70B-Instruct.
163
+
164
+ ### Use with transformers
165
+
166
+ See the snippet below for usage with Transformers:
167
+
168
+ ```python
169
+ import transformers
170
+ import torch
171
+
172
+ model_id = "bosonai/Higgs-Llama-3-70B"
173
+
174
+ pipeline = transformers.pipeline(
175
+ "text-generation",
176
+ model=model_id,
177
+ model_kwargs={"torch_dtype": torch.bfloat16},
178
+ device_map="auto",
179
+ )
180
+
181
+ messages = [
182
+ {"role": "system", "content": "You are an AI assistant that speaks in the style of Sheldon Cooper. You are arguing with the user and is trying to prove the opposite of what the user said."},
183
+ {"role": "user", "content": "The earth is round."},
184
+ ]
185
+
186
+ prompt = pipeline.tokenizer.apply_chat_template(
187
+ messages,
188
+ tokenize=False,
189
+ add_generation_prompt=True
190
+ )
191
+
192
+ outputs = pipeline(
193
+ prompt,
194
+ max_new_tokens=256,
195
+ eos_token_id=[
196
+ pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>"),
197
+ pipeline.tokenizer.eos_token_id,
198
+ ],
199
+ do_sample=True,
200
+ temperature=1.0,
201
+ top_p=0.95,
202
+ )
203
+ print(outputs[0]["generated_text"][len(prompt):])
204
+ ```
205
+
206
+ ## License
207
+ [Our license](https://huggingface.co/bosonai/Higgs-Llama-3-70B/blob/main/LICENSE) is based on Meta's LLama 3 Community License.
higgs-llama-3-70b.Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:541d874de99e22ef5dec53f52b9de271d9e180663208ed5b8881669854a443b9
3
+ size 39969732576