/ Модель

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

Контекст
1 024 токена
Лицензия
MIT
Архитектура
gpt2 · dense
Опубликована
20 мар 2024

pagnol-medium

Генерация текстаТекст → текст
114скачиваний за 30 дней1лайквеса обновлены6 янв 2025

Описание модели

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

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

PAGnol-medium — франкоязычная генеративная языковая модель LightOn, созданная совместно с командой ALMAnaCH института Inria. Это модель семейства GPT-2 с 355 млн параметров, предназначенная для свободной генерации текста на французском языке. Она обучена в 2021 году на тех же данных CCNet, что и CamemBERT, и доступна в форматах PyTorch и safetensors. Контекст модели составляет 1024 токена.

Модель подходит для продолжения французского текста и генерации коротких фрагментов по заданной подсказке. Авторы публикуют её для воспроизводимости исследований и отмечают, что она не отражает современный уровень качества. Лицензия — MIT.

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

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

Ограничения

Модель обучена в 2021 году и, по словам авторов, не является современным уровнем развития генеративных моделей. Её контекст ограничен 1024 токенами.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

PAGnol: An Extra-Large French Generative Model

Paper: ARXIV, ACL ANTHOLOGY

Code: GITHUB

PAGnol is a collection of large French language models, geared towards free-form text generation. With 1.5 billion parameters. PAGnol is based on the GPT architecture. PAGnol is the first language model trained by LightOn, in cooperation with the ALMAnaCH team of Inria.

These model were trained in early 2021 following the then scaling laws and using the exact same training data as the CamemBERT model trained on CCNet. We make it available for reproducibility purposes. They do not constitute the current state of the art nor are they aiming at it.

PAGnol was built by Julien Launay, E.L. Tommasone, Baptiste Pannier, François Boniface, Amélie Chatelain, Iacopo Poli, and Djamé Seddah. It is named after Marcel Pagnol (with PAG standing for pré-apprentissage génératif), and was trained on the IDRIS Jean Zay supercomputer thanks to a GENCI allocation.

The model was converted to the Hugging Face format by Wissam Antoun (ALMAnaCH's PhD student, co-supervised by Benoît Sagot and Djamé Seddah)

Usage

Using PAGnol with Huggingface

from transformers import pipeline

generator = pipeline('text-generation', model='lightonai/pagnol-medium', trust_remote_code=True)

output = generator(
    "Salut PAGnol, comment ça va ?",
    max_length=50,
    do_sample=True,
    temperature=0.7,
)[0]["generated_text"]

>>> "Très bien! Les jours d’été sont là ! Bientôt les premiers festivals..."

Using PAGnol with lairgpt

Head over to our GitHub repository to access our PyTorch inference code. Using PAGnol is as simple as running the following code:

from lairgpt.models import PAGnol

pagnol = PAGnol.medium()
pagnol("Salut PAGnol, comment ça va ?")

>>> "Très bien! Les jours d’été sont là ! Bientôt les premiers festivals..."

License

PAGnol is made available under the MIT licence: by downloading the models available below, you agree with the terms of the MIT licence agreement. Under no circumstances will LightOn and/or Inria be held responsible or liable in any way for any claims, damages, losses, expenses, costs or liabilities whatsoever (including, without limitation, any direct or indirect damages for loss of profits, business interruption or loss of information) resulting or arising directly or indirectly from your use of or inability to use PAGnol.

Available Models

Citation

@inproceedings{launay-etal-2022-pagnol,
    title = "{PAG}nol: An Extra-Large {F}rench Generative Model",
    author = "Launay, Julien  and
      Tommasone, E.l.  and
      Pannier, Baptiste  and
      Boniface, Fran{\c{c}}ois  and
      Chatelain, Am{\'e}lie  and
      Cappelli, Alessandro  and
      Poli, Iacopo  and
      Seddah, Djam{\'e}",
    editor = "Calzolari, Nicoletta  and
      B{\'e}chet, Fr{\'e}d{\'e}ric  and
      Blache, Philippe  and
      Choukri, Khalid  and
      Cieri, Christopher  and
      Declerck, Thierry  and
      Goggi, Sara  and
      Isahara, Hitoshi  and
      Maegaard, Bente  and
      Mariani, Joseph  and
      Mazo, H{\'e}l{\`e}ne  and
      Odijk, Jan  and
      Piperidis, Stelios",
    booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
    month = jun,
    year = "2022",
    address = "Marseille, France",
    publisher = "European Language Resources Association",
    url = "https://aclanthology.org/2022.lrec-1.455",
    pages = "4275--4284",
}

Contact

For research enquiries: pagnol@lighton.ai For business enquiries: customer.relations@lighton.ai

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей