TheBloke commited on
Commit
4a2fcbe
1 Parent(s): c044f5f

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +463 -0
README.md ADDED
@@ -0,0 +1,463 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: seedboxai/KafkaLM-70B-German-V0.1
3
+ datasets:
4
+ - seedboxai/multitask_german_examples_32k
5
+ inference: false
6
+ language:
7
+ - de
8
+ library_name: transformers
9
+ license: llama2
10
+ model_creator: Seedbox
11
+ model_name: KafkaLM 70B German V0.1
12
+ model_type: llama
13
+ pipeline_tag: text-generation
14
+ prompt_template: '<|system|>
15
+
16
+ {system_message}</s>
17
+
18
+ <|user|>
19
+
20
+ {prompt}</s>
21
+
22
+ <|assistant|>
23
+
24
+ '
25
+ quantized_by: TheBloke
26
+ tags:
27
+ - llama2
28
+ - deutsch
29
+ - german
30
+ - seedbox
31
+ ---
32
+ <!-- markdownlint-disable MD041 -->
33
+
34
+ <!-- header start -->
35
+ <!-- 200823 -->
36
+ <div style="width: auto; margin-left: auto; margin-right: auto">
37
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
38
+ </div>
39
+ <div style="display: flex; justify-content: space-between; width: 100%;">
40
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
41
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
42
+ </div>
43
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
44
+ <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>
45
+ </div>
46
+ </div>
47
+ <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>
48
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
49
+ <!-- header end -->
50
+
51
+ # KafkaLM 70B German V0.1 - AWQ
52
+ - Model creator: [Seedbox](https://huggingface.co/seedboxai)
53
+ - Original model: [KafkaLM 70B German V0.1](https://huggingface.co/seedboxai/KafkaLM-70B-German-V0.1)
54
+
55
+ <!-- description start -->
56
+ ## Description
57
+
58
+ This repo contains AWQ model files for [Seedbox's KafkaLM 70B German V0.1](https://huggingface.co/seedboxai/KafkaLM-70B-German-V0.1).
59
+
60
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
61
+
62
+
63
+ ### About AWQ
64
+
65
+ 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 with equivalent or better quality compared to the most commonly used GPTQ settings.
66
+
67
+ AWQ models are currently supported on Linux and Windows, with NVidia GPUs only. macOS users: please use GGUF models instead.
68
+
69
+ It is supported by:
70
+
71
+ - [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
72
+ - [vLLM](https://github.com/vllm-project/vllm) - version 0.2.2 or later for support for all model types.
73
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
74
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later, from any code or client that supports Transformers
75
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
76
+
77
+ <!-- description end -->
78
+ <!-- repositories-available start -->
79
+ ## Repositories available
80
+
81
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-AWQ)
82
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-GPTQ)
83
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-GGUF)
84
+ * [Seedbox's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/seedboxai/KafkaLM-70B-German-V0.1)
85
+ <!-- repositories-available end -->
86
+
87
+ <!-- prompt-template start -->
88
+ ## Prompt template: Zephyr
89
+
90
+ ```
91
+ <|system|>
92
+ {system_message}</s>
93
+ <|user|>
94
+ {prompt}</s>
95
+ <|assistant|>
96
+
97
+ ```
98
+
99
+ <!-- prompt-template end -->
100
+
101
+
102
+ <!-- README_AWQ.md-provided-files start -->
103
+ ## Provided files, and AWQ parameters
104
+
105
+ I currently release 128g GEMM models only. The addition of group_size 32 models, and GEMV kernel models, is being actively considered.
106
+
107
+ Models are released as sharded safetensors files.
108
+
109
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
110
+ | ------ | ---- | -- | ----------- | ------- | ---- |
111
+ | [main](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-AWQ/tree/main) | 4 | 128 | [German Quad](https://huggingface.co/datasets/deepset/germanquad/viewer/) | 4096 | 36.61 GB
112
+
113
+ <!-- README_AWQ.md-provided-files end -->
114
+
115
+ <!-- README_AWQ.md-text-generation-webui start -->
116
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
117
+
118
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
119
+
120
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
121
+
122
+ 1. Click the **Model tab**.
123
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/KafkaLM-70B-German-V0.1-AWQ`.
124
+ 3. Click **Download**.
125
+ 4. The model will start downloading. Once it's finished it will say "Done".
126
+ 5. In the top left, click the refresh icon next to **Model**.
127
+ 6. In the **Model** dropdown, choose the model you just downloaded: `KafkaLM-70B-German-V0.1-AWQ`
128
+ 7. Select **Loader: AutoAWQ**.
129
+ 8. Click Load, and the model will load and is now ready for use.
130
+ 9. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
131
+ 10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
132
+ <!-- README_AWQ.md-text-generation-webui end -->
133
+
134
+ <!-- README_AWQ.md-use-from-vllm start -->
135
+ ## Multi-user inference server: vLLM
136
+
137
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
138
+
139
+ - Please ensure you are using vLLM version 0.2 or later.
140
+ - When using vLLM as a server, pass the `--quantization awq` parameter.
141
+
142
+ For example:
143
+
144
+ ```shell
145
+ python3 -m vllm.entrypoints.api_server --model TheBloke/KafkaLM-70B-German-V0.1-AWQ --quantization awq --dtype auto
146
+ ```
147
+
148
+ - When using vLLM from Python code, again set `quantization=awq`.
149
+
150
+ For example:
151
+
152
+ ```python
153
+ from vllm import LLM, SamplingParams
154
+
155
+ prompts = [
156
+ "Tell me about AI",
157
+ "Write a story about llamas",
158
+ "What is 291 - 150?",
159
+ "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
160
+ ]
161
+ prompt_template=f'''<|system|>
162
+ {system_message}</s>
163
+ <|user|>
164
+ {prompt}</s>
165
+ <|assistant|>
166
+ '''
167
+
168
+ prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
169
+
170
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
171
+
172
+ llm = LLM(model="TheBloke/KafkaLM-70B-German-V0.1-AWQ", quantization="awq", dtype="auto")
173
+
174
+ outputs = llm.generate(prompts, sampling_params)
175
+
176
+ # Print the outputs.
177
+ for output in outputs:
178
+ prompt = output.prompt
179
+ generated_text = output.outputs[0].text
180
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
181
+ ```
182
+ <!-- README_AWQ.md-use-from-vllm start -->
183
+
184
+ <!-- README_AWQ.md-use-from-tgi start -->
185
+ ## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
186
+
187
+ Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
188
+
189
+ Example Docker parameters:
190
+
191
+ ```shell
192
+ --model-id TheBloke/KafkaLM-70B-German-V0.1-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
193
+ ```
194
+
195
+ Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
196
+
197
+ ```shell
198
+ pip3 install huggingface-hub
199
+ ```
200
+
201
+ ```python
202
+ from huggingface_hub import InferenceClient
203
+
204
+ endpoint_url = "https://your-endpoint-url-here"
205
+
206
+ prompt = "Tell me about AI"
207
+ prompt_template=f'''<|system|>
208
+ {system_message}</s>
209
+ <|user|>
210
+ {prompt}</s>
211
+ <|assistant|>
212
+ '''
213
+
214
+ client = InferenceClient(endpoint_url)
215
+ response = client.text_generation(prompt,
216
+ max_new_tokens=128,
217
+ do_sample=True,
218
+ temperature=0.7,
219
+ top_p=0.95,
220
+ top_k=40,
221
+ repetition_penalty=1.1)
222
+
223
+ print(f"Model output: ", response)
224
+ ```
225
+ <!-- README_AWQ.md-use-from-tgi end -->
226
+
227
+ <!-- README_AWQ.md-use-from-python start -->
228
+ ## Inference from Python code using Transformers
229
+
230
+ ### Install the necessary packages
231
+
232
+ - Requires: [Transformers](https://huggingface.co/docs/transformers) 4.35.0 or later.
233
+ - Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.6 or later.
234
+
235
+ ```shell
236
+ pip3 install --upgrade "autoawq>=0.1.6" "transformers>=4.35.0"
237
+ ```
238
+
239
+ Note that if you are using PyTorch 2.0.1, the above AutoAWQ command will automatically upgrade you to PyTorch 2.1.0.
240
+
241
+ If you are using CUDA 11.8 and wish to continue using PyTorch 2.0.1, instead run this command:
242
+
243
+ ```shell
244
+ pip3 install https://github.com/casper-hansen/AutoAWQ/releases/download/v0.1.6/autoawq-0.1.6+cu118-cp310-cp310-linux_x86_64.whl
245
+ ```
246
+
247
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
248
+
249
+ ```shell
250
+ pip3 uninstall -y autoawq
251
+ git clone https://github.com/casper-hansen/AutoAWQ
252
+ cd AutoAWQ
253
+ pip3 install .
254
+ ```
255
+
256
+ ### Transformers example code (requires Transformers 4.35.0 and later)
257
+
258
+ ```python
259
+ from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
260
+
261
+ model_name_or_path = "TheBloke/KafkaLM-70B-German-V0.1-AWQ"
262
+
263
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
264
+ model = AutoModelForCausalLM.from_pretrained(
265
+ model_name_or_path,
266
+ low_cpu_mem_usage=True,
267
+ device_map="cuda:0"
268
+ )
269
+
270
+ # Using the text streamer to stream output one token at a time
271
+ streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
272
+
273
+ prompt = "Tell me about AI"
274
+ prompt_template=f'''<|system|>
275
+ {system_message}</s>
276
+ <|user|>
277
+ {prompt}</s>
278
+ <|assistant|>
279
+ '''
280
+
281
+ # Convert prompt to tokens
282
+ tokens = tokenizer(
283
+ prompt_template,
284
+ return_tensors='pt'
285
+ ).input_ids.cuda()
286
+
287
+ generation_params = {
288
+ "do_sample": True,
289
+ "temperature": 0.7,
290
+ "top_p": 0.95,
291
+ "top_k": 40,
292
+ "max_new_tokens": 512,
293
+ "repetition_penalty": 1.1
294
+ }
295
+
296
+ # Generate streamed output, visible one token at a time
297
+ generation_output = model.generate(
298
+ tokens,
299
+ streamer=streamer,
300
+ **generation_params
301
+ )
302
+
303
+ # Generation without a streamer, which will include the prompt in the output
304
+ generation_output = model.generate(
305
+ tokens,
306
+ **generation_params
307
+ )
308
+
309
+ # Get the tokens from the output, decode them, print them
310
+ token_output = generation_output[0]
311
+ text_output = tokenizer.decode(token_output)
312
+ print("model.generate output: ", text_output)
313
+
314
+ # Inference is also possible via Transformers' pipeline
315
+ from transformers import pipeline
316
+
317
+ pipe = pipeline(
318
+ "text-generation",
319
+ model=model,
320
+ tokenizer=tokenizer,
321
+ **generation_params
322
+ )
323
+
324
+ pipe_output = pipe(prompt_template)[0]['generated_text']
325
+ print("pipeline output: ", pipe_output)
326
+
327
+ ```
328
+ <!-- README_AWQ.md-use-from-python end -->
329
+
330
+ <!-- README_AWQ.md-compatibility start -->
331
+ ## Compatibility
332
+
333
+ The files provided are tested to work with:
334
+
335
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
336
+ - [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
337
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
338
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later.
339
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
340
+
341
+ <!-- README_AWQ.md-compatibility end -->
342
+
343
+ <!-- footer start -->
344
+ <!-- 200823 -->
345
+ ## Discord
346
+
347
+ For further support, and discussions on these models and AI in general, join us at:
348
+
349
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
350
+
351
+ ## Thanks, and how to contribute
352
+
353
+ Thanks to the [chirper.ai](https://chirper.ai) team!
354
+
355
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
356
+
357
+ 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.
358
+
359
+ 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.
360
+
361
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
362
+
363
+ * Patreon: https://patreon.com/TheBlokeAI
364
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
365
+
366
+ **Special thanks to**: Aemon Algiz.
367
+
368
+ **Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
369
+
370
+
371
+ Thank you to all my generous patrons and donaters!
372
+
373
+ And thank you again to a16z for their generous grant.
374
+
375
+ <!-- footer end -->
376
+
377
+ # Original model card: Seedbox's KafkaLM 70B German V0.1
378
+
379
+
380
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/645ded34a45b4182d7f5c385/hJ7zsOGDgLWUmf7vbaoI_.jpeg)
381
+
382
+
383
+ # KafkaLM-70B-German-V0.1
384
+
385
+ **KafkaLM 70b** is a 70b model based on [Llama2 70B Base Model](https://huggingface.co/meta-llama/Llama-2-70b-hf) which was finetuned on an ensemble of popular high-quality open-source instruction sets (translated from English to German).
386
+
387
+ KafkaLM 70b is a [Seedbox](https://huggingface.co/seedboxai) project trained by [Dennis Dickmann](https://huggingface.co/doubledsbv).
388
+
389
+ **Why Kafka?**
390
+ The models are proficient, yet creative, have some tendencies to linguistically push boundaries 😊
391
+
392
+
393
+ ## Model Details
394
+
395
+ The purpose of releasing the **KafkaLM series** is to contribute to the German AI community with a set of fine-tuned LLMs that are easy to use in everyday applications across a variety of tasks.
396
+
397
+ The main goal was to provide LLMs proficient in German, especially to be used in German-speaking business contexts where English alone is not sufficient.
398
+
399
+
400
+ ### Dataset
401
+
402
+ I used a 4k filtered version of the following [seedboxai/multitask_german_examples_32k](https://huggingface.co/datasets/seedboxai/multitask_german_examples_32k)
403
+
404
+ ### Prompt Format
405
+
406
+
407
+ This model follows the subsequent prompt format:
408
+
409
+ ```
410
+ <|system|>
411
+ Du bist ein freundlicher und hilfsbereiter KI-Assistent. Du beantwortest Fragen faktenorientiert und präzise, ohne dabei relevante Fakten auszulassen.</s>
412
+ <|user|>
413
+ Welche Möglichkeiten der energetischen Sanierung habe ich neben Solar und Energiespeicher?</s>
414
+ <|assistant|>
415
+ ```
416
+
417
+ ### Inference
418
+
419
+ Getting started with the model is straight forward
420
+
421
+ ```python
422
+ import transformers
423
+
424
+ model_id = "seedboxai/KafkaLM-70B-German-V0.1"
425
+
426
+ model = AutoModelForCausalLM.from_pretrained(model_id, load_in_4bit=True)
427
+
428
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
429
+
430
+ tokenizer.padding_side = "right"
431
+ tokenizer.pad_token = tokenizer.unk_token
432
+ tokenizer.add_eos_token = False
433
+
434
+ def generate_prompt(input):
435
+ prompt = ''
436
+ sys_prompt = "Du bist ein freundlicher und hilfsbereiter KI-Assistent. Du beantwortest Fragen faktenorientiert und präzise, ohne dabei relevante Fakten auszulassen."
437
+
438
+ prompt += f"<|system|>\n{sys_prompt.strip()}</s>\n"
439
+ prompt += f"<|user|>\n{input.strip()}</s>\n"
440
+ prompt += f"<|assistant|>\n"
441
+
442
+ return prompt.strip()
443
+
444
+
445
+ generate_text = transformers.pipeline(
446
+ model=model, tokenizer=tokenizer,
447
+ return_full_text=True,
448
+ task='text-generation',
449
+ temperature=0.5,
450
+ max_new_tokens=512,
451
+ top_p=0.95,
452
+ top_k=50,
453
+ do_sample=True,
454
+ )
455
+
456
+ print(generate_text(generate_prompt("Wer ist eigentlich dieser Kafka?"))
457
+
458
+ ```
459
+
460
+ ## Disclaimer
461
+
462
+ The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model.
463
+ This model should only be used for research purposes. The original Llama2 license and all restrictions of datasets used to train this model apply.