nold commited on
Commit
2a7c6e7
1 Parent(s): 37f979c

0e814640feeff610f2c8353ed41df5609094a02e1ce08bfece95ca1b0065eb06

Browse files
Files changed (2) hide show
  1. README.md +215 -0
  2. test.log +5 -0
README.md ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: gemma-terms-of-use
4
+ license_link: https://ai.google.dev/gemma/terms
5
+ language:
6
+ - de
7
+ - en
8
+ tags:
9
+ - sft
10
+ - dpo
11
+ - laserRMT
12
+ - laser-QLoRa
13
+ - finetune
14
+ - work in progress
15
+ - alpha
16
+ ---
17
+ **Update**
18
+ - 01.03.2024 - Reuploaded the model in bfloat16 dtype.
19
+ - 02.03.2024 - **strongest Gemma finetune model so far: added AGIEval,GPT4ALL and Bigbench scoring with AVG of 54.13 and H6 Open LLM Leaderboard with AVG of 67.83**
20
+
21
+ ![SauerkrautLM](https://vago-solutions.de/wp-content/uploads/2024/02/sauerkrautgemma.jpeg "SauerkrautLM-Gemma-7b")
22
+ ## VAGO solutions SauerkrautLM-Gemma-7b (alpha)
23
+ Introducing **SauerkrautLM-Gemma-7b** – our Sauerkraut version of the powerful [google/gemma-7b](https://huggingface.co/google/gemma-7b) !
24
+ **It is an early stage finetuned model and should be used with caution!**
25
+
26
+ The model **SauerkrautLM-Gemma-7b** is a **joint effort** between **VAGO solutions** and **Hyperspace.ai.**
27
+ Much appreciation goes to the tremendous research effort of **Fernando Fernandes Neto, David Golchinfar and Eric Hartford on their laserRMT approach.**
28
+ Without their independent research collaboration this model release would not have been possible.
29
+
30
+ - Fintuned with **SFT**
31
+ - Aligned with **DPO**
32
+ - **Using a novel training technique: laser-QLoRA** - we partially freeze the model according to a laser-like analysis (Official Paper soon). It allows to evaluate the no free lunch theorem and supports better decision making when optimizing the theorem - created by the [LaserRMT research group](https://github.com/cognitivecomputations/laserRMT)
33
+ - Optimized with **LaserRMT**
34
+
35
+ # Table of Contents
36
+ 1. [Overview of all SauerkrautLM-Gemma-7b models](#all-sauerkrautlm-gemma-7b-models)
37
+ 2. [Model Details](#model-details)
38
+ - [Prompt template](#prompt-template)
39
+ - [Training procedure](#proceed-of-the-training)
40
+ 3. [Evaluation](#evaluation)
41
+ 5. [Disclaimer](#disclaimer)
42
+ 6. [Contact](#contact)
43
+ 7. [Collaborations](#collaborations)
44
+ 8. [Acknowledgement](#acknowledgement)
45
+
46
+
47
+ ## All SauerkrautLM-Gemma-7b Models
48
+
49
+ | Model | HF | GPTQ | GGUF | AWQ |
50
+ |-------|-------|-------|-------|-------|
51
+ | SauerkrautLM-Gemma-7b | [Link](https://huggingface.co/VAGOsolutions/SauerkrautLM-Gemma-7b) | coming soon | coming soon | coming soon |
52
+
53
+ ## Model Details
54
+ **SauerkrautLM-Gemma-7b**
55
+ - **Model Type:** SauerkrautLM-Gemma-7b is a finetuned Model based on [google/gemma-7b](https://huggingface.co/google/gemma-7b)
56
+ - **Language(s):** German, English
57
+ - **License:** [gemma-terms-of-use](https://ai.google.dev/gemma/terms)
58
+ - **Contact:** [VAGO solutions](https://vago-solutions.ai), [Hyperspace.ai](https://hyperspace.computer/)
59
+
60
+ ### Training procedure:
61
+
62
+ **Warning**: **This finetuned model is in an early stage and we sometimes observed strange behavior. It is still work in progress!**
63
+
64
+ Anyone who has attempted or succeeded in fine-tuning a model is aware of the difficulty in nudging it towards a specific skill, such as mastering new languages, as well as the challenges associated with achieving significant improvements in performance.
65
+ Experimenting with a novel training strategy and Spherical Linear Interpolation alongside a lasered version of the model itself has proven to be both fascinating and revealing.
66
+
67
+ Furthermore, we developed one iteration of the model using our entire SFT -Sauerkraut dataset and two additional iterations using subsets of the full dataset—one focused on enhancing MMLU and TQA capabilities, and the other on boosting GSM8K and Winogrande skills.
68
+
69
+ After optimizing our primary SFT model, we applied a similar strategy to our new DPO Dataset, dividing it into further subsets. We trained one model on the entire dataset again and two more on these specialized subsets.
70
+
71
+ We actively monitor and assesed the results of each training. Whenever we found a decrease in perplexity on the gsm8k benchmark we intervined. By following this procedure we were able to improve the overall performance, especially in math abilities, without detracting from performance on other benchmarks—a task that is, in general, quite difficult.
72
+
73
+ This process not only helps in understanding the effectiveness of Spherical Linear Interpolation but also introduces a new method for refining models with enhanced skills through a cycle of targeted data selection (Laser data(x)) + SLERP, followed by a subsequent focus on different data (Laser again on data(y)).
74
+
75
+ Additionally, we integrated a novel training strategy on the SFT and DPO training process, where we partially freeze the model according to a laser-like analysis aiming to navigate and optimize the trade-offs highlighted by the no free lunch theorem. This innovative training method effectively prevents the significant problem of language models forgetting previously acquired knowledge.
76
+ This aspect is particularly crucial when attempting to teach the model specific skills, such as a new language, where in general, the model might lose a considerable amount of its prior knowledge and exhibit a decline in overall intelligence.
77
+
78
+ Detailed information on how the new training strategy works and the advantages it offers over conventional training methods will soon be published in a detailed paper by the LaserRMT research group.
79
+
80
+
81
+ **We teached German language skills on this model.** As far as we know, it is the first Gemma model with bilingual skills in German and English. Nevertheless, formulations may occur that are not entirely correct (still work in progress).
82
+
83
+
84
+ ### Prompt Template:
85
+ We trained on vicuna prompt template. Please add the following stopping string to your client: ``` "</s>","</p>" ``` (we did not add the special tokens to the training config)
86
+ ```
87
+ You are a helpful AI Assistant.
88
+
89
+ USER: Hello, how are you?
90
+ ASSISTANT:
91
+ ```
92
+
93
+
94
+ ## Evaluation
95
+
96
+ **Open LLM Leaderboard:**
97
+
98
+
99
+ | Metric | Value |
100
+ |-----------------------|---------------------------|
101
+ | Avg. | **67.83** |
102
+ | ARC (25-shot) | 59.98 |
103
+ | HellaSwag (10-shot) | 81.91 |
104
+ | MMLU (5-shot) | 63.76|
105
+ | TruthfulQA (0-shot) | 61 |
106
+ | Winogrande (5-shot) | 76.64 |
107
+ | GSM8K (5-shot) | 63.68 |
108
+
109
+ **Performance**
110
+
111
+ | Model |AGIEval|GPT4All|TruthfulQA|BigBench|Average ⬇️|
112
+ |-----------------------------------------------------------------------|------:|------:|---------:|-------:|------:|
113
+ |[VAGOsolutions/SauerkrautLM-Gemma-7b](https://huggingface.co/VAGOsolutions/SauerkrautLM-Gemma-7b) | 37.5| 72.46| 61.24| 45.33| 54.13|
114
+ |[zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) | 37.52| 71.77| 55.26| 39.77| 51.08|
115
+ |[zephyr-7b-gemma-v0.1](https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1)| 34.22| 66.37| 52.19| 37.10| 47.47|
116
+ |[google/gemma-7b-it](https://huggingface.co/google/gemma-7b-it) | 21.33| 40.84| 41.70| 30.25| 33.53|
117
+
118
+
119
+ <details><summary>Details of AGIEval, GPT4All, TruthfulQA, BigBench </summary>
120
+
121
+ **AGIEval**
122
+ | Tasks |Version|Filter|n-shot| Metric |Value | |Stderr|
123
+ |------------------------------|------:|------|------|--------|-----:|---|-----:|
124
+ |agieval_sat_math | 1|none |None |acc |0.3682|± |0.0326|
125
+ | | |none |None |acc_norm|0.3364|± |0.0319|
126
+ |agieval_sat_en_without_passage| 1|none |None |acc |0.4272|± |0.0345|
127
+ | | |none |None |acc_norm|0.3738|± |0.0338|
128
+ |agieval_sat_en | 1|none |None |acc |0.7427|± |0.0305|
129
+ | | |none |None |acc_norm|0.6893|± |0.0323|
130
+ |agieval_lsat_rc | 1|none |None |acc |0.5539|± |0.0304|
131
+ | | |none |None |acc_norm|0.5167|± |0.0305|
132
+ |agieval_lsat_lr | 1|none |None |acc |0.3431|± |0.0210|
133
+ | | |none |None |acc_norm|0.3471|± |0.0211|
134
+ |agieval_lsat_ar | 1|none |None |acc |0.1913|± |0.0260|
135
+ | | |none |None |acc_norm|0.1739|± |0.0250|
136
+ |agieval_logiqa_en | 1|none |None |acc |0.3303|± |0.0184|
137
+ | | |none |None |acc_norm|0.3303|± |0.0184|
138
+ |agieval_aqua_rat | 1|none |None |acc |0.2480|± |0.0272|
139
+ | | |none |None |acc_norm|0.2323|± |0.0265|
140
+
141
+ Average: 37.5%
142
+
143
+ **GPT4All**
144
+ | Tasks |Version|Filter|n-shot| Metric |Value | |Stderr|
145
+ |---------|------:|------|------|--------|-----:|---|-----:|
146
+ |arc_challenge| 1|none |None |acc |0.5358|± |0.0146|
147
+ | | |none |None |acc_norm|0.5597|± |0.0145|
148
+ |arc_easy | 1|none |None |acc |0.8249|± |0.0078|
149
+ | | |none |None |acc_norm|0.7955|± |0.0083|
150
+ |boolq | 2|none |None |acc |0.8651|± |0.006 |
151
+ |hellaswag | 1|none |None |acc |0.6162|± |0.0049|
152
+ | | |none |None |acc_norm|0.8117|± |0.0039|
153
+ |openbookqa | 1|none |None |acc |0.336|± |0.0211|
154
+ | | |none |None |acc_norm|0.470|± |0.0223|
155
+ |piqa | 1|none |None |acc |0.7900|± |0.0095|
156
+ | | |none |None |acc_norm|0.8096|± |0.00 |
157
+ |winogrande | 1|none |None |acc |0.7609|± |0.012 |
158
+
159
+ Average: 72.46%
160
+
161
+ **TruthfulQA**
162
+ | Tasks |Version|Filter|n-shot|Metric|Value | |Stderr|
163
+ |--------------|------:|------|-----:|------|-----:|---|-----:|
164
+ |truthfulqa_mc2| 2|none | 0|acc |0.6124|± |0.0148|
165
+
166
+
167
+ Average: 61.24%
168
+
169
+ **Bigbench**
170
+ | Tasks |Version| Filter |n-shot| Metric |Value | |Stderr|
171
+ |----------------------------------------------------|------:|----------------|-----:|-----------|-----:|---|-----:|
172
+ |bbh_zeroshot_tracking_shuffled_objects_three_objects| 2|flexible-extract| 0|exact_match|0.2760|�� |0.0283|
173
+ |bbh_zeroshot_tracking_shuffled_objects_seven_objects| 2|flexible-extract| 0|exact_match|0.1280|± |0.0212|
174
+ |bbh_zeroshot_tracking_shuffled_objects_five_objects | 2|flexible-extract| 0|exact_match|0.1240|± |0.0209|
175
+ |bbh_zeroshot_temporal_sequences | 2|flexible-extract| 0|exact_match|0.4520|± |0.0315|
176
+ |bbh_zeroshot_sports_understanding | 2|flexible-extract| 0|exact_match|0.7120|± |0.0287|
177
+ |bbh_zeroshot_snarks | 2|flexible-extract| 0|exact_match|0.5056|± |0.0376|
178
+ |bbh_zeroshot_salient_translation_error_detection | 2|flexible-extract| 0|exact_match|0.4480|± |0.0315|
179
+ |bbh_zeroshot_ruin_names | 2|flexible-extract| 0|exact_match|0.4520|± |0.0315|
180
+ |bbh_zeroshot_reasoning_about_colored_objects | 2|flexible-extract| 0|exact_match|0.4800|± |0.0317|
181
+ |bbh_zeroshot_navigate | 2|flexible-extract| 0|exact_match|0.5480|± |0.0315|
182
+ |bbh_zeroshot_movie_recommendation | 2|flexible-extract| 0|exact_match|0.7000|± |0.0290|
183
+ |bbh_zeroshot_logical_deduction_three_objects | 2|flexible-extract| 0|exact_match|0.5200|± |0.0317|
184
+ |bbh_zeroshot_logical_deduction_seven_objects | 2|flexible-extract| 0|exact_match|0.4120|± |0.0312|
185
+ |bbh_zeroshot_logical_deduction_five_objects | 2|flexible-extract| 0|exact_match|0.3840|± |0.0308|
186
+ |bbh_zeroshot_geometric_shapes | 2|flexible-extract| 0|exact_match|0.2920|± |0.0288|
187
+ |bbh_zeroshot_disambiguation_qa | 2|flexible-extract| 0|exact_match|0.6480|± |0.0303|
188
+ |bbh_zeroshot_date_understanding | 2|flexible-extract| 0|exact_match|0.5000|± |0.0317|
189
+ |bbh_zeroshot_causal_judgement | 2|flexible-extract| 0|exact_match|0.5775|± |0.0362|
190
+
191
+ Average: 45.33%
192
+
193
+ </details>
194
+
195
+
196
+ Despite the fact that we archived great results on the Open LLM leaderboard benchmarks the model subjectively does not feel as smart as comparable mistral finetunes. Most of its answers are coherent but we observed that the model sometimes answers realy lazy or odd.
197
+
198
+ ## Disclaimer
199
+ We must inform users that despite our best efforts in data cleansing, the possibility of uncensored content slipping through cannot be entirely ruled out.
200
+ However, we cannot guarantee consistently appropriate behavior. Therefore, if you encounter any issues or come across inappropriate content, we kindly request that you inform us through the contact information provided.
201
+ Additionally, it is essential to understand that the licensing of these models does not constitute legal advice. We are not held responsible for the actions of third parties who utilize our models.
202
+  
203
+ ## Contact
204
+ If you are interested in customized LLMs for business applications, please get in contact with us via our websites. We are also grateful for your feedback and suggestions.
205
+  
206
+ ## Collaborations
207
+ We are also keenly seeking support and investment for our startups, VAGO solutions and Hyperspace where we continuously advance the development of robust language models designed to address a diverse range of purposes and requirements. If the prospect of collaboratively navigating future challenges excites you, we warmly invite you to reach out to us at [VAGO solutions](https://vago-solutions.de/#Kontakt), [Hyperspace.computer](https://hyperspace.computer/)
208
+
209
+ ## Acknowledgement
210
+ Many thanks to [google](https://huggingface.co/google) for providing such valuable model to the Open-Source community
211
+
212
+ ***
213
+
214
+ Quantization of Model [VAGOsolutions/SauerkrautLM-Gemma-7b](https://huggingface.co/VAGOsolutions/SauerkrautLM-Gemma-7b).
215
+ Created using [llm-quantizer](https://github.com/Nold360/llm-quantizer) Pipeline
test.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ What is a Large Language Model?
2
+
3
+ Large language models are machine learning algorithms that have been trained on large amounts of text data, typically millions or billions words. These models can generate coherent and grammatically correct sentences given only a few input tokens as prompts for the output generation process to begin from scratch every time it runs through its training dataset again without any changes whatsoever made by humans during this entire procedure - which means that there's no need at all anymore!
4
+
5
+ Large language model is an artificial intelligence system capable of generating coherent and grammatically correct sentences given only a few input tokens as prompts for the output generation process to begin from scratch every time it runs through its training dataset