← All articles

LeoLM 7B: German pretraining and self-hosting

The 7B German-adapted Llama 2 base, including its training, 8K context, differences from Chat and conditional commercial licence.

Updated:

A German-adapted Llama 2 base

LeoLM/leo-hessianai-7b continues pretraining from Meta Llama-2-7b-hf on German text. It is the base edition, suited to continuation and further adaptation. LeoLM Chat adds separate instruction training for direct conversation. model card

LAION and HessianAI announced the original 7B and 13B models on 28 September 2023. They report 65 billion German training tokens and use of HessianAI’s 42 supercomputer. The German contribution is language adaptation of existing Llama 2 weights. LAION announcement dated September 28, 2023

Base, Chat and larger versions

The base model supplies a starting point for German domain training. Chat editions target explanations and drafts, with mathematics and complex reasoning described by the authors as weaker areas. Larger 13B and 70B Chat versions have separate training and evaluation results; their chat scores do not measure the unchanged 7B base. The Mistral-based branch also has different architecture and licensing. project announcement

An 8K context

The Llama 2 editions configure 8,192 positions with linear RoPE scaling by two, covering prompt and answer together. configuration

Weights and permitted use

The repository lists two PyTorch weight shards and model code, with Transformers usage documented in the card. Minimum hardware, latency and practical long-context performance are not reported in the cited material. The Hugging Face listing shows no Inference Provider for this model. model card repository

The Llama 2 Community License governs this branch. Its terms cover permitted uses, redistribution, attribution, acceptable use and additional permission for services above the stated 700-million-monthly-user threshold. The Mistral-based LeoLM releases use a different licence. Llama 2 Community License

Original sources