/ Модель

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

Контекст
131 072 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Архитектура
llama · dense
Базовая модель
Meta-Llama-3.1-8B
Библиотека
transformers
Опубликована
4 сен 2024

Llama-eus-8B

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

Баскоязычная языковая модель Orai NLP Technologies для генерации текста, созданная продолженным предварительным обучением Meta Llama 3.1 8B.

58скачиваний за 30 дней11лайковвеса обновлены6 июн 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • MMLU-PRO

    MMLU-PRO Raw · выше — лучше

    Результат

    0,3058

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • BBH

    BBH Raw · выше — лучше

    Результат

    0,4418

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MATH Lvl 5

    MATH Lvl 5 Raw · выше — лучше

    Результат

    0,0468

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • IFEval

    IFEval Raw · выше — лучше

    Результат

    0,2161

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • GPQA

    GPQA Raw · выше — лучше

    Результат

    0,2894

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MUSR

    MUSR Raw · выше — лучше

    Результат

    0,3919

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

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

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

Llama-eus-8B v1.0 — базовая языковая модель, разработанная Orai NLP Technologies на основе Meta Llama 3.1 8B. Модель дообучена методом продолженного предварительного обучения на баскском языке: использованы около 1,5 млрд токенов из ZelaiHandi и около 300 млн токенов английского текста из FineWeb. Архитектура — плотная LlamaForCausalLM; в репозитории представлены веса Safetensors. Размер модели — 7,5 млрд параметров, контекст — до 131 072 токенов.

Модель предназначена прежде всего для генерации текста на баскском языке и улучшает грамматическую и практическую компетентность относительно исходной Llama 3.1 8B, сохраняя общие возможности на английском. Её можно применять для генерации и продолжения текста, ответов на вопросы и задач рассуждения на баскском. Карточка сообщает о минимальном снижении качества на английском. Модель распространяется по лицензии Llama 3.1 Community License; условия этой лицензии следует учитывать при использовании.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Llama-eus-8B, a foundational sub-10 billion parameter LLM for Basque

Llama-eus-8B v1.0 is a foundational large language model (LLM) adapted from Meta's Llama3.1-8B, tailored specifically for the Basque language. Through continual pretraining on a combination of the ZelaiHandi dataset, containing approximately 1.5 billion high-quality Basque tokens, and a selected subset of the FineWeb dataset, around 300 million tokens, Llama-eus-8B aims to enhance linguistic performance in Basque while maintaining general English capabilities.

The original Meta Llama 3.1 collection of models was trained on 15 trillion tokens, with some multilingual content supporting seven additional languages besides English: French, German, Hindi, Italian, Portuguese, Spanish, and Thai. However, it has limitations for low-resource languages such as Basque, leading to poor performance in formal linguistic competence (correct use of grammar and vocabulary) and functional linguistic competence (the ability to understand and use language in real-world contexts). To address this, Meta-Llama-3.1-8B was used as the base for Llama-eus-8B, which underwent specialized pretraining to improve these competences in Basque.

Evaluations show that Llama-eus-8B exhibits notable improvements over Meta-Llama-3.1-8B in Basque for tasks requiring linguistic competence, with minimal degradation in performance for English.

📕 Paper: Pipeline Analysis for Developing Instruct LLMs in Low-Resource Languages: A Case Study on Basque

Model Details

Model Description

  • Developed by: Orai NLP Technologies
  • Model type: Foundational LLM
  • License: Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.
  • Finetuned from model: Built with Llama (Llama3.1-8B)

Training Details

Training Data

For continual pre-training (CPT), we leveraged a combination of Basque and English data to enhance linguistic performance in Basque while maintaining general English capabilities. The goal is to improve cross-lingual transfer by retaining the model's proficiency in English.

  • ZelaiHandi (San Vicente et al., 2024): ZelaiHandi is the largest collection of freely licensed and high-quality Basque texts gathered from selected web sources. This collection comprises approximately 521 million words which correspond to 1.5 billion tokens (Llama 3.1 tokenizer).

  • FineWeb (Penedo et al., 2024): FineWeb consists of more than 15T tokens of cleaned and deduplicated English web data from CommonCrawl. We selected a random subset of around 300 million tokens (Llama 3.1 tokenizer)

Training Procedure

Llama-eus-8B was trained within the 🤗 Transformers ecosystem, utilizing 🤗 Accelerate and DeepSpeed ZeRO for efficient large-scale model training. The process was conducted on the Hyperion system at the Donostia International Physics Center (DIPC), leveraging 8x NVIDIA A100 80GB SXM4 GPUs.

The model was trained with a sequence length of 4096 tokens and an effective batch size of approximately 2 million tokens, over 4 epochs, resulting in a total of around 7.2 billion tokens processed. A cosine learning rate schedule was used, with a peak learning rate of 1e-4 and a warm-up phase comprising 10% of the total steps. All remaining hyperparameters followed the configurations established by Touvron et al. (2023).

Evaluation

Testing Data

To evaluate our model, we created Basque versions of well-established English benchmarks by manually translating a selected subset of these datasets. This approach enabled us to rigorously assess Llama-eus-8B's performance in Basque and directly compare it with its performance in English, providing a comprehensive evaluation of the model's multilingual capabilities.

  • ARC_HT_eu_sample (Corral et al., 2024) [25-shot]: A subset of 250 samples manually translated to Basque from the ARC dataset (Clark et al., 2018). The corresponding 250 English samples are also provided. The ARC dataset consists of genuine grade-school level, multiple-choice science questions, assembled to encourage research in advanced question-answering.

  • Winogrande_HT_eu_sample (Corral et al., 2024) [5-shot]: A subset of 250 samples manually translated to Basque from the WinoGrande dataset (Sakaguchi et al., 2019). The corresponding 250 English samples are also provided. The Winogrande dataset is a collection of 44k problems, inspired by Winograd Schema Challenge, but adjusted to improve the scale and robustness against the dataset-specific bias. Formulated as a fill-in-a-blank task with binary options, the goal is to choose the right option for a given sentence which requires commonsense reasoning.

  • MMLU_HT_eu_sample (Corral et al., 2024) [5-shot]: A subset of 270 samples manually translated to Basque from the MMLU dataset (Hendrycks et al., 2020). The corresponding 250 English samples are also provided. The MMLU dataset is a massive multitask test consisting of multiple-choice questions from various branches of knowledge. The test spans subjects in the humanities, social sciences, hard sciences, and other areas that are important for some people to learn.

  • HellaSwag_HT_eu_sample (Corral et al., 2024) [10-shot]: A subset of 250 samples manually translated to Basque from the HellaSwag dataset (Zellers et al., 2019). The corresponding 250 English samples are also provided. The HellaSwag dataset is a dataset for commonsense NLI.

Additionally, we evaluated our model using a suite of already publicly available Basque Benchmarks:

  • BL2MP (Urbizu et al., 2024) [0-shot]: The BL2MP test set, designed to assess the grammatical knowledge of language Models in the Basque language, inspired by the BLiMP benchmark.

  • Belebele (Bandarkar et al.) [5-shot]: Belebele is a multiple-choice machine reading comprehension (MRC) dataset spanning 122 language variants.

  • X-StoryCloze (Lin et al.) [0-shot]: XStoryCloze consists of the professionally translated version of the English StoryCloze dataset to 10 non-English languages. It is a commonsense reasoning framework for evaluating story understanding, story generation, and script learning

  • BasqueGLUE (Urbizu et al.) [5-shot]: BasqueGLUE is a NLU benchmark for Basque, which has been elaborated from previously existing datasets and following similar criteria to those used for the construction of GLUE and SuperGLUE.

  • EusProficiency (Etxaniz et al., 2024) [5-shot]: EusProficiency comprises 5,169 exercises on different topics from past EGA exams, the official C1-level certificate of proficiency in Basque.

  • EusReading (Etxaniz et al., 2024) [1-shot]: EusReading consists of 352 reading comprehension exercises sourced from the set of past EGA (C1 Basque certificate) exams from 1998 to 2008.

  • EusTrivia (Etxaniz et al., 2024) [5-shot]: EusTrivia consists of 1,715 trivia questions from multiple online sources. A significant portion of the questions focus specifically on the Basque Country, its language and culture.

  • EusExams (Etxaniz et al., 2024) [5-shot]: EusExams is a collection of tests designed to prepare individuals for Public Service examinations conducted by several Basque institutions, including the public health system Osakidetza, the Basque Government, the City Councils of Bilbao and Gasteiz, and the University of the Basque Country (UPV/EHU).

Results

For the evaluation, we compare our model against the Latxa models (Etxaniz et al., 2024) to assess its performance and effectiveness in Basque language tasks. Latxa is a family of large language models specifically developed for Basque, with parameter sizes ranging from 7 billion to 70 billion. As the only existing models adapted to Basque, Latxa provides a valuable baseline for our comparison.

Additionally, we compare our model against Meta's Llama 3.1 models (Dubey et al., 2024), including the 8B and 70B versions. Meta-Llama-3.1-8B model serves as the base model for our continual pre-training, providing a baseline for evaluating the improvements achieved through our approach.

Model evaluations were conducted with the LM Evaluation Harness library from Eleuther AI.

We divide the evaluation into sub-10 billion parameter models and over-10 billion parameter models to better understand the performance differences across various model sizes. This distinction allows us for a fairer comparison of our model against both smaller and larger scale models.

Sub-10 billion parameter results

Table 1 and Table 2 present the performance of sub-10 billion parameter models on both Basque and English benchhmarks. We compare our Llama-eus-8B model with the Basque model latxa-7b-v1.2. We also report the results for the base model Meta-Llama-3.1-8B.

ModelsBL2MPARCWinograndeMMLUHellaSwagBelebeleX-StoryClozeEusExamsEusProficiencyEusReadingEusTriviaBasqueGLUEAverage
latxa-7b-v1.289.3354.8065.6034.4461.2037.3365.4533.8230.2626.9942.1652.5649.50
Llama-eus-8B89.2255.2067.2053.3363.6073.4465.7252.5148.4454.5556.2155.2761.22
Meta-Llama-3.1-8B60.5042.8056.8048.5246.8061.7855.6645.6532.5043.1844.4946.3348.75

Table 1: Performance on Basque test sets for sub-10 billion parameter models. Best performing model is highlighted in bold.

Llama-eus-8B consistently outperforms the other two models across all test sets, with only a minor drop on BL2MP, achieving the highest average score of 61.22. This highlights the effectiveness of our continual pre-training strategy, which significantly enhances Basque performance compared to the base model Meta-Llama-3.1-8B.

ModelsARCWinograndeMMLUHellaSwagBelebeleX-StoryClozeAverage
latxa-7b-v1.261.2075.6038.1576.4041.5673.6661.10
Llama-eus-8B67.6078.4062.5986.4084.6778.4976.36
Meta-Llama-3.1-8B69.2082.0066.6786.4087.4478.2378.32

Table 2: Performance on English test sets for sub-10 billion parameter models. Best performing model is highlighted in bold.

In English benchmarks, the Meta-Llama-3.1-8B model leads in most categories, showing strong overall performance. However, Llama-eus-8B performs notably well with only a 2 point decrease on average, highlighting effectiveness of performing continual pre-training with Basque and English data to avoid catastrophic forgetting.

Over-10 billion parameter results

Table 3 and Table 4 present the performance our Llama-eus-8B model againts over-10 billion parameter models on both Basque and English benchhmarks. We compare our Llama-eus-8B model with the 13B and 70B versions of Latxa and with the 70B version of Meta's Llama 3.1.

ModelsBL2MPARCWinograndeMMLUHellaSwagBelebeleX-StoryClozeEusExamsEusProficiencyEusReadingEusTriviaBasqueGLUEAverage
latxa-13b-v1.288.6755.6069.6039.6361.6053.8966.5143.6644.1134.9456.3853.3655.66
latxa-70b-v1.288.7264.8072.8047.7867.2071.6770.5551.9060.6552.2762.4559.7464.21
Llama-eus-8B89.2255.2067.2053.3363.6073.4465.7252.5148.4454.5556.2155.2761.22
Meta-Llama-3.1-70B67.8967.2070.0063.7063.6087.6765.9864.6244.8672.4460.2363.5065.97

Table 3: Performance on Basque test sets for over-10 billion parameter models. Best performing model is highlighted in bold. Light green indicates that Llama-eus-8B surpasses the 13B model while dark green highlights that Llama-eus-8B outperforms both Basque-adapted systems (13B and 70B).

Table 3 shows that Llama-eus-8B outperforms the Latxa-13B model and performs competitively with the Latxa-70B model across various Basque benchmarks. While the Latxa-70B model excels in several categories, particularly in Basque-specific tasks, Llama-eus-8B still achieves a high average score of 61.22 even with fewer parameters. This indicates that the trade-off between parameter size and performance is significant, with Llama-eus-8B providing strong performance without requiring the largest model size.

ModelsARCWinograndeMMLUHellaSwagBelebeleX-StoryClozeAverage
latxa-13b-v1.266.8080.8047.4183.2063.4476.5169.69
latxa-70b-v1.270.0084.8051.4886.0081.7878.7675.47
Llama-eus-8B67.6078.4062.5986.4084.6778.4976.36
Meta-Llama-3.1-70B78.4085.6072.2292.0094.4481.0183.95

Table 4: Performance on English test sets for over-10 billion parameter models. Best performing model is highlighted in bold. Light green indicates that Llama-eus-8B surpasses the 13B model while dark green highlights that Llama-eus-8B outperforms both Basque-adapted systems (13B and 70B).

Table 4 reveals that the Meta-Llama-3.1-70B model leads in English benchmarks, achieving the highest average score of 83.95. The larger parameter size of Meta-Llama-3.1-70B contributes to its superior performance across most English tasks. Llama-eus-8B competes closely with the larger Latxa models despite having fewer parameters.

Environmental Impact

Carbon emissions were estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: 8x NVIDIA A100 80GB SXM4
  • Hours used: 561.4 GPU hours
  • Hardware Provider: Donostia International Physics Center (DIPC)
  • Compute Region: Spain
  • Carbon Emitted: 97.01 kg C02 eq

License

Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.

Acknowledgments

This work is part of the BasqueLLM project, titled "First steps towards an artificial intelligence in Basque based on LLMs" (EXP: 2023-CIEN-000081-01), partially funded by the Guipuzcoa Science, Technology and Innovation Network Program of the Provincial Council of Gipuzkoa. Model training and development were conducted using the Hyperion system at the Donostia International Physics Center (DIPC).

Citation

If you use Llama-eus-8B please cite the following reference:

@inproceedings{corral-etal-2025-pipeline,
    title = "Pipeline Analysis for Developing Instruct {LLM}s in Low-Resource Languages: A Case Study on {B}asque",
    author = "Corral, Ander and Antero, Ixak Sarasua and Saralegi, Xabier",
    editor = "Chiruzzo, Luis and Ritter, Alan and Wang, Lu",
    booktitle = "Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)",
    month = apr,
    year = "2025",
    address = "Albuquerque, New Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.naacl-long.629/",
    pages = "12636--12655",
    ISBN = "979-8-89176-189-6",
    abstract = "Large language models (LLMs) are typically optimized for resource-rich languages like English, exacerbating the gap between high-resource and underrepresented languages. This work presents a detailed analysis of strategies for developing a model capable of following instructions in a low-resource language, specifically Basque, by focusing on three key stages: pre-training, instruction tuning, and alignment with human preferences. Our findings demonstrate that continual pre-training with a high-quality Basque corpus of around 600 million words improves natural language understanding (NLU) of the foundational model by over 12 points. Moreover, instruction tuning and human preference alignment using automatically translated datasets proved highly effective, resulting in a 24-point improvement in instruction-following performance. The resulting models, Llama-eus-8B and Llama-eus-8B-instruct, establish a new state-of-the-art for Basque in the sub-10B parameter category."
}

Contact

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей