TheBloke commited on
Commit
b5311f0
1 Parent(s): 3c4e401

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +520 -0
README.md ADDED
@@ -0,0 +1,520 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: LeoLM/leo-hessianai-7b-chat-bilingual
3
+ datasets:
4
+ - LeoLM/OpenSchnabeltier
5
+ - OpenAssistant/OASST-DE
6
+ - FreedomIntelligence/alpaca-gpt4-deutsch
7
+ - FreedomIntelligence/evol-instruct-deutsch
8
+ - LeoLM/German_Poems
9
+ - LeoLM/German_Songs
10
+ - garage-bAInd/Open-Platypus
11
+ - WizardLM/WizardLM_evol_instruct_70k
12
+ - bjoernp/oasst25-08-23-filtered
13
+ inference: false
14
+ language:
15
+ - en
16
+ - de
17
+ library_name: transformers
18
+ license: llama2
19
+ model_creator: LAION LeoLM
20
+ model_name: Leo Hessianai 7B Chat Bilingual
21
+ model_type: llama
22
+ pipeline_tag: text-generation
23
+ prompt_template: '<|im_start|>system
24
+
25
+ {system_message}<|im_end|>
26
+
27
+ <|im_start|>user
28
+
29
+ {prompt}<|im_end|>
30
+
31
+ <|im_start|>assistant
32
+
33
+ '
34
+ quantized_by: TheBloke
35
+ ---
36
+
37
+ <!-- header start -->
38
+ <!-- 200823 -->
39
+ <div style="width: auto; margin-left: auto; margin-right: auto">
40
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
41
+ </div>
42
+ <div style="display: flex; justify-content: space-between; width: 100%;">
43
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
44
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
45
+ </div>
46
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
47
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
48
+ </div>
49
+ </div>
50
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
51
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
52
+ <!-- header end -->
53
+
54
+ # Leo Hessianai 7B Chat Bilingual - AWQ
55
+ - Model creator: [LAION LeoLM](https://huggingface.co/LeoLM)
56
+ - Original model: [Leo Hessianai 7B Chat Bilingual](https://huggingface.co/LeoLM/leo-hessianai-7b-chat-bilingual)
57
+
58
+ <!-- description start -->
59
+ ## Description
60
+
61
+ This repo contains AWQ model files for [LAION LeoLM's Leo Hessianai 7B Chat Bilingual](https://huggingface.co/LeoLM/leo-hessianai-7b-chat-bilingual).
62
+
63
+
64
+ ### About AWQ
65
+
66
+ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference.
67
+
68
+ It is also now supported by continuous batching server [vLLM](https://github.com/vllm-project/vllm), allowing use of Llama AWQ models for high-throughput concurrent inference in multi-user server scenarios.
69
+
70
+ As of September 25th 2023, preliminary Llama-only AWQ support has also been added to [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference).
71
+
72
+ Note that, at the time of writing, overall throughput is still lower than running vLLM or TGI with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB.
73
+ <!-- description end -->
74
+ <!-- repositories-available start -->
75
+ ## Repositories available
76
+
77
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/leo-hessianai-7B-chat-bilingual-AWQ)
78
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/leo-hessianai-7B-chat-bilingual-GPTQ)
79
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/leo-hessianai-7B-chat-bilingual-GGUF)
80
+ * [LAION LeoLM's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/LeoLM/leo-hessianai-7b-chat-bilingual)
81
+ <!-- repositories-available end -->
82
+
83
+ <!-- prompt-template start -->
84
+ ## Prompt template: ChatML
85
+
86
+ ```
87
+ <|im_start|>system
88
+ {system_message}<|im_end|>
89
+ <|im_start|>user
90
+ {prompt}<|im_end|>
91
+ <|im_start|>assistant
92
+
93
+ ```
94
+
95
+ <!-- prompt-template end -->
96
+
97
+
98
+ <!-- README_AWQ.md-provided-files start -->
99
+ ## Provided files, and AWQ parameters
100
+
101
+ For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
102
+
103
+ Models are released as sharded safetensors files.
104
+
105
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
106
+ | ------ | ---- | -- | ----------- | ------- | ---- |
107
+ | [main](https://huggingface.co/TheBloke/leo-hessianai-7B-chat-bilingual-AWQ/tree/main) | 4 | 128 | [German Quad](https://huggingface.co/datasets/deepset/germanquad) | 8192 | 3.89 GB
108
+
109
+ <!-- README_AWQ.md-provided-files end -->
110
+
111
+ <!-- README_AWQ.md-use-from-vllm start -->
112
+ ## Serving this model from vLLM
113
+
114
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
115
+
116
+ - When using vLLM as a server, pass the `--quantization awq` parameter, for example:
117
+
118
+ ```shell
119
+ python3 python -m vllm.entrypoints.api_server --model TheBloke/leo-hessianai-7B-chat-bilingual-AWQ --quantization awq --dtype half
120
+ ```
121
+
122
+ Note: at the time of writing, vLLM has not yet done a new release with support for the `quantization` parameter.
123
+
124
+ If you try the code below and get an error about `quantization` being unrecognised, please install vLLM from Github source.
125
+
126
+ When using vLLM from Python code, pass the `quantization=awq` parameter, for example:
127
+
128
+ ```python
129
+ from vllm import LLM, SamplingParams
130
+
131
+ prompts = [
132
+ "Hello, my name is",
133
+ "The president of the United States is",
134
+ "The capital of France is",
135
+ "The future of AI is",
136
+ ]
137
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
138
+
139
+ llm = LLM(model="TheBloke/leo-hessianai-7B-chat-bilingual-AWQ", quantization="awq", dtype="half")
140
+
141
+ outputs = llm.generate(prompts, sampling_params)
142
+
143
+ # Print the outputs.
144
+ for output in outputs:
145
+ prompt = output.prompt
146
+ generated_text = output.outputs[0].text
147
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
148
+ ```
149
+ <!-- README_AWQ.md-use-from-vllm start -->
150
+
151
+ <!-- README_AWQ.md-use-from-python start -->
152
+ ## Serving this model from TGI
153
+
154
+ TGI merged support for AWQ on September 25th, 2023. At the time of writing you need to use the `:latest` Docker container: `ghcr.io/huggingface/text-generation-inference:latest`
155
+
156
+ Add the parameter `--quantize awq` for AWQ support.
157
+
158
+ Example parameters:
159
+ ```shell
160
+ --model-id TheBloke/leo-hessianai-7B-chat-bilingual-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
161
+ ```
162
+
163
+ ## How to use this AWQ model from Python code
164
+
165
+ ### Install the necessary packages
166
+
167
+ Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.0.2 or later
168
+
169
+ ```shell
170
+ pip3 install autoawq
171
+ ```
172
+
173
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
174
+
175
+ ```shell
176
+ pip3 uninstall -y autoawq
177
+ git clone https://github.com/casper-hansen/AutoAWQ
178
+ cd AutoAWQ
179
+ pip3 install .
180
+ ```
181
+
182
+ ### You can then try the following example code
183
+
184
+ ```python
185
+ from awq import AutoAWQForCausalLM
186
+ from transformers import AutoTokenizer
187
+
188
+ model_name_or_path = "TheBloke/leo-hessianai-7B-chat-bilingual-AWQ"
189
+
190
+ # Load model
191
+ model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
192
+ trust_remote_code=False, safetensors=True)
193
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False)
194
+
195
+ prompt = "Tell me about AI"
196
+ prompt_template=f'''<|im_start|>system
197
+ {system_message}<|im_end|>
198
+ <|im_start|>user
199
+ {prompt}<|im_end|>
200
+ <|im_start|>assistant
201
+
202
+ '''
203
+
204
+ print("\n\n*** Generate:")
205
+
206
+ tokens = tokenizer(
207
+ prompt_template,
208
+ return_tensors='pt'
209
+ ).input_ids.cuda()
210
+
211
+ # Generate output
212
+ generation_output = model.generate(
213
+ tokens,
214
+ do_sample=True,
215
+ temperature=0.7,
216
+ top_p=0.95,
217
+ top_k=40,
218
+ max_new_tokens=512
219
+ )
220
+
221
+ print("Output: ", tokenizer.decode(generation_output[0]))
222
+
223
+ """
224
+ # Inference should be possible with transformers pipeline as well in future
225
+ # But currently this is not yet supported by AutoAWQ (correct as of September 25th 2023)
226
+ from transformers import pipeline
227
+
228
+ print("*** Pipeline:")
229
+ pipe = pipeline(
230
+ "text-generation",
231
+ model=model,
232
+ tokenizer=tokenizer,
233
+ max_new_tokens=512,
234
+ do_sample=True,
235
+ temperature=0.7,
236
+ top_p=0.95,
237
+ top_k=40,
238
+ repetition_penalty=1.1
239
+ )
240
+
241
+ print(pipe(prompt_template)[0]['generated_text'])
242
+ """
243
+ ```
244
+ <!-- README_AWQ.md-use-from-python end -->
245
+
246
+ <!-- README_AWQ.md-compatibility start -->
247
+ ## Compatibility
248
+
249
+ The files provided are tested to work with:
250
+
251
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ)
252
+ - [vLLM](https://github.com/vllm-project/vllm)
253
+ - [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
254
+
255
+ TGI merged AWQ support on September 25th, 2023: [TGI PR #1054](https://github.com/huggingface/text-generation-inference/pull/1054). Use the `:latest` Docker container until the next TGI release is made.
256
+
257
+ <!-- README_AWQ.md-compatibility end -->
258
+
259
+ <!-- footer start -->
260
+ <!-- 200823 -->
261
+ ## Discord
262
+
263
+ For further support, and discussions on these models and AI in general, join us at:
264
+
265
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
266
+
267
+ ## Thanks, and how to contribute
268
+
269
+ Thanks to the [chirper.ai](https://chirper.ai) team!
270
+
271
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
272
+
273
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
274
+
275
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
276
+
277
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
278
+
279
+ * Patreon: https://patreon.com/TheBlokeAI
280
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
281
+
282
+ **Special thanks to**: Aemon Algiz.
283
+
284
+ **Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski
285
+
286
+
287
+ Thank you to all my generous patrons and donaters!
288
+
289
+ And thank you again to a16z for their generous grant.
290
+
291
+ <!-- footer end -->
292
+
293
+ # Original model card: LAION LeoLM's Leo Hessianai 7B Chat Bilingual
294
+
295
+ # LAION LeoLM: **L**inguistically **E**nhanced **O**pen **L**anguage **M**odel
296
+ Meet LeoLM, the first open and commercially available German Foundation Language Model built on Llama-2.
297
+ Our models extend Llama-2's capabilities into German through continued pretraining on a large corpus of German-language and mostly locality specific text.
298
+ Thanks to a compute grant at HessianAI's new supercomputer **42**, we release two foundation models trained with 8k context length,
299
+ [`LeoLM/leo-hessianai-7b`](https://huggingface.co/LeoLM/leo-hessianai-7b) and [`LeoLM/leo-hessianai-13b`](https://huggingface.co/LeoLM/leo-hessianai-13b) under the [Llama-2 community license](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt) (70b also coming soon! 👀).
300
+ With this release, we hope to bring a new wave of opportunities to German open-source and commercial LLM research and accelerate adoption.
301
+ Read our [blog post]() or our paper (preprint coming soon) for more details!
302
+
303
+ *A project by Björn Plüster and Christoph Schuhmann in collaboration with LAION and HessianAI.*
304
+
305
+ ## LeoLM Chat
306
+ `LeoLM/leo-hessianai-7b-chat-bilingual` is a bilingual English-German chat model built on our foundation model `LeoLM/leo-hessianai-7b` and finetuned on a selection of German translateed instruction datasets and their English counterparts.
307
+ The model performs exceptionally well on writing, explanation and discussion tasks but struggles somewhat with math and advanced reasoning. See our MT-Bench scores:
308
+ ```
309
+ {
310
+ "first_turn": 5.64375,
311
+ "second_turn": 4.075,
312
+ "categories": {
313
+ "writing": 5.925,
314
+ "roleplay": 5.25,
315
+ "reasoning": 3.1,
316
+ "math": 1.8,
317
+ "coding": 3.4,
318
+ "extraction": 5,
319
+ "stem": 6.5,
320
+ "humanities": 7.9
321
+ },
322
+ "average": 4.859375
323
+ }
324
+ ```
325
+
326
+ ## Model Details
327
+
328
+ - **Finetuned from:** [LeoLM/leo-hessianai-7b](https://huggingface.co/LeoLM/leo-hessianai-7b)
329
+ - **Model type:** Causal decoder-only transformer language model
330
+ - **Language:** English and German
331
+ - **Demo:** [Web Demo]()
332
+ - **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)
333
+ - **Contact:** [LAION Discord](https://discord.com/invite/eq3cAMZtCC) or [Björn Plüster](mailto:bjoern.pl@outlook.de)
334
+
335
+
336
+ ## Use in 🤗Transformers
337
+ First install direct dependencies:
338
+ ```
339
+ pip install transformers torch sentencepiece
340
+ ```
341
+ If you want faster inference using flash-attention2, you need to install these dependencies:
342
+ ```bash
343
+ pip install packaging ninja
344
+ pip install flash-attn==v2.1.1 --no-build-isolation
345
+ pip install git+https://github.com/HazyResearch/flash-attention.git@v2.1.1#subdirectory=csrc/rotary
346
+ ```
347
+ Then load the model in transformers:
348
+ ```python
349
+ from transformers import pipeline
350
+ import torch
351
+
352
+ system_prompt = """<|im_start|>system
353
+ Dies ist eine Unterhaltung zwischen einem intelligenten, hilfsbereitem KI-Assistenten und einem Nutzer.
354
+ Der Assistent gibt ausführliche, hilfreiche und ehrliche Antworten.<|im_end|>
355
+
356
+ """
357
+ prompt_format = "<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
358
+ prompt = "Erkläre mir wie die Fahrradwegesituation in Hamburg ist."
359
+
360
+ generator = pipeline(model="LeoLM/leo-hessianai-7b-chat-bilingual", device="cuda", torch_dtype=torch.float16, trust_remote_code=True) # True for flash-attn2 else False
361
+ print(generator(prompt_format.format(prompt=prompt), do_sample=True, top_p=0.95, max_length=8192))
362
+ ```
363
+
364
+ "*Als KI kann ich keine persönlichen Beobachtungen teilen, aber ich kann einige allgemeine Informationen zur Fahrradwegesituation in Hamburg liefern. Im Vergleich zu vielen anderen großen Städten hat Hamburg eine hohe Anzahl von Fahrradfahrern und nimmt seine Verantwortung für nachhaltige Verkehrsmittel sehr ernst. Es gibt viele Fahrradwege und separate Fahrspuren, die Radfahrern ermöglichen, zusammen mit dem Autoverkehr zu fahren. Diese Fahrradspuren sind oft mit Markierungen gekennzeichnet und durch physische Trennungen von anderen Fahrspuren abgegrenzt. Darüber hinaus gibt es viele Fahrradstraßen, auf denen Radfahrer Vorfahrt haben und Autos langsamer fahren müssen.*
365
+
366
+ *In einigen städtischen Gebieten können Fahrradwege jedoch eng oder überfüllt sein, besonders während der Stoßzeiten. Es gibt auch viele Kreuzungen, an denen Radfahrer anhalten und auf Grün warten müssen, ähnlich wie Autofahrer. Insgesamt ist die Fahrradinfrastruktur in Hamburg ziemlich gut, aber wie überall gibt es immer Raum für Verbesserungen.*"
367
+
368
+ ## Prompting / Prompt Template
369
+
370
+ Prompt dialogue template (ChatML format):
371
+
372
+ ```
373
+ """
374
+ <|im_start|>system
375
+ {system_message}<|im_end|>
376
+ <|im_start|>user
377
+ {prompt}<|im_end|>
378
+ <|im_start|>assistant
379
+ """
380
+ ```
381
+
382
+ The model input can contain multiple conversation turns between user and assistant, e.g.
383
+ ```
384
+ <|im_start|>user
385
+ {prompt 1}<|im_end|>
386
+ <|im_start|>assistant
387
+ {reply 1}<|im_end|>
388
+ <|im_start|>user
389
+ {prompt 2}<|im_end|>
390
+ <|im_start|>assistant
391
+ (...)
392
+ ```
393
+
394
+ ## Ethical Considerations and Limitations
395
+
396
+ LeoLM has been tested in English and German, and has not covered, nor could it cover all scenarios.
397
+ For these reasons, as with all LLMs, the potential outputs of `LeoLM/leo-hessianai-7b-chat` cannot be predicted
398
+ in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses
399
+ to user prompts. Therefore, before deploying any applications of `LeoLM/leo-hessianai-7b-chat`, developers should
400
+ perform safety testing and tuning tailored to their specific applications of the model.
401
+
402
+ Please see Meta's [Responsible Use Guide](https://ai.meta.com/llama/responsible-use-guide/).
403
+
404
+ ## Finetuning Details
405
+
406
+ | Hyperparameter | Value |
407
+ |---|---|
408
+ | Num epochs | 3 |
409
+ | Examples per epoch | 233275 |
410
+ | Global batch size | 256 |
411
+ | Learning rate | 3e-5 |
412
+ | Warmup steps | 100 |
413
+ | LR scheduler | Cosine |
414
+ | Adam betas | (0.9, 0.95) |
415
+ | Weight decay | 0.001 |
416
+
417
+
418
+ ## Dataset Details
419
+ ```
420
+ ## Stats for 'Subset of LeoLM/OpenSchnabeltier' (21314 samples (100.0%))
421
+ -----------------
422
+ Accepted: 21314/21314 (100.0%)
423
+ Accepted tokens: 8134690
424
+ Skipped: 0 (0.0%)
425
+ Min tokens per sample: 25
426
+ Max tokens per sample: 1202
427
+ Avg tokens per sample: 381.65947264708643
428
+ -----------------
429
+
430
+ ## Stats for 'Subset of garage-bAInd/Open-Platypus' (24427 samples (100.0%))
431
+ -----------------
432
+ Accepted: 24427/24427 (100.0%)
433
+ Accepted tokens: 9549043
434
+ Skipped: 0 (0.0%)
435
+ Min tokens per sample: 23
436
+ Max tokens per sample: 5054
437
+ Avg tokens per sample: 390.9216440823679
438
+ -----------------
439
+
440
+ ## Stats for 'Subset of WizardLM/WizardLM_evol_instruct_70k' (68600 samples (100.0%))
441
+ -----------------
442
+ Accepted: 68600/68600 (100.0%)
443
+ Accepted tokens: 33045040
444
+ Skipped: 0 (0.0%)
445
+ Min tokens per sample: 18
446
+ Max tokens per sample: 11810
447
+ Avg tokens per sample: 481.7061224489796
448
+ -----------------
449
+
450
+ ## Stats for 'Subset of FreedomIntelligence/evol-instruct-deutsch' (57841 samples (100.0%))
451
+ -----------------
452
+ Accepted: 57841/57841 (100.0%)
453
+ Accepted tokens: 42958192
454
+ Skipped: 0 (0.0%)
455
+ Min tokens per sample: 33
456
+ Max tokens per sample: 5507
457
+ Avg tokens per sample: 742.6944900675991
458
+ -----------------
459
+
460
+ ## Stats for 'Subset of FreedomIntelligence/alpaca-gpt4-deutsch' (48969 samples (100.0%))
461
+ -----------------
462
+ Accepted: 48969/48969 (100.0%)
463
+ Accepted tokens: 13372005
464
+ Skipped: 0 (0.0%)
465
+ Min tokens per sample: 19
466
+ Max tokens per sample: 1359
467
+ Avg tokens per sample: 273.07082031489307
468
+ -----------------
469
+
470
+ ## Stats for 'Subset of LeoLM/German_Songs' (490 samples (100.0%))
471
+ -----------------
472
+ Accepted: 490/490 (100.0%)
473
+ Accepted tokens: 618642
474
+ Skipped: 0 (0.0%)
475
+ Min tokens per sample: 747
476
+ Max tokens per sample: 1678
477
+ Avg tokens per sample: 1262.534693877551
478
+ -----------------
479
+
480
+
481
+ ## Stats for 'Subset of LeoLM/German_Poems' (392 samples (100.0%))
482
+ -----------------
483
+ Accepted: 392/392 (100.0%)
484
+ Accepted tokens: 187897
485
+ Skipped: 0 (0.0%)
486
+ Min tokens per sample: 231
487
+ Max tokens per sample: 826
488
+ Avg tokens per sample: 479.3290816326531
489
+ -----------------
490
+
491
+ ## Stats for 'Subset of OpenAssistant/OASST_DE' (3646 samples (100.0%))
492
+ -----------------
493
+ Accepted: 3646/3646 (100.0%)
494
+ Accepted tokens: 2338738
495
+ Skipped: 0 (0.0%)
496
+ Min tokens per sample: 29
497
+ Max tokens per sample: 2484
498
+ Avg tokens per sample: 641.4530992868897
499
+ -----------------
500
+
501
+ ## Stats for 'Subset of bjoernp/oasst25-08-23-filtered' (8922 samples (100.0%))
502
+ -----------------
503
+ Accepted: 8922/8922 (100.0%)
504
+ Accepted tokens: 4526427
505
+ Skipped: 0 (0.0%)
506
+ Min tokens per sample: 23
507
+ Max tokens per sample: 5407
508
+ Avg tokens per sample: 507.3332212508406
509
+ -----------------
510
+
511
+ ## Stats for 'total' (235632 samples (100.0%))
512
+ -----------------
513
+ Accepted: 235632/235632 (100.0%)
514
+ Accepted tokens: 115862397
515
+ Skipped: 0 (0.0%)
516
+ Min tokens per sample: 18
517
+ Max tokens per sample: 11810
518
+ Avg tokens per sample: 491.70909299246284
519
+ -----------------
520
+ ```