Meet LeoLM, the first open and commercially available German Foundation Language Model built on Llama-2.
Our models extend Llama-2's capabilities into German through continued pretraining on a large corpus of German-language and mostly locality specific text.
Thanks to a compute grant at HessianAI's new supercomputer
42, we release two foundation models trained with 8k context length,
LeoLM/leo-hessianai-7b and
LeoLM/leo-hessianai-13b under the
Llama-2 community license (70b also coming soon! 👀).
With this release, we hope to bring a new wave of opportunities to German open-source and commercial LLM research and accelerate adoption.
Read our
blog post or our paper (preprint coming soon) for more details!
If you want faster inference using flash-attention2, you need to install these dependencies:
1pip install packaging ninja
2pip install flash-attn==v2.1.1 --no-build-isolation
3pip install git+https://github.com/HazyResearch/flash-attention.git@v2.1.1#subdirectory=csrc/rotary
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 model="LeoLM/leo-hessianai-7b",
6 device_map="auto",
7 torch_dtype=torch.float16,
8 trust_remote_code=True # True for flash-attn2 else False
9)