/ Модель

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

Контекст
32 000 токенов
Параметры
6,4 млрд
Размер весов
13,4 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Опубликована
10 окт 2024

Lucie-7B

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

Предобученная многоязычная модель LINAGORA и OpenLLM-France для генерации и продолжения текста на французском, английском и других языках.

646скачиваний за 30 дней31лайквеса обновлены2 июн 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • GPQA

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

    Результат

    0,2727

    Open LLM v2 · архив

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

  • MMLU-PRO

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

    Результат

    0,1498

    Open LLM v2 · архив

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

  • MATH Lvl 5

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

    Результат

    0,0144

    Open LLM v2 · архив

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

  • IFEval

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

    Результат

    0,2496

    Open LLM v2 · архив

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

  • BBH

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

    Результат

    0,3492

    Open LLM v2 · архив

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

  • MUSR

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

    Результат

    0,3923

    Open LLM v2 · архив

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

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

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

Lucie-7B — предобученная авторегрессионная языковая модель, разработанная LINAGORA и OpenLLM-France. Она построена на плотной архитектуре семейства Llama и содержит около 6,7 млрд параметров. Модель обучалась предсказывать следующий токен на 3 трлн токенов многоязычных данных; репозиторий содержит веса в формате safetensors.

Модель предназначена для генерации и продолжения текста, включая дополнение предложений и примеры ответов на вопросы. Основные языки обучения — французский и английский; также в обучающих данных представлены немецкий, испанский и итальянский, а также языки программирования. Длина контекста составляет 32 000 токенов. Для запуска на GPU в README приводится ориентир от 6 ГБ видеопамяти при 4-битной квантизации или 16 ГБ без неё.

Lucie-7B — базовая предобученная модель, а не специализированный чат-ассистент; качество ответов и следование инструкциям могут быть ограничены. Разработчики предупреждают, что в обучающих данных могли встречаться токсичные или оскорбительные строки. Лицензия — Apache-2.0.

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

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

Ограничения

Это базовая предобученная модель, поэтому качество ответов на инструкции и диалоговые запросы может быть ограничено. В обучающих данных могли присутствовать токсичные или оскорбительные строки.

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

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

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

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

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

Открыть на Hugging Face

Model Card for Lucie-7B

Model Description

Lucie-7B is a pretrained 7B parameter causal language model built by LINAGORA and OpenLLM-France.

Lucie-7B was trained on 3 trillion tokens of multilingual data, including English (33.2%), French (32.4%), German (6.9%), Spanish (6.6%), Italian (3.8%), and parallel data from those languages (2.5%), as well as several programming languages (14.7%).

Example Code in Python

Load the model

Load the model (quantized version on GPU if possible, for efficient inference):

import transformers

model_name = "OpenLLM-France/Lucie-7B"

tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
model = transformers.AutoModelForCausalLM.from_pretrained(model_name,
    device_map="auto",
    load_in_4bit=True       # For efficient inference, if quantization is supported by the GPU card
)

Sentence completion

Wrap the model in a text generation pipeline, and specify some generation parameters:

pipeline = transformers.pipeline("text-generation", model=model, tokenizer=tokenizer)

generation_kwargs = dict(
    num_return_sequences=1,               # Number of variants to generate.
    return_full_text= False,              # Do not include the prompt in the generated text.
    do_sample=True,
    temperature=1.0, top_p=1, top_k=None, # Sampling parameters.
    max_new_tokens=200,                   # Maximum length for the output text (in number of tokens).
)

Try 1-shot question answering:

prompt = """\
Quelle est la capitale de l'Espagne ? Madrid\n\
Quelle est la capitale de la France ?\
"""
completions = pipeline(prompt, **generation_kwargs)
for completion in completions:
    print(prompt + " […]" + completion['generated_text'])

This will print something like:

Quelle est la capitale de l'Espagne ? Madrid
Quelle est la capitale de la France ? […] Paris
Quelle est la capitale de l'Italie? Rome
Quelle est la capitale de la Grande-Bretagne? Londres
Quelle est la capitale de la Suisse? Berne
Quelle est la capitale du Portugal? Lisbonne
Quelle est la capitale de l'Algérie? Alger
...

If running on GPU (cuda device), you will need at least 6GB of VRAM to run inference using 4bit quantization (16GB of VRAM without 4bit quantization).

Load a checkpoint

Checkpoints at several training steps are available under revision tags, every 5000 steps during the first 25000 steps, and then every 25000 steps.

Intermediate checkpoints can be loaded using the revision parameter:

model = transformers.AutoModelForCausalLM.from_pretrained(model_name,
    revision="step0753851",
    ...
)

where revision can be one of:

Training Details

Training Data

The training dataset used for the pretraining of Lucie-7B is available at OpenLLM-France/Lucie-Training-Dataset.

The initial composition of the training data is as follows:

Initial Data Composition

Some of the data was upsampled to balance the training data distribution yielding the following composition for training:

Training Data Composition

Training Procedure

Lucie-7B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token).

It was pre-trained on 512 H100 80GB GPUs for about 550,000 GPU hours on the Jean Zay supercomputer.

The training code is available at https://github.com/OpenLLM-France/Lucie-Training. It is based on this fork of Megatron-DeepSpeed.

Optimizer checkpoints are available for download here.

Neural Network Architecture

Lucie-7B has the same neural network architecture as Llama3.1. It has exactly 6 706 958 336 free parameters, with the following hyperparameters:

HyperparameterValue
Vocabulary size (# tokens)65 024
# transformer blocks32
# attention heads32
# key-value heads8
Hidden size4 096
Feed-Forward hidden size12 288
Activationsilu
RMS norm epsilon1e-5

The "theta" parameter of Rotary Positional Embedding (RoPE) was increased during the training process. Its values are indicated in the tables with training hyperparameters below.

Training Hyperparameters

The training consisted of three main phases:

  1. Main pre-training on 3.1T tokens, with a context length of 4096,
  2. Context extension on 5B tokens, with a context length of 32000,
  3. Annealing on 5B tokens of high quality data composed of a mixture of new data and data seen during training.

The details of each phase are given below.

1. Main Pre-training

Training hyperparameters in torch/Megatron-DeepSpeed were as follows:

HyperparameterValue
Total # samples762 144 586 (3.1T tokens)
Total # steps753 851
RoPE theta500 000
Context length4 096
Initial Batch size256
Final Batch size1 024
Batch size rampupby steps of 64 over 10M samples
Learning rate schedulewarmup (2M samples) + cosine annealing
Maximum Learning rate3e-4
Final Learning rate3e-5
Weight decay0.1
Dropout_
Gradient clipping1
Initializer range0.009
OptimizerAdamW (β₁=0.9, β₂=0.95, ε=1e-5)
Precisionbfloat16
Tensor Parallelism (with 512 GPUs)4
Pipeline Parallelism (with 512 GPUs)4
Data Parallelism (with 512 GPUs)32

2. Context Length Extension

Training hyperparameters are the same as above, with the following changes:

HyperparameterValue
Total # samples156 250 (5B tokens)
Total # steps1 220
RoPE theta20 000 000
Context length32 000
Batch size128
Learning rate2e-5
Learning rate scheduleconstant
Tensor Parallelism (with 128 GPUs)4
Pipeline Parallelism (with 128 GPUs)4
Data Parallelism (with 128 GPUs)8

3. Annealing

Training hyperparameters are the same as for context length extension, with the following changes:

HyperparameterValue
Total # samples156 250 (5B tokens)
Total # steps1 220
Learning rate schedulelinear annealing
Maximum Learning rate3e-5
Final Learning rate0

Training Logs and Learning Curves

Training loss

Training logs can be found in Tensorboard format in:

  • metadata/training_logs/ ├── 1_pretraining.zip training logs for the first pre-training phases, in a zip file. Each file in the zip corresponds to a job of at most 20H of training (parallelized over 512 GPUs). ├── 2_extension/ folder containing the training log └── 3_annealing/ folder containing the training log for the annealing phase, which also took around 13H of training (parallelized over 128 GPUs).

The convergence curves of the three pre-training phases are the following:

figures/convergence-curve-pretraining.png

Data corresponding to these plots were extracted from tensorboard logs and are available in the following CSV files:

Evaluations

Multiple evaluations were conducted during Lucie-7B's training to assess its performance on standard benchmarks, primarily in French and English, as well as in Spanish, German, and Italian.

Evaluation results on benchmark datasets of checkpoints of Lucie-7B throughout the training process are available at metadata/evaluation_learning_curve_lucie.csv. Evaluation results of baseline models on the same benchmark datasets are available at metadata/evaluation_baselines.csv.

Main results are summarized in the following figures:

French

figures/learning-curve-evaluation-french-bench.png

English

figures/learning-curve-evaluation-benchmarks-in-english.png

other

figures/learning-curve-evaluation-multilingual-arc-benchmark.png

Needle in a Haystack

Pretraining

figures/needle-in-a-haystack/Lucie-7B-main.png

Context Length Extension

figures/needle-in-a-haystack/Lucie-7B-extension.png

Annealing

figures/needle-in-a-haystack/Lucie-7B-annealing.png

Disclaimer

Lucie-7B is a language model trained solely to predict the most probable next word in a sequence. Despite efforts to filter the Lucie Training Dataset, it is possible that Lucie-7B encountered strings containing toxic or offensive language during its training and as a result, it may generate strings of similar quality. To limit such behavior, it is advised to fine-tune Lucie-7B through instruction and/or preference tuning (DPO, RLHF, etc.).

Citation

When using the Lucie-7B model, please cite the following paper:

✍ Olivier Gouvert, Julie Hunter, Jérôme Louradour, Christophe Cérisara, Evan Dufraisse, Yaya Sy, Laura Rivière, Jean-Pierre Lorré (2025). The Lucie-7B LLM and the Lucie Training Dataset: Open resources for multilingual language generation. arxiv:2503.12294.

@misc{openllm2025lucie,
      title={The Lucie-7B LLM and the Lucie Training Dataset: Open resources for multilingual language generation}, 
      author={Olivier Gouvert and Julie Hunter and Jérôme Louradour and Christophe Cerisara and Evan Dufraisse and Yaya Sy and Laura Rivière and Jean-Pierre Lorré and OpenLLM-France community},
      year={2025},
      eprint={2503.12294},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2503.12294}, 
}

Acknowledgements

This work was performed using HPC resources from GENCI–IDRIS (Grant 2024-GC011015444). We gratefully acknowledge support from GENCI and IDRIS and from Pierre-François Lavallée (IDRIS) and Stephane Requena (GENCI) in particular.

Lucie-7B was created by members of LINAGORA and the OpenLLM-France community, including in alphabetical order: Agustin Martin Picard (IRT), Thibaut Boissin (IRT), Christophe Cerisara (LORIA), Evan Dufraisse (CEA List), Julie Hunter (LINAGORA), Jean-Pierre Lorré (LINAGORA), Jérôme Louradour (LINAGORA), Lucas Hervier (IRT), Michel-Marie Maudet (LINAGORA), Olivier Gouvert (LINAGORA), and Yaya Sy (LORIA).

We thank Clément Bénesse (Opsci), Guokan Shang (MBZUAI), Ismaïl Harrando (LINAGORA), Joël Gombin (Opsci), Jordan Ricker (Opsci), Julien Tourille (EDF), Manuel Faysse (ILLUIN Technology), Olivier Ferret (CEA List), and Rachel Bawden (INRIA), for their helpful input.

We also thank the support teams from IDRIS, in particular Myriam Peyrounette and Hatim Bourfoune, and from Hugging Face, in particular Thomas Wolf, Guilherme Penedo, Elie Bakouch, Haojun Zhao, and Lucain Pouget for their technical guidance.

Finally, we thank the entire OpenLLM-France community, whose members have helped in diverse ways.

Contact

contact@openllm-france.fr

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей