Skip to content

avocardio/Zicklein

Repository files navigation

Zicklein

Zicklein: A german finetuned instruction LLaMA 🇩🇪

This repository is for a german finetuned version of the LLaMA model. This model is designed for research use only.

** Currently training with llama 2 (31.08.2023) **

Huggingface 🤗 Space

The Space is offline currently.

References

If I have seen further it is by standing on the back of a llama. -- Isaac Newton

Thanks to the portuguese finetuned version of LLaMA, Cabrita, for the inspiration of this project. Also thanks to Meta AI for developing and trainig the base LLaMA model and sparking the era of finetuning, apply for the LLaMA model weights here.

Data

A german-translated version of the cleaned Stanford Alpaca dataset was used. The original Stanford Alpaca dataset is available here. The translation was done via the facebook/wmt19-en-de model from HuggingFace 🤗 Hub.

More information about how the dataset is configured can be found here: Stanford Alpaca.

Finetuning

The baseline LLaMA-7b model was finetuned using the LoRA method in 8bit quantization, using parts of the code from Alpaca Lora fork, which makes use of PEFT from HuggingFace 🤗. The finetuning script is located here. The finetuning was done using a single A100 40GB GPU for 1000 steps.

Adapter weights download

The finetuned model checkpoints can be downloaded on HuggingFace 🤗:

Example outputs

Stanford Alpaca:

In welchen Ländern gibt es Lamas?

Llamas can be found in Bolivia, Peru, Chile, Ecuador, and Argentina.

Zicklein:

In welchen Ländern gibt es Lamas?

Lamas gibt es in den folgenden Ländern: Argentinien, Bolivien, Brasilien, Chile, Ecuador, Kolumbien, 
Peru, Uruguay und Venezuela.

Stanford Alpaca:

Was ist die Rolle des Präsidenten?

The role of the President is to serve as the head of state and the commander-in-chief of the armed 
forces. The President is responsible for executing the laws of the land, appointing judges and other 
government officials, and representing the United States in international relations.

Zicklein:

Was ist die Rolle des Präsidenten?

Die Rolle des Präsidenten besteht darin, die Verfassung der Vereinigten Staaten zu verwalten und die 
Regierung zu leiten.

Licenses