/ Модель

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

Контекст
2 048 токенов
Параметры
245 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
cucafera
Библиотека
transformers
Опубликована
2 сен 2024

cucafera-instruct

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

Небольшая модель на базе Llama, дообученная для генерации каталанского текста и диалогов по инструкциям.

137скачиваний за 30 дней0лайковвеса обновлены22 мар 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

cucafera-instruct — это дообученная для следования инструкциям языковая модель на основе pauhidalgoo/cucafera, разработанная для генерации текста на каталанском языке. Модель построена на архитектуре Llama с плотной трансформерной сетью, содержит около 245 млн параметров и поддерживает контекст до 2048 токенов. Для диалога используется формат ChatML; веса опубликованы в формате safetensors.

Модель предназначена для каталаноязычных чат-ботов и генерации текста по запросам: она может помогать с кратким изложением, переводом внутри каталанского языка и творческим письмом. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model Card for cucafera 🔥🐲 (Instruct Model)

This document describes cucafera (Instruct Model), a Catalan Large Language Model (LLM) fine-tuned to follow instructions and generate text in Catalan. Built upon the base model, it leverages high-quality Catalan datasets and is optimized for instruction following tasks.

Model Details

Model Description

cucafera (Instruct Model) is a 244-million parameter transformer-based language model inspired by the LLAMA architecture (notably LLAMA3). Despite its relatively small size compared to many contemporary models, it is optimized for generating coherent and contextually relevant text in Catalan.

  • Model Size: 244M parameters
  • Architecture: Transformer-based (LLAMA-inspired) with 30 layers
  • Embedding Size: 768
  • Attention Mechanism: 4 key/value heads and 8 query heads (using Grouped Query Attention - GQA)
  • Context Length: 2048 tokens
  • Tokenizer: Byte-Pair Encoding (BPE) with a vocabulary size of 65,536
  • Activation Function: GeGLU

Instruct Fine-Tuning

The instruct version of cucafera has been fine-tuned on a variety of instruction datasets to enhance its ability to follow user prompts. The fine-tuning was performed using Hugging Face's SFTTrainer and follows the ChatML format for conversation, for example:

<|im_start|>user Fes un poema <|im_end|> <|im_start|>assistant

Training Data

The base model was pre-trained using the patufet-pretrain dataset.

The fine-tuning data utilized a mix of instruction datasets from the patufet collection.

Fine-tunning Procedure

The model was fine-tuned with the following setup:

  • Total fine-tunning steps: 1500
  • Per device train batch size: 12
  • Sequence Length: 2048
  • Learning rate: 3e-5
  • Optimizer: AdamW
  • Weight decay: 0.01
  • Epochs: 5

Different commits represent different fine-tunning procedures: we experimented with different data mixes, epochs, datasets...

Direct Use

The cucafera (Instruct Model) is designed for:

  • Conversational agents and chatbots in Catalan.
  • Task-specific applications such as summarization, translation (within Catalan), and creative writing.
  • Educational and experimental research into instruction-following LLMs.
  • Creative content generation, like poems or stories

However, due to its limited size, it is not able to provide correct factual information and you must be aware of this fact when using this model.

Out-of-Scope Uses

  • High-Stakes Applications:
    The model is not recommended for uses where extremely high factual accuracy is required or where outputs could have significant real-world consequences.
  • Non-Catalan Tasks:
    Since the model is exclusively trained on Catalan text, it is not suited for tasks in other languages without further training or fine-tuning.
  • Sensitive or safety-critical uses: It has not undergone RLHF/DPO tuning, so outputs should be reviewed carefully.

Bias, Risks, and Limitations

  • The model has no instruction tuning, so it may not follow prompts effectively.
  • It only understands Catalan, meaning it is unsuitable for multilingual applications.
  • Due to its small size (244M parameters), its knowledge and reasoning capabilities are limited.
  • It was trained on a limited dataset, which may introduce biases in its outputs.

Recommendations

  • The goal of this model is educational. You are encouraged to train your own model.
  • If used in production, human review of its outputs is recommended.
  • Fine-tuning on task-specific data can improve accuracy and mitigate biases.
  • Users should be cautious when using it in sensitive or high-stakes applications.

Use the Instruct Model

You can use the instruct model via huggingface's transformers library. Make sure to specify the ChatML format.

Acknowledgements

This model was developed as an experimental project, inspired by Karpathy's NanoGPT Series. My colleague Roger Baiges also trained his own CatGPT.

For more details, updates, or to contribute to the project, please visit the GitHub repository

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей