Transformers
GGUF
Inference Endpoints
conversational
LoneStriker commited on
Commit
b3bf4ca
1 Parent(s): a3a74fe

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,35 +1,7 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz 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
 
1
+ Smaug-Llama-3-70B-Instruct-32K-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
2
+ Smaug-Llama-3-70B-Instruct-32K-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
3
+ Smaug-Llama-3-70B-Instruct-32K-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
4
+ Smaug-Llama-3-70B-Instruct-32K-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
5
+ Smaug-Llama-3-70B-Instruct-32K-Q6_K-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
6
+ Smaug-Llama-3-70B-Instruct-32K-Q6_K-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
7
+ Smaug-Llama-3-70B-Instruct-32K-Q6_K-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: llama3
4
+ datasets:
5
+ - aqua_rat
6
+ - microsoft/orca-math-word-problems-200k
7
+ - m-a-p/CodeFeedback-Filtered-Instruction
8
+ ---
9
+
10
+ # Smaug-Llama-3-70B-Instruct-32K
11
+
12
+ ### Built with Meta Llama 3
13
+
14
+ 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.
15
+
16
+ Needle-In-A-Haystack (https://github.com/jzhang38/EasyContext) heatmap:
17
+
18
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64c14f6b02e1f8f67c73bd05/8Z5XgqrZXKcb2hmeTKTT6.png)
19
+
20
+ ### Model Description
21
+
22
+ - **Developed by:** [Abacus.AI](https://abacus.ai)
23
+ - **License:** https://llama.meta.com/llama3/license/
24
+ - **Finetuned from model:** [meta-llama/Meta-Llama-3-70B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct).
25
+
26
+ ## How to use
27
+
28
+ The prompt format is unchanged from Llama 3 70B Instruct.
29
+
30
+ ### Use with transformers
31
+
32
+ See the snippet below for usage with Transformers:
33
+
34
+ ```python
35
+ import transformers
36
+ import torch
37
+
38
+ model_id = "abacusai/Smaug-Llama-3-70B-Instruct"
39
+
40
+ pipeline = transformers.pipeline(
41
+ "text-generation",
42
+ model=model_id,
43
+ model_kwargs={"torch_dtype": torch.bfloat16},
44
+ device_map="auto",
45
+ )
46
+
47
+ messages = [
48
+ {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
49
+ {"role": "user", "content": "Who are you?"},
50
+ ]
51
+
52
+ prompt = pipeline.tokenizer.apply_chat_template(
53
+ messages,
54
+ tokenize=False,
55
+ add_generation_prompt=True
56
+ )
57
+
58
+ terminators = [
59
+ pipeline.tokenizer.eos_token_id,
60
+ pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
61
+ ]
62
+
63
+ outputs = pipeline(
64
+ prompt,
65
+ max_new_tokens=256,
66
+ eos_token_id=terminators,
67
+ do_sample=True,
68
+ temperature=0.6,
69
+ top_p=0.9,
70
+ )
71
+ print(outputs[0]["generated_text"][len(prompt):])
72
+ ```
73
+
74
+
75
+ ## Evaluation
76
+
77
+ ### Arena-Hard
78
+
79
+ ### Arena-Hard
80
+
81
+ 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.
82
+
83
+ | Model | Score | 95% Confidence Interval | Average Tokens |
84
+ | :---- | ---------: | ----------: | ------: |
85
+ | GPT-4-Turbo-2024-04-09 | 82.6 | (-1.8, 1.6) | 662 |
86
+ | GPT-4o | 78.3 | (-2.4, 2.1) | 685 |
87
+ | Gemini-1.5-pro-latest | 72.1 | (-2.3, 2.2) | 630 |
88
+ | Claude-3-Opus-20240229 | 60.4 | (-3.3, 2.4) | 541 |
89
+ | **Smaug-Llama-3-70B-Instruct-32K** | 60.0 | (-2.6, 2.1) | 844 |
90
+ | Smaug-Llama-3-70B-Instruct | 56.7 | (-2.2, 2.6) | 661 |
91
+ | GPT-4-0314 | 50.0 | (-0.0, 0.0) | 423 |
92
+ | Claude-3-Sonnet-20240229 | 46.8 | (-2.1, 2.2) | 552 |
93
+ | Llama-3-70B-Instruct | 41.1 | (-2.5, 2.4) | 583 |
94
+ | GPT-4-0613 | 37.9 | (-2.2, 2.0) | 354 |
95
+ | Mistral-Large-2402 | 37.7 | (-1.9, 2.6) | 400 |
96
+ | Mixtral-8x22B-Instruct-v0.1 | 36.4 | (-2.7, 2.9) | 430 |
97
+ | Qwen1.5-72B-Chat | 36.1 | (-2.5, 2.2) | 474 |
98
+ | Command-R-Plus | 33.1 | (-2.1, 2.2) | 541 |
99
+ | Mistral-Medium | 31.9 | (-2.3, 2.4) | 485 |
100
+ | GPT-3.5-Turbo-0613 | 24.8 | (-1.6, 2.0) | 401 |
101
+
102
+ 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.
103
+
104
+ ### OpenLLM Leaderboard Manual Evaluation
105
+
106
+ | Model | ARC | Hellaswag | MMLU | TruthfulQA | Winogrande | GSM8K* | Average |
107
+ | :---- | ---: | ------: | ---: | ---: | ---: | ---: | ---: |
108
+ | Smaug-Llama-3-70B-Instruct-32K | 70.1 | TBA | TBA | 61.9 | 82.2 | TBA | TBA |
109
+ | Llama-3-70B-Instruct | 71.4 | 85.7 | 80.0 | 61.8 | 82.9 | 91.1 | 78.8 |
110
+
111
+ **GSM8K** The GSM8K numbers quoted here are computed using a recent release
112
+ of the [LM Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness/).
113
+ The commit used by the leaderboard has a significant issue that impacts models that
114
+ tend to use `:` in their responses due to a bug in the stop word configuration for
115
+ GSM8K. The issue is covered in more detail in this
116
+ [GSM8K evaluation discussion](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard/discussions/770).
117
+ The score for both Llama-3 and this model are significantly different when evaluated
118
+ with the updated harness as the issue with stop words has been addressed.
Smaug-Llama-3-70B-Instruct-32K-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:131c82e843cac10b37a250e429715d85db68ba9d9f502f0a2f983d91d3b77275
3
+ size 26375108160
Smaug-Llama-3-70B-Instruct-32K-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b2eb892095f659801e83603105cd448a9346df95f56692bed7c70a94a33a306
3
+ size 37140592192
Smaug-Llama-3-70B-Instruct-32K-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6a323a9e1ec8634265f88a6a4d3d0558ec9a7f2be9f8ffe7cc949a9bea289b9
3
+ size 42520393280
Smaug-Llama-3-70B-Instruct-32K-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4811036eefc8a95a7d641abd806966e706a947f00d8275c5c38ff5e9c189d717
3
+ size 49949816384
Smaug-Llama-3-70B-Instruct-32K-Q6_K-00001-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bc552de7a586f0c20a0ef1d03654cf7f3b96de60790d70acd4ac40037ed0a3c
3
+ size 27929435776
Smaug-Llama-3-70B-Instruct-32K-Q6_K-00002-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccedea23c1ff151f1df109f58f64bac246d45f878cdf9cb6273fddfcc0c93c9f
3
+ size 27885589568
Smaug-Llama-3-70B-Instruct-32K-Q6_K-00003-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16f4672188a5f2299cba20712d0d5d214e5b94d4447422008f41bebefe48467e
3
+ size 1451970560