/ Модель

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

Параметры
445 млн
Лицензия
BigScience BLOOM RAIL 1.0
Архитектура
bloom · dense
Базовая модель
bloom-560m
Библиотека
transformers
Опубликована
8 окт 2026

bloom-560m-fr-pruned

Генерация текстаТекст → текст

Экспериментальная французская версия BLOOM-560m с сокращённым словарём токенизатора для более компактной и быстрой генерации текста.

242скачиваний за 30 дней0лайковвеса обновлены8 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это экспериментальная версия BLOOM-560m с сокращённым словарём токенизатора, созданная Даниилом Кобловым в рамках учебной работы по pruning токенизатора для французского языка. Модель основана на BigScience BLOOM-560m: плотная авторегрессионная архитектура BloomForCausalLM с 444,7 млн параметров. Словарь уменьшен с 250 680 до 41 017 токенов по частотам, измеренным на французских статьях Википедии; веса хранения — bfloat16.

Модель предназначена для продолжения текста и генерации на французском языке. В описанном эксперименте сокращение словаря уменьшило число параметров на 38,4% и повысило пропускную способность декодирования на 15,0% при batch 1 и 15,4% при batch 8 на Tesla T4; при этом held-out bits per byte ухудшился на 0,78%. Эти показатели относятся к конкретному корпусу и запуску. Это базовая языковая модель, а не ассистент, настроенный на инструкции; генерация может быть повторяющейся. Для загрузки требуется токенизатор из этого репозитория, поскольку его ID отличаются от исходного BLOOM. Лицензия — BigScience BLOOM RAIL 1.0.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

BLOOM-560m: French vocabulary pruning

Author: Daniil Koblov
Experiment: Homework 1, Tokenizer Pruning for French
Checkpoint: frequency threshold m=1, exported from the completed Kaggle Tesla T4 run on 8 October 2026.

This is a vocabulary-pruned derivative of bigscience/bloom-560m. The transformer layers retain their pretrained weights. The shared input/output embedding matrix retains 41,017 token IDs and is padded to 41,024 rows (a multiple of 64). No weights were fine-tuned. This is the main pruned checkpoint, not the B1 extended-vocabulary or B3 random-embedding experiment.

Changes from the original model

Token frequency is counted on 675 complete French Wikipedia articles (10,013,255 UTF-8 text bytes). The vocabulary retains observed tokens, added/special tokens, the base alphabet and recursive BPE merge dependencies. Merge order is preserved and IDs are remapped contiguously. Input embeddings and the output head remain tied. Stored weights use bfloat16.

MeasureOriginal BLOOMPruned, m=1
Vocabulary250,68041,017
Embedding/output rows250,88041,024
Unused rows2007
Parameters559,214,592344,322,048
Held-out bits per byte0.9865030.994172
Held-out tokens per byte0.2228930.224160

Parameters decrease by 38.4%, with 0.78% higher held-out bits per byte. Evaluation scores all 68 complete held-out articles (1,016,502 UTF-8 bytes) using windows of up to 512 tokens, with fp16 inference and float32 cross-entropy. All held-out texts round-trip exactly. Training tokenization is unchanged; mean held-out sequence length increases by 0.61%.

B4 serving measurements use 256 generated tokens, three warm-ups and ten measured repetitions per configuration. Median decode throughput improves by 15.0% at batch 1 and 15.4% at batch 8 in this Kaggle Tesla T4 session. These are within-run measurements, not a guarantee across hardware or workloads.

Alignment and scoring

The seven unused rows are zero-filled and are not tokenizer IDs. The saved generation_config.json suppresses IDs 41017–41023, so model.generate() cannot emit them with the supplied configuration. Input and output weights remain tied after loading.

Raw model.forward() still returns 41,024 logits. For the BPB protocol used here, slice logits to [..., :len(tokenizer)] before applying softmax or cross-entropy; passing labels directly uses the full output width and does not implement that exclusion. The original baseline likewise excludes its 200 undefined output IDs. config.vocab_size is the physical matrix width; config.tokenizer_vocab_size is 41,017. Padding preserves the real vocabulary and retained weight values.

Load

Use the tokenizer from this repository: its token IDs differ from the original BLOOM tokenizer.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "dakoblov/bloom-560m-fr-pruned"
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(
    repo,
    dtype=torch.float16 if device == "cuda" else torch.float32,
    attn_implementation="eager",
).to(device).eval()
inputs = tokenizer("La France est un pays", return_tensors="pt").to(device)
with torch.inference_mode():
    output = model.generate(**inputs, max_new_tokens=40, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))

The experiment used Transformers 4.57.6 and Tokenizers 0.22.2. Generation can be repetitive; this is a base language model, not an instruction-tuned assistant.

Reproducibility

  • Base model revision: ac2ae5fab2ce3f9f40dc79b5ca9f637430d24971.
  • Corpus: dakoblov/fr-wiki-popular-5-30kb-10mb-1mb, revision c0035cee5b2ffe89072d0a473b04e1532192b22b.
  • Source: wikimedia/wikipedia, configuration 20231101.fr, revision b04c8d1ceb2f5cd4588862100d08de323dccfbaa.
  • Popular articles are selected using recurrence in monthly top-1000 pageview lists for 2025, restricted to complete texts of 5,000–30,000 UTF-8 bytes. The corpus provides provenance and reconstruction details.
  • Seed: 1337. Whole-article train/held-out splits are disjoint.
  • The accompanying submission contains the executed hw1_Koblov.ipynb, PDF report, raw measurements and ID mapping.

Limitations and license

This educational experiment measures French Wikipedia tokenization and prediction. Other languages and downstream tasks were not evaluated and may degrade substantially. Popularity and length filtering bias the corpus. Threshold choice uses the held-out set, so deployment claims need a separate test set. Inherited model biases and unsafe outputs remain possible; see the original BLOOM model card.

This derivative remains subject to the original BigScience BLOOM RAIL 1.0 license, reproduced in LICENSE, including its use restrictions. Original BLOOM weights are credited to BigScience. Modifications are vocabulary/merge pruning, token-ID remapping, embedding slicing, zero padding to a multiple of 64, generation suppression and checkpoint export; there was no additional weight training. Wikipedia corpus licensing and article attribution are documented in the linked dataset.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BloomForCausalLM
Ревизия весов
226a843

0 моделей