/ Модель

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

Лицензия
Apache 2.0
Библиотека
transformers
Опубликована
22 ноя 2024

EuroLLM-9B

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

Базовая многоязычная языковая модель на 9 млрд параметров для генерации текста на языках ЕС и нескольких дополнительных языках.

2 541скачиваний за 30 дней171лайквеса обновлены9 дек 2024

Бенчмарки

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

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

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

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

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

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

EuroLLM-9B — базовая многоязычная языковая модель с 9 млрд параметров, разработанная Unbabel, Instituto Superior Técnico, Instituto de Telecomunicações и партнёрами из университетов и исследовательских организаций. Проект финансировался Европейским союзом. Модель предназначена для генерации текста и понимания языков ЕС, а также ряда дополнительных языков.

Модель построена на плотной архитектуре Transformer с grouped-query attention, RMSNorm, активацией SwiGLU и позиционными встраиваниями RoPE. Она обучалась на 4 трлн токенов из веб-данных, параллельных текстов и высококачественных наборов данных. Длина последовательности при обучении — 4096 токенов. Карточка сообщает о поддержке 35 языков, включая русский, английский, большинство языков ЕС, арабский, китайский, хинди, японский и корейский. Это базовая, не настроенная на инструкции версия; для диалоговых инструкций разработчики предлагают EuroLLM-9B-Instruct.

Модель подходит для многоязычной генерации и продолжения текста, а также может использоваться как основа для последующей адаптации под задачи. По заявлению авторов, она показывает конкурентные результаты на многоязычных и англоязычных тестах. Модель не выровнена по человеческим предпочтениям и может галлюцинировать, выдавать вредный контент или ложные утверждения. Лицензия — Apache License 2.0.

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

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

Ограничения

Модель не настроена на следование инструкциям и может галлюцинировать, генерировать вредный контент или ложные утверждения. Для диалогового взаимодействия и выполнения инструкций предназначена версия EuroLLM-9B-Instruct.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Model Card for EuroLLM-9B

This is the model card for EuroLLM-9B. You can also check the instruction tuned version: EuroLLM-9B-Instruct.

  • Developed by: Unbabel, Instituto Superior Técnico, Instituto de Telecomunicações, University of Edinburgh, Aveni, University of Paris-Saclay, University of Amsterdam, Naver Labs, Sorbonne Université.
  • Funded by: European Union.
  • Model type: A 9B parameter multilingual transfomer LLM.
  • Language(s) (NLP): Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish, Arabic, Catalan, Chinese, Galician, Hindi, Japanese, Korean, Norwegian, Russian, Turkish, and Ukrainian.
  • License: Apache License 2.0.

Model Details

The EuroLLM project has the goal of creating a suite of LLMs capable of understanding and generating text in all European Union languages as well as some additional relevant languages. EuroLLM-9B is a 9B parameter model trained on 4 trillion tokens divided across the considered languages and several data sources: Web data, parallel data (en-xx and xx-en), and high-quality datasets. EuroLLM-9B-Instruct was further instruction tuned on EuroBlocks, an instruction tuning dataset with focus on general instruction-following and machine translation.

Model Description

EuroLLM uses a standard, dense Transformer architecture:

  • We use grouped query attention (GQA) with 8 key-value heads, since it has been shown to increase speed at inference time while maintaining downstream performance.
  • We perform pre-layer normalization, since it improves the training stability, and use the RMSNorm, which is faster.
  • We use the SwiGLU activation function, since it has been shown to lead to good results on downstream tasks.
  • We use rotary positional embeddings (RoPE) in every layer, since these have been shown to lead to good performances while allowing the extension of the context length.

For pre-training, we use 400 Nvidia H100 GPUs of the Marenostrum 5 supercomputer, training the model with a constant batch size of 2,800 sequences, which corresponds to approximately 12 million tokens, using the Adam optimizer, and BF16 precision. Here is a summary of the model hyper-parameters:

Sequence Length4,096
Number of Layers42
Embedding Size4,096
FFN Hidden Size12,288
Number of Heads32
Number of KV Heads (GQA)8
Activation FunctionSwiGLU
Position EncodingsRoPE (\Theta=10,000)
Layer NormRMSNorm
Tied EmbeddingsNo
Embedding Parameters0.524B
LM Head Parameters0.524B
Non-embedding Parameters8.105B
Total Parameters9.154B

Run the model

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "utter-project/EuroLLM-9B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

text = "English: My name is EuroLLM. Portuguese:"

inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Results

EU Languages

image/png Table 1: Comparison of open-weight LLMs on multilingual benchmarks. The borda count corresponds to the average ranking of the models (see (Colombo et al., 2022)). For Arc-challenge, Hellaswag, and MMLU we are using Okapi datasets (Lai et al., 2023) which include 11 languages. For MMLU-Pro and MUSR we translate the English version with Tower (Alves et al., 2024) to 6 EU languages.
* As there are no public versions of the pre-trained models, we evaluated them using the post-trained versions.

The results in Table 1 highlight EuroLLM-9B's superior performance on multilingual tasks compared to other European-developed models (as shown by the Borda count of 1.0), as well as its strong competitiveness with non-European models, achieving results comparable to Gemma-2-9B and outperforming the rest on most benchmarks.

English

image/png

Table 2: Comparison of open-weight LLMs on English general benchmarks.
* As there are no public versions of the pre-trained models, we evaluated them using the post-trained versions.

The results in Table 2 demonstrate EuroLLM's strong performance on English tasks, surpassing most European-developed models and matching the performance of Mistral-7B (obtaining the same Borda count).

Bias, Risks, and Limitations

EuroLLM-9B has not been aligned to human preferences, so the model may generate problematic outputs (e.g., hallucinations, harmful content, or false statements).

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

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

GPU в ailist

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

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
41cbff5

0 моделей