Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- README.md +187 -0
- sahabatai-lion-9b-ties-v1.Q2_K.gguf +3 -0
- sahabatai-lion-9b-ties-v1.bf16.gguf +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ 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 |
+
sahabatai-lion-9b-ties-v1.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
sahabatai-lion-9b-ties-v1.bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- id
|
5 |
+
- jv
|
6 |
+
- su
|
7 |
+
license: gemma
|
8 |
+
tags:
|
9 |
+
- merge
|
10 |
+
- mergekit
|
11 |
+
- autoquant
|
12 |
+
- gguf
|
13 |
+
base_model:
|
14 |
+
- GoToCompany/gemma2-9b-cpt-sahabatai-v1-instruct
|
15 |
+
- aisingapore/gemma2-9b-cpt-sea-lionv3-instruct
|
16 |
+
model-index:
|
17 |
+
- name: gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
18 |
+
results:
|
19 |
+
- task:
|
20 |
+
type: text-generation
|
21 |
+
name: Text Generation
|
22 |
+
dataset:
|
23 |
+
name: IFEval (0-Shot)
|
24 |
+
type: HuggingFaceH4/ifeval
|
25 |
+
args:
|
26 |
+
num_few_shot: 0
|
27 |
+
metrics:
|
28 |
+
- type: inst_level_strict_acc and prompt_level_strict_acc
|
29 |
+
value: 73.78
|
30 |
+
name: strict accuracy
|
31 |
+
source:
|
32 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=gmonsoon/gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
33 |
+
name: Open LLM Leaderboard
|
34 |
+
- task:
|
35 |
+
type: text-generation
|
36 |
+
name: Text Generation
|
37 |
+
dataset:
|
38 |
+
name: BBH (3-Shot)
|
39 |
+
type: BBH
|
40 |
+
args:
|
41 |
+
num_few_shot: 3
|
42 |
+
metrics:
|
43 |
+
- type: acc_norm
|
44 |
+
value: 43.4
|
45 |
+
name: normalized accuracy
|
46 |
+
source:
|
47 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=gmonsoon/gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
48 |
+
name: Open LLM Leaderboard
|
49 |
+
- task:
|
50 |
+
type: text-generation
|
51 |
+
name: Text Generation
|
52 |
+
dataset:
|
53 |
+
name: MATH Lvl 5 (4-Shot)
|
54 |
+
type: hendrycks/competition_math
|
55 |
+
args:
|
56 |
+
num_few_shot: 4
|
57 |
+
metrics:
|
58 |
+
- type: exact_match
|
59 |
+
value: 19.34
|
60 |
+
name: exact match
|
61 |
+
source:
|
62 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=gmonsoon/gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
63 |
+
name: Open LLM Leaderboard
|
64 |
+
- task:
|
65 |
+
type: text-generation
|
66 |
+
name: Text Generation
|
67 |
+
dataset:
|
68 |
+
name: GPQA (0-shot)
|
69 |
+
type: Idavidrein/gpqa
|
70 |
+
args:
|
71 |
+
num_few_shot: 0
|
72 |
+
metrics:
|
73 |
+
- type: acc_norm
|
74 |
+
value: 9.4
|
75 |
+
name: acc_norm
|
76 |
+
source:
|
77 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=gmonsoon/gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
78 |
+
name: Open LLM Leaderboard
|
79 |
+
- task:
|
80 |
+
type: text-generation
|
81 |
+
name: Text Generation
|
82 |
+
dataset:
|
83 |
+
name: MuSR (0-shot)
|
84 |
+
type: TAUR-Lab/MuSR
|
85 |
+
args:
|
86 |
+
num_few_shot: 0
|
87 |
+
metrics:
|
88 |
+
- type: acc_norm
|
89 |
+
value: 19.13
|
90 |
+
name: acc_norm
|
91 |
+
source:
|
92 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=gmonsoon/gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
93 |
+
name: Open LLM Leaderboard
|
94 |
+
- task:
|
95 |
+
type: text-generation
|
96 |
+
name: Text Generation
|
97 |
+
dataset:
|
98 |
+
name: MMLU-PRO (5-shot)
|
99 |
+
type: TIGER-Lab/MMLU-Pro
|
100 |
+
config: main
|
101 |
+
split: test
|
102 |
+
args:
|
103 |
+
num_few_shot: 5
|
104 |
+
metrics:
|
105 |
+
- type: acc
|
106 |
+
value: 37.19
|
107 |
+
name: accuracy
|
108 |
+
source:
|
109 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=gmonsoon/gemma2-9b-sahabatai-v1-instruct-BaseTIES
|
110 |
+
name: Open LLM Leaderboard
|
111 |
+
---
|
112 |
+
|
113 |
+
# SahabatAI-Lion-9B-TIES-v1
|
114 |
+
formerly gemma2-9b-cpt-sahabatai-v1-instruct-BaseTIES (model name too long :D )
|
115 |
+
|
116 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/642b04e4ecec03b44649e318/rJ0ogty-DbLUEH48Ms5lE.png)
|
117 |
+
|
118 |
+
Based on some research, when a finetuned model is merged with its base model with TIES method, there is possibility the merged model will achieve better output.
|
119 |
+
|
120 |
+
**UPDATE!!! as 20 November 2024, this model is third best model (number one for Gemma2-9B based model) on HF's Open LLM Leaderboard (with Merge/MoErges hide model unchecked) for LLM model below 10B parameters.**
|
121 |
+
|
122 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/642b04e4ecec03b44649e318/8Hv3YtWtzzFlJ0_kUpsT7.png)
|
123 |
+
|
124 |
+
gmonsoon/SahabatAI-Lion-9B-TIES-v1 is a merge of the following models:
|
125 |
+
* [GoToCompany/gemma2-9b-cpt-sahabatai-v1-instruct](https://huggingface.co/GoToCompany/gemma2-9b-cpt-sahabatai-v1-instruct)
|
126 |
+
* [aisingapore/gemma2-9b-cpt-sea-lionv3-instruct](https://huggingface.co/aisingapore/gemma2-9b-cpt-sea-lionv3-instruct)
|
127 |
+
|
128 |
+
DEMO Spaces: [HERE](https://huggingface.co/spaces/gmonsoon/SahabatAI-Lion-9B-TIES-v1)
|
129 |
+
|
130 |
+
## 🧩 Configuration
|
131 |
+
|
132 |
+
```yaml
|
133 |
+
models:
|
134 |
+
- model: GoToCompany/gemma2-9b-cpt-sahabatai-v1-instruct
|
135 |
+
parameters:
|
136 |
+
weight: 1
|
137 |
+
density: 1
|
138 |
+
- model: GoToCompany/gemma2-9b-cpt-sahabatai-v1-instruct
|
139 |
+
parameters:
|
140 |
+
weight: 1
|
141 |
+
density: 1
|
142 |
+
merge_method: ties
|
143 |
+
base_model: aisingapore/gemma2-9b-cpt-sea-lionv3-instruct
|
144 |
+
parameters:
|
145 |
+
density: 1
|
146 |
+
normalize: true
|
147 |
+
int8_mask: true
|
148 |
+
dtype: bfloat16
|
149 |
+
```
|
150 |
+
|
151 |
+
## 💻 Usage
|
152 |
+
|
153 |
+
```python
|
154 |
+
!pip install -qU transformers accelerate
|
155 |
+
|
156 |
+
from transformers import AutoTokenizer
|
157 |
+
import transformers
|
158 |
+
import torch
|
159 |
+
|
160 |
+
model = "gmonsoon/SahabatAI-Lion-9B-TIES-v1"
|
161 |
+
messages = [{"role": "user", "content": "What is a large language model?"}]
|
162 |
+
|
163 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
164 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
165 |
+
pipeline = transformers.pipeline(
|
166 |
+
"text-generation",
|
167 |
+
model=model,
|
168 |
+
torch_dtype=torch.float16,
|
169 |
+
device_map="auto",
|
170 |
+
)
|
171 |
+
|
172 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
173 |
+
print(outputs[0]["generated_text"])
|
174 |
+
```
|
175 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
176 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_gmonsoon__gemma2-9b-sahabatai-v1-instruct-BaseTIES)
|
177 |
+
|
178 |
+
| Metric |Value|
|
179 |
+
|-------------------|----:|
|
180 |
+
|Avg. |33.70|
|
181 |
+
|IFEval (0-Shot) |73.78|
|
182 |
+
|BBH (3-Shot) |43.40|
|
183 |
+
|MATH Lvl 5 (4-Shot)|19.34|
|
184 |
+
|GPQA (0-shot) | 9.40|
|
185 |
+
|MuSR (0-shot) |19.13|
|
186 |
+
|MMLU-PRO (5-shot) |37.19|
|
187 |
+
|
sahabatai-lion-9b-ties-v1.Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a747bc026d7c524aa3861aa1bcc5b757f8f55550c98d0dfd98d316f6085bbcea
|
3 |
+
size 3805398752
|
sahabatai-lion-9b-ties-v1.bf16.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d953b288bc0ee1fc03bc58fc377786b611a262c02c721fa44e04a27143c9dd70
|
3 |
+
size 18490681056
|