jphme's picture
update readme
2fe4480
|
raw
history blame
8.12 kB
metadata
license: llama2
language:
  - de
library_name: transformers
pipeline_tag: text-generation
inference: false
model_creator: jphme
model_name: EM German
model_type: llama
prompt_template: >
  Du bist ein hilfreicher KI Assistent, der den Anweisungen des Nutzers sehr gut
  folgt und ausführliche Antworten gibt! USER: Was ist 1+1? ASSISTANT:
tags:
  - facebook
  - meta
  - pytorch
  - llama
  - llama-2
  - german
  - deutsch

EM Logo

Table of Contents

  1. Introduction
  2. Links & Demos
  3. Prompt Format
  4. Example Output
  5. Acknowledgements
  6. Contact
  7. Disclaimer

Introduction

EM German (v01) is a Llama2/Mistral/LeoLM-based model family, finetuned on a large dataset of various instructions in German language. The models are optimized for German text, providing proficiency in understanding, generating, and interacting with German language content.

Please find all Informations, Example Outputs, the special RAG prompt format, output examples and eval results for the EM German Model family in our Github Repository.

(Für weitere Informationen und Anleitungen auf Deutsch, besuchen Sie bitte unser Github Repository.)

Links & Demos

Model Links

Base Model HF GPTQ GGUF AWQ
Llama2 7b Link Link Link Link
Llama2 13b Link Link Link Link
Llama2 70b Link Link Link Link
Mistral 7b Link Link Link Link
LeoLM 7b Link Link Link tbc
LeoLM 13b soon soon soon tbc

Notes about the different versions:

For the 7b models, we recommend the use of the "LeoLM" variant if text output quality is important and the Mistral variant, if reasoning/understanding is the main priority. Both should give better results than the Llama-2 7b model and often even the Llama2 13b model.

If you get unsatisfying results with one or another EM German version, please try a different (and/or larger) model or version for your usecase.

Demos:

You can use some of the models with free google Colab instances (e.g. the 7bn model in 8bit or the 13b model with GPTQ):

Prompt Format

This model follows the Vicuna format without linebreaks (but should work with linebreaks as well). The format is as follows:

Du bist ein hilfreicher Assistent. USER: <instruction> ASSISTANT:

You can swap the standard system prompt for a better suited one (see below for RAG-tasks).

Example Output

Prompt:

Gestalten Sie einen LinkedIn Post, in dem Sie die Grundlagen des deutschen Urheberrechts erklären. Versuchen Sie, es auf eine einfache und verständliche Weise darzustellen, so dass es für alle Nutzer verständlich ist.

Antwort EM German 7b Leo:

 Titel: Grundlagen des deutschen Urheberrechts: Wer hat das Recht, was zu schaffen? 📖

Das deutsche Urheberrecht regelt die Rechte von Urhebern an ihren Werken. Es schützt die persönlichen geistigen Schöpfungen von Künstlern, Schriftstellern und anderen Kreativen. Hier sind einige grundlegende Prinzipien des deutschen Urheberrechts, die Sie kennen sollten:

1️⃣ Wer ist ein Urheber? Das deutsche Urheberrecht schützt die Urheber von Werken der Literatur, Wissenschaft und Kunst. Das sind zum Beispiel Texte, Bilder, Musikstücke und Filme.

2️⃣ Was bedeutet "Werk"? Ein Werk ist eine persönliche geistige Schöpfung, die sich durch Originalität auszeichnet und die geistige Arbeit des Urhebers zeigt. Es muss eine gewisse "Schöpfungshöhe" haben.

3️⃣ Wie lange dauert der Urheberrechtsschutz? Der Urheberrechtsschutz beginnt mit der Schaffung des Werks und endet 70 Jahre nach dem Tod des Urhebers.

4️⃣ Was darf ich mit dem Werk machen? Wer ein Werk nutzen möchte, zum Beispiel veröffentlichen oder vervielfältigen, benötigt die Erlaubnis des Urhebers. Das bedeutet, dass Sie nur dann ein Werk verwenden dürfen, wenn Sie die Genehmigung des Urhebers haben.

5️⃣ Was ist eine Nutzungseinschränkung? Eine Nutzungseinschränkung ist eine Bedingung, die der Urheber dem Nutzer auferlegt, wenn er das Werk nutzen möchte. Zum Beispiel kann der Urheber bestimmen, dass sein Werk nur für private Zwecke genutzt werden darf.

6️⃣ Was ist eine Verwertungsgesellschaft? Eine Verwertungsgesellschaft ist eine Organisation, die die Rechte der Urheber verwaltet und durchsetzt. In Deutschland gibt es drei Verwertungsgesellschaften: GEMA (für Musik), VG Wort (für Sprachwerke) und VG Bild-Kunst (für bildende Kunst).

7️⃣ Wie kann ich meine Urheberrechte durchsetzen? Wenn Sie glauben, dass Ihre Urheberrechte verletzt wurden, sollten Sie einen Rechtsanwalt konsultieren. Sie können auch eine Abmahnung aussprechen oder gerichtliche Schritte einleiten.

(For more examples, please visit our Github Repository.)

Acknowledgements:

Many thanks to winglian/caseus for his great work on Axolotl which I used to train the EM mdoels. I am also grateful to Jon Durbin and his Airoboros models and code from which I borrowed many ideas and code snippets. Additionally many thanks to Björn Plüster and the LeoLM team for the outstanding pretraining work on LeoLM and last but not least many many thanks to TheBloke for the preparation of quantized versions in all formats under the sun. The 70b model was trained with support of the OVH Cloud Startup Program.

Contact

I you are interested in customized LLMs for business applications, please get in contact with me via my website. I am also always happy about suggestions and feedback.

PS: We are also always interested in support for our startup ellamind, which will offer customized models for business applications in the future (currently still in stealth mode). Please get in touch if you are interested!

Disclaimer:

I am not responsible for the actions of third parties who use this model or the outputs of the model. This model should only be used for research purposes. The original base model license applies and is distributed with the model files.