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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Quantization made by Richard Erkhov.
|
2 |
+
|
3 |
+
[Github](https://github.com/RichardErkhov)
|
4 |
+
|
5 |
+
[Discord](https://discord.gg/pvy7H8DZMG)
|
6 |
+
|
7 |
+
[Request more models](https://github.com/RichardErkhov/quant_request)
|
8 |
+
|
9 |
+
|
10 |
+
Smaug-Llama-3-70B-Instruct-32K - GGUF
|
11 |
+
- Model creator: https://huggingface.co/abacusai/
|
12 |
+
- Original model: https://huggingface.co/abacusai/Smaug-Llama-3-70B-Instruct-32K/
|
13 |
+
|
14 |
+
|
15 |
+
| Name | Quant method | Size |
|
16 |
+
| ---- | ---- | ---- |
|
17 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q2_K.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.Q2_K.gguf) | Q2_K | 24.56GB |
|
18 |
+
| [Smaug-Llama-3-70B-Instruct-32K.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.IQ3_XS.gguf) | IQ3_XS | 27.29GB |
|
19 |
+
| [Smaug-Llama-3-70B-Instruct-32K.IQ3_S.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.IQ3_S.gguf) | IQ3_S | 28.79GB |
|
20 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.Q3_K_S.gguf) | Q3_K_S | 28.79GB |
|
21 |
+
| [Smaug-Llama-3-70B-Instruct-32K.IQ3_M.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.IQ3_M.gguf) | IQ3_M | 29.74GB |
|
22 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q3_K.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.Q3_K.gguf) | Q3_K | 31.91GB |
|
23 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.Q3_K_M.gguf) | Q3_K_M | 31.91GB |
|
24 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.Q3_K_L.gguf) | Q3_K_L | 34.59GB |
|
25 |
+
| [Smaug-Llama-3-70B-Instruct-32K.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.IQ4_XS.gguf) | IQ4_XS | 35.64GB |
|
26 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q4_0.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/blob/main/Smaug-Llama-3-70B-Instruct-32K.Q4_0.gguf) | Q4_0 | 37.22GB |
|
27 |
+
| [Smaug-Llama-3-70B-Instruct-32K.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | IQ4_NL | 37.58GB |
|
28 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q4_K_S | 37.58GB |
|
29 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q4_K.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q4_K | 39.6GB |
|
30 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q4_K_M | 39.6GB |
|
31 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q4_1.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q4_1 | 41.27GB |
|
32 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q5_0.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q5_0 | 45.32GB |
|
33 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q5_K_S | 45.32GB |
|
34 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q5_K.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q5_K | 46.52GB |
|
35 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q5_K_M | 46.52GB |
|
36 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q5_1.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q5_1 | 49.36GB |
|
37 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q6_K.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q6_K | 53.91GB |
|
38 |
+
| [Smaug-Llama-3-70B-Instruct-32K.Q8_0.gguf](https://huggingface.co/RichardErkhov/abacusai_-_Smaug-Llama-3-70B-Instruct-32K-gguf/tree/main/) | Q8_0 | 69.83GB |
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
Original model description:
|
44 |
+
---
|
45 |
+
license: llama3
|
46 |
+
library_name: transformers
|
47 |
+
datasets:
|
48 |
+
- aqua_rat
|
49 |
+
- microsoft/orca-math-word-problems-200k
|
50 |
+
- m-a-p/CodeFeedback-Filtered-Instruction
|
51 |
+
model-index:
|
52 |
+
- name: Smaug-Llama-3-70B-Instruct-32K
|
53 |
+
results:
|
54 |
+
- task:
|
55 |
+
type: text-generation
|
56 |
+
name: Text Generation
|
57 |
+
dataset:
|
58 |
+
name: IFEval (0-Shot)
|
59 |
+
type: HuggingFaceH4/ifeval
|
60 |
+
args:
|
61 |
+
num_few_shot: 0
|
62 |
+
metrics:
|
63 |
+
- type: inst_level_strict_acc and prompt_level_strict_acc
|
64 |
+
value: 77.61
|
65 |
+
name: strict accuracy
|
66 |
+
source:
|
67 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=abacusai/Smaug-Llama-3-70B-Instruct-32K
|
68 |
+
name: Open LLM Leaderboard
|
69 |
+
- task:
|
70 |
+
type: text-generation
|
71 |
+
name: Text Generation
|
72 |
+
dataset:
|
73 |
+
name: BBH (3-Shot)
|
74 |
+
type: BBH
|
75 |
+
args:
|
76 |
+
num_few_shot: 3
|
77 |
+
metrics:
|
78 |
+
- type: acc_norm
|
79 |
+
value: 49.07
|
80 |
+
name: normalized accuracy
|
81 |
+
source:
|
82 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=abacusai/Smaug-Llama-3-70B-Instruct-32K
|
83 |
+
name: Open LLM Leaderboard
|
84 |
+
- task:
|
85 |
+
type: text-generation
|
86 |
+
name: Text Generation
|
87 |
+
dataset:
|
88 |
+
name: MATH Lvl 5 (4-Shot)
|
89 |
+
type: hendrycks/competition_math
|
90 |
+
args:
|
91 |
+
num_few_shot: 4
|
92 |
+
metrics:
|
93 |
+
- type: exact_match
|
94 |
+
value: 21.22
|
95 |
+
name: exact match
|
96 |
+
source:
|
97 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=abacusai/Smaug-Llama-3-70B-Instruct-32K
|
98 |
+
name: Open LLM Leaderboard
|
99 |
+
- task:
|
100 |
+
type: text-generation
|
101 |
+
name: Text Generation
|
102 |
+
dataset:
|
103 |
+
name: GPQA (0-shot)
|
104 |
+
type: Idavidrein/gpqa
|
105 |
+
args:
|
106 |
+
num_few_shot: 0
|
107 |
+
metrics:
|
108 |
+
- type: acc_norm
|
109 |
+
value: 6.15
|
110 |
+
name: acc_norm
|
111 |
+
source:
|
112 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=abacusai/Smaug-Llama-3-70B-Instruct-32K
|
113 |
+
name: Open LLM Leaderboard
|
114 |
+
- task:
|
115 |
+
type: text-generation
|
116 |
+
name: Text Generation
|
117 |
+
dataset:
|
118 |
+
name: MuSR (0-shot)
|
119 |
+
type: TAUR-Lab/MuSR
|
120 |
+
args:
|
121 |
+
num_few_shot: 0
|
122 |
+
metrics:
|
123 |
+
- type: acc_norm
|
124 |
+
value: 12.43
|
125 |
+
name: acc_norm
|
126 |
+
source:
|
127 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=abacusai/Smaug-Llama-3-70B-Instruct-32K
|
128 |
+
name: Open LLM Leaderboard
|
129 |
+
- task:
|
130 |
+
type: text-generation
|
131 |
+
name: Text Generation
|
132 |
+
dataset:
|
133 |
+
name: MMLU-PRO (5-shot)
|
134 |
+
type: TIGER-Lab/MMLU-Pro
|
135 |
+
config: main
|
136 |
+
split: test
|
137 |
+
args:
|
138 |
+
num_few_shot: 5
|
139 |
+
metrics:
|
140 |
+
- type: acc
|
141 |
+
value: 41.83
|
142 |
+
name: accuracy
|
143 |
+
source:
|
144 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=abacusai/Smaug-Llama-3-70B-Instruct-32K
|
145 |
+
name: Open LLM Leaderboard
|
146 |
+
---
|
147 |
+
|
148 |
+
# Smaug-Llama-3-70B-Instruct-32K
|
149 |
+
|
150 |
+
### Built with Meta Llama 3
|
151 |
+
|
152 |
+
This is a 32K version of Smaug-Llama-3-70B-Instruct. It uses PoSE (https://arxiv.org/abs/2309.10400) and LoRA (https://arxiv.org/abs/2106.09685) adapter transfer. More details are coming soon.
|
153 |
+
|
154 |
+
Needle-In-A-Haystack (https://github.com/jzhang38/EasyContext) heatmap:
|
155 |
+
|
156 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64c14f6b02e1f8f67c73bd05/8Z5XgqrZXKcb2hmeTKTT6.png)
|
157 |
+
|
158 |
+
### Model Description
|
159 |
+
|
160 |
+
- **Developed by:** [Abacus.AI](https://abacus.ai)
|
161 |
+
- **License:** https://llama.meta.com/llama3/license/
|
162 |
+
- **Finetuned from model:** [meta-llama/Meta-Llama-3-70B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct).
|
163 |
+
|
164 |
+
## How to use
|
165 |
+
|
166 |
+
The prompt format is unchanged from Llama 3 70B Instruct.
|
167 |
+
|
168 |
+
### Use with transformers
|
169 |
+
|
170 |
+
See the snippet below for usage with Transformers:
|
171 |
+
|
172 |
+
```python
|
173 |
+
import transformers
|
174 |
+
import torch
|
175 |
+
|
176 |
+
model_id = "abacusai/Smaug-Llama-3-70B-Instruct"
|
177 |
+
|
178 |
+
pipeline = transformers.pipeline(
|
179 |
+
"text-generation",
|
180 |
+
model=model_id,
|
181 |
+
model_kwargs={"torch_dtype": torch.bfloat16},
|
182 |
+
device_map="auto",
|
183 |
+
)
|
184 |
+
|
185 |
+
messages = [
|
186 |
+
{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
|
187 |
+
{"role": "user", "content": "Who are you?"},
|
188 |
+
]
|
189 |
+
|
190 |
+
prompt = pipeline.tokenizer.apply_chat_template(
|
191 |
+
messages,
|
192 |
+
tokenize=False,
|
193 |
+
add_generation_prompt=True
|
194 |
+
)
|
195 |
+
|
196 |
+
terminators = [
|
197 |
+
pipeline.tokenizer.eos_token_id,
|
198 |
+
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
|
199 |
+
]
|
200 |
+
|
201 |
+
outputs = pipeline(
|
202 |
+
prompt,
|
203 |
+
max_new_tokens=256,
|
204 |
+
eos_token_id=terminators,
|
205 |
+
do_sample=True,
|
206 |
+
temperature=0.6,
|
207 |
+
top_p=0.9,
|
208 |
+
)
|
209 |
+
print(outputs[0]["generated_text"][len(prompt):])
|
210 |
+
```
|
211 |
+
|
212 |
+
|
213 |
+
## Evaluation
|
214 |
+
|
215 |
+
### Arena-Hard
|
216 |
+
|
217 |
+
### Arena-Hard
|
218 |
+
|
219 |
+
Score vs selected others (sourced from: (https://lmsys.org/blog/2024-04-19-arena-hard/#full-leaderboard-with-gpt-4-turbo-as-judge)). GPT-4o and Gemini-1.5-pro-latest were missing from the original blob post, and we produced those numbers from a local run using the same methodology.
|
220 |
+
|
221 |
+
| Model | Score | 95% Confidence Interval | Average Tokens |
|
222 |
+
| :---- | ---------: | ----------: | ------: |
|
223 |
+
| GPT-4-Turbo-2024-04-09 | 82.6 | (-1.8, 1.6) | 662 |
|
224 |
+
| GPT-4o | 78.3 | (-2.4, 2.1) | 685 |
|
225 |
+
| Gemini-1.5-pro-latest | 72.1 | (-2.3, 2.2) | 630 |
|
226 |
+
| Claude-3-Opus-20240229 | 60.4 | (-3.3, 2.4) | 541 |
|
227 |
+
| **Smaug-Llama-3-70B-Instruct-32K** | 60.0 | (-2.6, 2.1) | 844 |
|
228 |
+
| Smaug-Llama-3-70B-Instruct | 56.7 | (-2.2, 2.6) | 661 |
|
229 |
+
| GPT-4-0314 | 50.0 | (-0.0, 0.0) | 423 |
|
230 |
+
| Claude-3-Sonnet-20240229 | 46.8 | (-2.1, 2.2) | 552 |
|
231 |
+
| Llama-3-70B-Instruct | 41.1 | (-2.5, 2.4) | 583 |
|
232 |
+
| GPT-4-0613 | 37.9 | (-2.2, 2.0) | 354 |
|
233 |
+
| Mistral-Large-2402 | 37.7 | (-1.9, 2.6) | 400 |
|
234 |
+
| Mixtral-8x22B-Instruct-v0.1 | 36.4 | (-2.7, 2.9) | 430 |
|
235 |
+
| Qwen1.5-72B-Chat | 36.1 | (-2.5, 2.2) | 474 |
|
236 |
+
| Command-R-Plus | 33.1 | (-2.1, 2.2) | 541 |
|
237 |
+
| Mistral-Medium | 31.9 | (-2.3, 2.4) | 485 |
|
238 |
+
| GPT-3.5-Turbo-0613 | 24.8 | (-1.6, 2.0) | 401 |
|
239 |
+
|
240 |
+
Note that we believe the number of tokens/verbosity of the model strongly influences the GPT-4 judge in this case, and at least partially explains the improvement in Arena-Hard score for the 32K model.
|
241 |
+
|
242 |
+
### OpenLLM Leaderboard Manual Evaluation
|
243 |
+
|
244 |
+
| Model | ARC | Hellaswag | MMLU | TruthfulQA | Winogrande | GSM8K* | Average |
|
245 |
+
| :---- | ---: | ------: | ---: | ---: | ---: | ---: | ---: |
|
246 |
+
| Smaug-Llama-3-70B-Instruct-32K | 70.1 | TBA | TBA | 61.9 | 82.2 | TBA | TBA |
|
247 |
+
| Llama-3-70B-Instruct | 71.4 | 85.7 | 80.0 | 61.8 | 82.9 | 91.1 | 78.8 |
|
248 |
+
|
249 |
+
**GSM8K** The GSM8K numbers quoted here are computed using a recent release
|
250 |
+
of the [LM Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness/).
|
251 |
+
The commit used by the leaderboard has a significant issue that impacts models that
|
252 |
+
tend to use `:` in their responses due to a bug in the stop word configuration for
|
253 |
+
GSM8K. The issue is covered in more detail in this
|
254 |
+
[GSM8K evaluation discussion](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard/discussions/770).
|
255 |
+
The score for both Llama-3 and this model are significantly different when evaluated
|
256 |
+
with the updated harness as the issue with stop words has been addressed.
|
257 |
+
|
258 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
259 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_abacusai__Smaug-Llama-3-70B-Instruct-32K)
|
260 |
+
|
261 |
+
| Metric |Value|
|
262 |
+
|-------------------|----:|
|
263 |
+
|Avg. |34.72|
|
264 |
+
|IFEval (0-Shot) |77.61|
|
265 |
+
|BBH (3-Shot) |49.07|
|
266 |
+
|MATH Lvl 5 (4-Shot)|21.22|
|
267 |
+
|GPQA (0-shot) | 6.15|
|
268 |
+
|MuSR (0-shot) |12.43|
|
269 |
+
|MMLU-PRO (5-shot) |41.83|
|
270 |
+
|
271 |
+
|
272 |
+
|