/ Модель

Характеристики

Контекст
4 096 токенов
Параметры
7,5 млрд
Размер весов
29,5 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
10 дек 2024

Teuken-7B-base-v0.6

Генерация текстаТекст → текст4 профессии

Базовая модель OpenGPT-X на 7,5 млрд параметров для генерации текста на европейских языках.

346скачиваний за 30 дней12лайковвеса обновлены28 июл 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Teuken 7B-base-v0.6 — базовая мультиязычная языковая модель проекта OpenGPT-X, разработанная Fraunhofer, Forschungszentrum Jülich, TU Dresden и DFKI. Это плотная decoder-only Transformer-модель семейства Llama с 7,5 млрд параметров, предварительно обученная на 6 трлн токенов; длина контекста — 4096 токенов. Модель распространяется в форматах PyTorch и Safetensors и предназначена для генерации текста на европейских языках.

Модель рассчитана на частное, исследовательское и образовательное некоммерческое использование. Её мультиязычная подготовка нацелена на более равномерную работу с языками Европы, поэтому она подходит для генерации и продолжения текста, а также для многоязычных приложений и сценариев, ориентированных на Европу. Это базовая модель, а не специализированный чат-ассистент; математика и программирование обозначены как задачи вне целевого применения.

Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но некоммерчески. Модель может воспроизводить предвзятость, галлюцинировать и генерировать токсичный или вредоносный текст; обучающие данные имеют отсечку сентября 2023 года.

Сценарии применения

  • генерация и продолжение текста на европейских языках
  • создание мультиязычных приложений для аудитории стран Европы
  • подготовка текстовых черновиков на нескольких языках ЕС
  • исследования и обучение работе с мультиязычными языковыми моделями

Ограничения

Модель может галлюцинировать, проявлять предвзятость и генерировать токсичный или вредоносный текст. Математика и программирование не входят в целевые сценарии; данные предобучения имеют отсечку сентября 2023 года.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model Card for Teuken 7B-base-v0.6

Teuken 7B-base-v0.6 is a 7B parameter multilingual large language model (LLM) pre-trained with 6T tokens within the research project OpenGPT-X.

Model Description

  • Developed by: Fraunhofer, Forschungszentrum Jülich, TU Dresden, DFKI
  • Funded by: German Federal Ministry of Economics and Climate Protection (BMWK) in the context of the OpenGPT-X project
  • Model type: Transformer based decoder-only model
  • Language(s) (NLP): bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv
  • Shared by: OpenGPT-X

Uses

Teuken 7B-base-v0.6 is designed for private, non-commercial, research, and educational use in all 24 official European Union languages. Its multilingual training makes it particularly well-suited for tasks requiring stable performance across these languages. Unlike English-centric models, Teuken 7B-base-v0.6 aims to reflect European linguistic diversity and values, offering more balanced and culturally aligned responses. This specialization makes it a strong choice for applications in multilingual and Europe-focused settings.

Disclaimer Toxic Content:

This Large Language Model (LLM) may generate content that is inappropriate, offensive, or harmful. While the dataset has been filtered to minimize such outputs, the model may still produce text that is biased or toxic due to the large scale and diverse nature of the data.

Out-of-Scope Use

The model is not intended for use in math and coding tasks.

Bias, Risks, and Limitations

Teuken 7B-base-v0.6 is a base model and is not free from biases and hallucinations.

How to Get Started with the Model

Usage

The model requires a few libraries that can be installed in your python environment:

python -m pip install numpy torch huggingface_hub transformers sentencepiece

After installation, here's an example of how to use the model:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "openGPT-X/Teuken-7B-base-v0.6"
prompt = "Insert text here..."
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True).to(device)
inputs = tokenizer(prompt, return_tensors="pt")
inputs = {k: v.to(device) for k, v in inputs.items()}  # Move inputs to the same device as the model
output = model.generate(input_ids=inputs['input_ids'], max_new_tokens=1000, do_sample=True)
result = tokenizer.decode(output.tolist())

This example demonstrates how to load the model and tokenizer, prepare input, generate text, and print the result.

Training Details

Training Data

Teuken 7B-base-v0.6 was pre-trained on 6 trillion tokens of data from publicly available sources.

The pretraining data has a cutoff of September 2023.

Training Procedure

Transformer-based decoder-only model that has been trained based on the causal language modeling objective.

Training Hyperparameters

  • Training regime: bf16 mixed precision

Evaluation

Results on multilingual benchmarks for 21 European languages with instruction-tuned models

ModelAvgEU21-ARCEU21-HeSwEU21-TQAEU21-MMLU
Meta-Llama-3.1-8B0.5480.5540.5880.4950.556
Salamandra-7B0.5230.5890.6370.4490.417
Mistral-7B-v0.30.5050.5130.5340.4720.501
Occiglot-7B-eu50.4640.4700.5110.4480.426
Pharia-1-LLM-7B-control0.4090.3930.4330.4560.353
Bloom-7B10.3480.3190.3550.4640.256
Teuken-7B-Base (Ours)0.5200.5580.6190.4490.453

More information regarding the quality of our translated benchmarks are available in our Evaluation preprint "Towards Multilingual LLM Evaluation for European Languages". More evaluation results regarding Teuken 7B-base-v0.6 are available in our model preprint "Teuken-7B-Base & Teuken-7B-Instruct: Towards European LLMs".

The model was evaluated in 21 languages on ARC, GSM8K, HellaSwag, TruthfulQA, Translation and MMLU. Results can also be seen in the European LLM Leaderboard.

Testing Data, Factors & Metrics

Testing Data

The model was evaluated in 21 languages on ARC, GSM8K, HellaSwag, TruthfulQA, Translation and MMLU. Results can be seen in the European LLM Leaderboard (https://huggingface.co/spaces/openGPT-X/european-llm-leaderboard).

Technical Specifications

Model Architecture and Objective

Hyper-ParameterValue
Training ObjectiveCLM
Activation FunctionSwiGLU
Seq Length4096
Position EmbeddingsRotary
Num Layers32
Hidden Size4096
FFN Hidden Size13440
Num Attention Heads32
Head Dim128
Group Query Attentionyes
Num Query Groups2
NormalizationRMSNorm
Learning rate3e-4
Min learning rate1.5e-5
Disable bias in linearyes
Hidden dropout0.0
Attention dropout0.0
OptimizerAdamW
Beta10.9
Beta20.95
Sequence-parallelism
Data-typebf16
Recompute-activationsyes
Distributed-optimizersyes
Model Initialization

Compute Infrastructure

We trained our models on JUWELS Booster which consists of 936 compute nodes, each equipped with 4 NVIDIA A100 GPUs. The GPUs are hosted by AMD EPYC Rome CPUs. The compute nodes are connected with HDR-200 InfiniBand in a DragonFly+ topology.

Hardware

The configuration of JUWELS Booster compute nodes is the following:

CPU: AMD EPYC 7402 processor; 2 sockets, 24 cores per socket, SMT-2 (total: 2×24×2 = 96 threads) in NPS-4 1 configuration

Memory: 512 GB DDR4-3200 RAM (of which at least 20 GB is taken by the system software stack, including the file system); 256 GB per socket; 8 memory channels per socket (2 channels per NUMA domain)

GPU: 4 × NVIDIA A100 Tensor Core GPU with 40 GB; connected via NVLink3 to each other

Network: 4 × Mellanox HDR200 InfiniBand ConnectX 6 (200 Gbit/s each), HCA

Periphery: CPU, GPU, and network adapter are connected via 2 PCIe Gen 4 switches with 16 PCIe lanes going to each device (CPU socket: 2×16 lanes). PCIe switches are configured in synthetic mode.

Software

Megatron-LM

Citation

BibTeX:

If you find our model useful in your research, please consider citing our preprint:


@misc{ali2024teuken7bbaseteuken7binstructeuropean,
      title={Teuken-7B-Base & Teuken-7B-Instruct: Towards European LLMs}, 
      author={Mehdi Ali and Michael Fromm and Klaudia Thellmann and Jan Ebert and Alexander Arno Weber and Richard Rutmann and Charvi Jain and Max Lübbering and Daniel Steinigen and Johannes Leveling and Katrin Klug and Jasper Schulze Buschhoff and Lena Jurkschat and Hammam Abdelwahab and Benny Jörg Stein and Karl-Heinz Sylla and Pavel Denisov and Nicolo' Brandizzi and Qasid Saleem and Anirban Bhowmick and Lennard Helmer and Chelsea John and Pedro Ortiz Suarez and Malte Ostendorff and Alex Jude and Lalith Manjunath and Samuel Weinbach and Carolin Penke and Oleg Filatov and Shima Asaadi and Fabio Barth and Rafet Sifa and Fabian Küch and Andreas Herten and René Jäkel and Georg Rehm and Stefan Kesselheim and Joachim Köhler and Nicolas Flores-Herr},
      year={2024},
      eprint={2410.03730},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2410.03730}, 
}

Team

Data Team

Anirban Bhowmick (IAIS), Nicolo Brandizzi (IAIS), Lennard Helmer (IAIS), Benny Jörg Stein (IAIS), Karl-Heinz Sylla (IAIS), Pavel Denisov (IAIS), Qasid Saleem (IAIS), Johannes Leveling (IAIS), Hammam Abdelwahab (IAIS), Luzian Hahn (IIS), Farzad Naderi (IIS), Md Saiful Islam (IIS), Alexander Schwirjow (IIS), Pedro Ortiz Suarez (ex. DFKI), Malte Ostendorff (ex. DFKI)

Model-Training Team

Core contributors

Mehdi Ali (IAIS), Michael Fromm (IAIS), Jan Ebert (FZJ), Chelsea John (FZJ), Lena Jurkschat (TUD), Alexander Weber (IAIS)

Contributors:

Richard Rutmann (IAIS), Daniel Steinigen (IAIS), Lalith Manjunath (TUD), Carolin Penke (FZJ)

Evaluation Team

Core contributors

Klaudia Thellmann (TUD), Alex Jude (IAIS), Jasper Buschhoff (IAIS)

Contributors:

Shima Assadi (IIS), Fabio Barth (DFKI)

Management

Joachim Köhler (IAIS), Nicolas Flores-Herr (IAIS), Stefan Kesselheim (FZJ), Andreas Herten (FZJ), Georg Rehm (DFKI), René Jäkel (TUD), Fabian Küch (IIS), Nicole Hildebrandt (IAIS), Ines Wendler (IAIS)

We believe that collaboration is key to overcome the aforementioned limitations and thereby strengthening the European GenAI landscape. Because of this, the team invites researchers, developers, and AI enthusiasts to join and engage through various platforms. A Discord server has been created for community collaboration, offering a space for discussions on technical details, ideas, and direct interaction with developers. Additionally, resources like research publications and a European LLM Leaderboard provide insights into Teuken-7B’s performance and technical aspects. The OpenGPT-X team encourages ongoing engagement and collaboration as the project evolves. Key links: Discord: OpenGPT-X Discord server Research Papers: OpenGPT-X News Research Papers LLM Leaderboard: European LLM Leaderboard LLM Leaderboard

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
d1c92bd

0 моделей