Downloads · 30 days
41
0% of all-time downloads
LeoLM/leo-hessianai-70b
leo-hessianai-70b is a text generation model from LeoLM. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
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-l…
Downloads · 30 days
41
0% of all-time downloads
All-time downloads
9.9K
Public
Parameters
69B
138 GB on disk
Likes
13
Public
Click a slice to open those files.
.safetensors138 GB · 100%
From the Hugging Face model README
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 a series foundation models trained with 8k context length
under the Llama-2 community license. Now, we're finally releasing the
much anticipated leo-hessianai-70b, the largest model of this series based on Llama-2-70b.
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!
A project by Björn Plüster and Christoph Schuhmann in collaboration with LAION and HessianAI.
First install direct dependencies:
pip install transformers torch
Then load the model in transformers. Note that this requires lots of VRAM and most-likely multiple devices. Use load_in_8bit=True or load_in_4bit=True
to save some memory by using a quantized version. For more quantized versions, check out our models at TheBloke's page: (coming soon!)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
model="LeoLM/leo-hessianai-70b",
device_map="auto",
torch_dtype=torch.bfloat16,
use_flash_attention_2=False # Set to true to use FA2. Requires `pip install flash-attn`
)

