/ Модель

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

Контекст
4 096 токенов
Параметры
68,7 млрд
Размер весов
138 ГБ
Лицензия
Llama 2
Архитектура
llama · dense
Опубликована
11 июн 2024

latxa-70b-v1.2

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

Продолжительно предобученная на баскских текстах 70-миллиардная модель семейства Llama 2 для генерации текста и языковых задач на баскском языке.

36скачиваний за 30 дней0лайковвеса обновлены3 июл 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Latxa 70b v1.2 — большая языковая модель, разработанная исследовательским центром HiTZ и группой IXA Университета Страны Басков UPV/EHU. Это продолжительно предобученная версия Meta Llama 2 с 68,7 млрд параметров, созданная для работы прежде всего с баскским языком. Для обучения использован корпус Latxa v1.1 объёмом около 4,2 млрд токенов; также включались англоязычные данные. Модель имеет архитектуру LlamaForCausalLM и контекст до 4096 токенов.

Модель предназначена для генерации текста и языковых экспериментов на баскском: её можно задавать через промпты или дообучать под конкретные задачи, например классификацию, анализ тональности и понимание текста. Она не проходила дообучение на следование инструкциям и не рекомендуется как готовый чат-ассистент. Для языков, отличных от баскского, качество не гарантируется. Лицензия Llama 2 допускает коммерческое и исследовательское использование с соблюдением её условий.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model Card for Latxa 70b

We introduce Latxa, a family of large language models for Basque ranging from 7 to 70 billion parameters. Latxa is based on Llama 2, which we continue pretraining on a new Basque corpus comprising 4.3M documents and 4.2B tokens. In our extensive evaluation, Latxa outperforms all previous open models we compare to by a large margin. In addition, it is competitive with GPT-4 Turbo in language proficiency and understanding, despite lagging behind in reading comprehension and knowledgeintensive tasks. Both the Latxa family of models, as well as our new pretraining corpora and evaluation datasets, are publicly available under open licenses. Our suite enables reproducible research on methods to build LLMs for low-resource languages

Model Details

Model Description

Latxa is a family of Large Language Models (LLM) based on Meta’s LLaMA models. Current LLMs exhibit incredible performance for high-resource languages such as English, but, in the case of Basque and other low-resource languages, their performance is close to a random guesser. These limitations widen the gap between high- and low-resource languages when it comes to digital development. We present Latxa to overcome these limitations and promote the development of LLM-based technology and research for the Basque language. Latxa models follow the same architecture as their original counterparts and were further trained in Latxa Corpus v1.1, a high-quality Basque corpora.

The models are released in three sizes: 7B, 13B and 70B.

  • Developed by: HiTZ Research Center & IXA Research group (University of the Basque Country UPV/EHU)
  • Model type: Language model
  • Language(s) (NLP): en, eu
  • License: llama2
  • Parent Model: meta-llama/Llama-2-70b
  • Contact: hitz@ehu.eus

Getting started

Use the code below to get started with the model.


from transformers import pipeline

pipe = pipeline("text-generation", model="HiTZ/latxa-70b-v1.2")

text = "Euskara adimen artifizialera iritsi da!"

pipe(text, max_new_tokens=50, num_beams=5)

>> [
 {
  'generated_text': 'Euskara adimen artifizialera iritsi da!\nEuskararen eta adimen artifizialaren arteko harremana aspaldikoa da,'
  ' baina azken urteotan aurrerapauso handiak eman dira arlo horretan'
 }
]

Uses

Latxa models are intended to be used with Basque data; for any other language the performance is not guaranteed. Same as the original, Latxa inherits the LLaMA-2 License which allows for commercial and research use.

Direct Use

Latxa family models are pre-trained LLMs without any task-specific or instruction fine-tuning. That is, the model can either be prompted to perform a specific task or further fine-tuned for specific use cases.

Out-of-Scope Use

The model was not fine-tuned to follow instructions or to work as a chat assistant, therefore, this kind of usage is not tested nor recommended.

Bias, Risks, and Limitations

In an effort to alleviate the potentially disturbing or harmful content, Latxa has been trained on carefully selected and processed data which comes mainly from local media, national/regional newspapers, encyclopedias and blogs (see Latxa-Corpus below). Still, the model is based on LLaMA models and can potentially carry the same bias, risk and limitations.

Please see the LLaMA’s Ethical Considerations and Limitations for further information.

Training Details

Training Data

Our training corpus combines various existing datasets, as well as some new ones that we release with this work. We have prioritized quality over quantity when constructing our corpus, prioritizing high-quality data sources and applying a thorough deduplication and filtering process. In total, a 4.17B tokens corpus is used to train the model.

See more details in the Latxa Corpus dataset card.

Additionally, 500K documents of English data randomly selected from the Pile dataset were also included to avoid catastrophic forgetting.

Training Procedure

The training of Latxa was conducted using the GPT-Neox library. As infrastructure, we leveraged the CINECA HPC Leonardo computing cluster located in Italy, which is powered by 3456 nodes each containing 4x custom A100 64Gb GPUs. The models were trained for 10k steps with a sequence length of 4096 tokens and an effective batch size of 2M tokens, resulting in a total of 20B tokens (around 4 epochs). We used a cosine learning rate schedule, with a warm-up of 500 steps and decaying down to 3% of the peak learning rate. We set up the peak learning rate to be 1e-4. All other hyperparameters follow (Touvron et al., 2023).

Evaluation

We evaluated the models on zero-shot and few-shot settings on generative, multiple-choice and classification tasks. We used the basque partitions of each dataset.

Testing Data, Factors & Metrics

Testing Data

Metrics

For most of the task we used Accuracy, as they are framed as Multiple Choice questions. For the rest, particularly task from BasqueGLUE benchmark, we have used the following:

  • Micro F1: BEC2016-eu and BHTCv2
  • Macro F1: VaxxStance (favor & against)

Results

The model was evaluated using the LM Evaluation harness library from Eleuther AI. In order to reproduce our results please follow the instructions in Latxa's Github repository.

ModelSizeXStoryBelebeleBasGLUEEusProfEusReadEusTriviaEusExamsAvg
Random50.0025.0037.5025.0025.8326.5525.0030.70
GPT 3.5 Turbon/a--57.3348.6231.2436.6546.7142.42--
GPT 4 Turbon/a--90.6762.9056.7075.8573.1270.22--
XGLM7B57.7123.8841.4722.9624.4326.5324.5932.51
BLOOM7B57.1827.0040.1725.3428.4127.1725.0733.86
Mistral7B51.0938.8939.2225.0129.2634.5832.1535.94
Llama 27B50.4326.2238.2024.0927.2729.5028.8432.51
Latxa v1.17B65.4537.3352.5630.2625.0042.1633.8240.94
mGPT13B55.3925.0037.5625.0024.1527.1725.7332.14
Llama 213B50.6332.0038.9825.9028.9833.5329.6634.36
Latxa v1.113B66.5153.8953.3644.1132.6756.3843.6650.08
Mixtral8x7B52.5550.4445.0026.4337.5042.5139.8741.97
Yi34B52.2254.5643.9027.3034.6642.5739.6842.05
Llama 270B51.6233.5642.5524.1627.8438.4333.0835.47
Latxa v1.170B70.5571.6759.7460.6550.5762.4551.9061.08

Environmental Impact

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

ModelSizeTime (GPU Hours)Carbon Emitted (kg CO2 eq)
Latxa v1.17B952.5h124.47kg
Latxa v1.113B2,518.0h329.06kg
Latxa v1.170B30,266.0h3,955.17kg
Total-33,636.5h4,408,7kg
  • Hardware Type: HPC Cluster, 4x A100 64Gb nodes
  • Hours used: 33,636.5h
  • Compute cluster: CINECA HPC
  • Compute Region: Italy
  • Carbon Emitted: 4,408,7kg CO2 eq

Acknowledgements

This work has been partially supported by the Basque Government (IKER-GAITU project). It has also been partially supported by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project with reference 2022/TL22/00215335. The models were trained on the Leonardo supercomputer at CINECA under the EuroHPC Joint Undertaking, project EHPC-EXT-2023E01-013.

Citation

To cite our work, please use:

@misc{etxaniz2024latxa,
      title={{L}atxa: An Open Language Model and Evaluation Suite for {B}asque}, 
      author={Julen Etxaniz and Oscar Sainz and Naiara Perez and Itziar Aldabe and German Rigau and Eneko Agirre and Aitor Ormazabal and Mikel Artetxe and Aitor Soroa},
      year={2024},
      eprint={2403.20266},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей