CoolFace
Modelpublic

abacusai/Smaug-Qwen2-72B-Instruct

sourceHugging Faceotherupdated 2y agoView on Hugging Face
10likes92downloads
Model Card

Smaug-Qwen2-72B-Instruct

image/png

Introduction

We introduce the latest in the Smaug series - a finetune of Qwen2-72B-Instruct

Compared to Qwen2-72B-Instruct, Smaug has better BBH, LiveCodeBench, and Arena-Hard scores (see evaluation results below).

How to use

The prompt format is unchanged from Qwen2-72B-Instruct.

Use with transformers

See the snippet below for usage with Transformers:

python
import transformers
import torch

model_id = "abacusai/Smaug-Qwen2-72B-Instruct"

pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16},
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
    {"role": "user", "content": "Who are you?"},
]

prompt = pipeline.tokenizer.apply_chat_template(
		messages, 
		tokenize=False, 
		add_generation_prompt=True
)

terminators = [
    pipeline.tokenizer.eos_token_id,
    pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
]

outputs = pipeline(
    prompt,
    max_new_tokens=256,
    eos_token_id=terminators,
    do_sample=True,
    temperature=0.6,
    top_p=0.9,
)
print(outputs[0]["generated_text"][len(prompt):])

Evaluation Results

Big-Bench Hard (BBH)

Note: These results are with corrected parsing for BBH from Eleuther's lm-evaluation-harness. See this PR.

Overall:
ModelGroupsVersionFiltern-shotMetricValueStderr
Smaug-Qwen2-72B-InstructbbhN/Aget-answer3exact_match0.8241±0.0042
Qwen2-72B-InstructbbhN/Aget-answer3exact_match0.8036±0.0044
Breakdown:

Smaug-Qwen2-72B-Instruct:

TasksVersionFiltern-shotMetricValueStderr
bbhN/Aget-answer3exact_match0.82410.0042
- bbhcotfewshotbooleanexpressions2get-answer3exact_match0.96400.0118
- bbhcotfewshotcausaljudgement2get-answer3exact_match0.65780.0348
- bbhcotfewshotdateunderstanding2get-answer3exact_match0.83600.0235
- bbhcotfewshotdisambiguationqa2get-answer3exact_match0.82800.0239
- bbhcotfewshotdycklanguages2get-answer3exact_match0.33600.0299
- bbhcotfewshotformalfallacies2get-answer3exact_match0.71200.0287
- bbhcotfewshotgeometricshapes2get-answer3exact_match0.53200.0316
- bbhcotfewshot_hyperbaton2get-answer3exact_match0.98800.0069
- bbhcotfewshotlogicaldeductionfiveobjects2get-answer3exact_match0.76800.0268
- bbhcotfewshotlogicaldeductionsevenobjects2get-answer3exact_match0.53600.0316
- bbhcotfewshotlogicaldeductionthreeobjects2get-answer3exact_match0.97200.0105
- bbhcotfewshotmovierecommendation2get-answer3exact_match0.80000.0253
- bbhcotfewshotmultisteparithmetic_two2get-answer3exact_match0.97200.0105
- bbhcotfewshot_navigate2get-answer3exact_match0.96400.0118
- bbhcotfewshotobjectcounting2get-answer3exact_match0.92000.0172
- bbhcotfewshotpenguinsinatable2get-answer3exact_match0.84930.0297
- bbhcotfewshotreasoningaboutcoloredobjects2get-answer3exact_match0.75600.0272
- bbhcotfewshotruinnames2get-answer3exact_match0.85200.0225
- bbhcotfewshotsalienttranslationerrordetection2get-answer3exact_match0.59200.0311
- bbhcotfewshot_snarks2get-answer3exact_match0.91010.0215
- bbhcotfewshotsportsunderstanding2get-answer3exact_match0.94400.0146
- bbhcotfewshottemporalsequences2get-answer3exact_match1.00000.0000
- bbhcotfewshottrackingshuffledobjectsfive_objects2get-answer3exact_match0.98000.0089
- bbhcotfewshottrackingshuffledobjectsseven_objects2get-answer3exact_match0.95600.0130
- bbhcotfewshottrackingshuffledobjectsthree_objects2get-answer3exact_match0.96400.0118
- bbhcotfewshotwebof_lies2get-answer3exact_match1.00000.0000
- bbhcotfewshotwordsorting2get-answer3exact_match0.65600.0301

Qwen2-72B-Instruct:

TasksVersionFiltern-shotMetricValueStderr
bbhN/Aget-answer3exact_match0.80360.0044
- bbhcotfewshotbooleanexpressions2get-answer3exact_match0.96400.0118
- bbhcotfewshotcausaljudgement2get-answer3exact_match0.66840.0345
- bbhcotfewshotdateunderstanding2get-answer3exact_match0.80000.0253
- bbhcotfewshotdisambiguationqa2get-answer3exact_match0.83600.0235
- bbhcotfewshotdycklanguages2get-answer3exact_match0.30400.0292
- bbhcotfewshotformalfallacies2get-answer3exact_match0.74800.0275
- bbhcotfewshotgeometricshapes2get-answer3exact_match0.49600.0317
- bbhcotfewshot_hyperbaton2get-answer3exact_match0.94400.0146
- bbhcotfewshotlogicaldeductionfiveobjects2get-answer3exact_match0.68000.0296
- bbhcotfewshotlogicaldeductionsevenobjects2get-answer3exact_match0.47200.0316
- bbhcotfewshotlogicaldeductionthreeobjects2get-answer3exact_match0.92000.0172
- bbhcotfewshotmovierecommendation2get-answer3exact_match0.78000.0263
- bbhcotfewshotmultisteparithmetic_two2get-answer3exact_match0.97600.0097
- bbhcotfewshot_navigate2get-answer3exact_match0.95200.0135
- bbhcotfewshotobjectcounting2get-answer3exact_match0.94800.0141
- bbhcotfewshotpenguinsinatable2get-answer3exact_match0.57530.0410
- bbhcotfewshotreasoningaboutcoloredobjects2get-answer3exact_match0.81200.0248
- bbhcotfewshotruinnames2get-answer3exact_match0.87600.0209
- bbhcotfewshotsalienttranslationerrordetection2get-answer3exact_match0.58800.0312
- bbhcotfewshot_snarks2get-answer3exact_match0.87640.0247
- bbhcotfewshotsportsunderstanding2get-answer3exact_match0.90800.0183
- bbhcotfewshottemporalsequences2get-answer3exact_match0.99600.0040
- bbhcotfewshottrackingshuffledobjectsfive_objects2get-answer3exact_match0.91600.0176
- bbhcotfewshottrackingshuffledobjectsseven_objects2get-answer3exact_match0.94000.0151
- bbhcotfewshottrackingshuffledobjectsthree_objects2get-answer3exact_match0.94400.0146
- bbhcotfewshotwebof_lies2get-answer3exact_match1.00000.0000
- bbhcotfewshotwordsorting2get-answer3exact_match0.66800.0298

LiveCodeBench

ModelPass@1Easy Pass@1Medium Pass@1Hard Pass@1
Smaug-Qwen2-72B-Instruct0.33570.72860.16330.0000
Qwen2-72B-Instruct0.31390.68100.15310.0000

Arena-Hard

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.

ModelScore95% Confidence IntervalAverage Tokens
GPT-4-Turbo-2024-04-0982.6(-1.8, 1.6)662
GPT-4o78.3(-2.4, 2.1)685
Gemini-1.5-pro-latest72.1(-2.3, 2.2)630
Claude-3-Opus-2024022960.4(-3.3, 2.4)541
Smaug-Llama-3-70B-Instruct56.7(-2.2, 2.6)661
GPT-4-031450.0(-0.0, 0.0)423
Smaug-Qwen2-72B-Instruct48.0(-1.8, 2.1)628
Claude-3-Sonnet-2024022946.8(-2.1, 2.2)552
Qwen2-72B-Instruct43.5(-2.6, 2.7)531
Llama-3-70B-Instruct41.1(-2.5, 2.4)583
GPT-4-061337.9(-2.2, 2.0)354
Mistral-Large-240237.7(-1.9, 2.6)400
Mixtral-8x22B-Instruct-v0.136.4(-2.7, 2.9)430
Qwen1.5-72B-Chat36.1(-2.5, 2.2)474
Command-R-Plus33.1(-2.1, 2.2)541
Mistral-Medium31.9(-2.3, 2.4)485
GPT-3.5-Turbo-061324.8(-1.6, 2.0)401

MT-Bench

First turn

ModelTurnScore
Qwen2-72B-Instruct19.18125
Smaug-Qwen2-72B-Instruct19.05625

Second turn

ModelTurnScore
Qwen2-72B-Instruct28.74684
Smaug-Qwen2-72B-Instruct28.67500

Average

ModelScore
Qwen2-72B-Instruct8.96541
Smaug-Qwen2-72B-Instruct8.86563

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.41.08
IFEval (0-Shot)78.25
BBH (3-Shot)56.27
MATH Lvl 5 (4-Shot)35.35
GPQA (0-shot)14.88
MuSR (0-shot)15.18
MMLU-PRO (5-shot)46.56