/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
distilbert · dense
Базовая модель
distilbert-base-multilingual-cased
Библиотека
transformers
Опубликована
11 ноя 2025

chonky_distilbert-base-multilingual-cased

Разметка токеновТекст → label7 профессий
127скачиваний за 30 дней4лайкавеса обновлены14 мая 2026

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

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

Многоязычная модель на основе DistilBERT определяет границы абзацев, чтобы делить текст на смысловые фрагменты для RAG.

mamei16/chonky_distilbert-base-multilingual-cased — многоязычная модель для определения границ абзацев и разделения текста на смысловые фрагменты. Это дообученная модель distilbert/distilbert-base-multilingual-cased на основе DistilBERT с классификационной головой для разметки токенов. Она предназначена для подготовки текстов к поиску и извлечению контекста в RAG-системах.

Модель обучалась на корпусе Википедии: README сообщает о почти 11 миллиардах токенов из более чем 34 миллионов статей и обучающих данных для 104 языков. Максимальная длина входа составляет 512 токенов. В README приведены результаты оценки на разных языках со средним F1 0,824; тестовый бенчмарк для чанкинга указан как англоязычный.

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

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

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

Ограничения

Может хуже работать с художественными диалогами, стихами, математическими выражениями и кодом. Ограничение входа — 512 токенов.

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

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

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Model Details

Model Description

Fine-tune of distilbert/distilbert-base-multilingual-cased trained on nearly 11 billion tokens from more than 34 million Wikipedia articles to predict paragraph breaks. This model can be used to split arbitrary natural language texts into semantic chunks.

Model Sources

Uses

This model can be used as part of a RAG pipeline to hopefully improve downstream performance.

Bias, Risks, and Limitations

This model has been fine-tuned on non-fictional natural language from Wikipedia. As such, it may not work as well on fictional texts containing dialog or poems, mathematical expressions or code.

How to Get Started with the Model

pip install git+https://github.com/mamei16/chonky

Usage:

from chonky import ParagraphSplitter

splitter = ParagraphSplitter(device="cpu", model_id="mamei16/chonky_distilbert-base-multilingual-cased")

text = """Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep. The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights."""

for chunk in splitter(text):
  print(chunk)
  print("--")

# Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep.
# --
# The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights.
# --

Training Details

Training Data

Link: https://huggingface.co/datasets/mamei16/multilingual-wikipedia-paragraphs

Note that the data has been pre-tokenized and truncated using the tokenizer from distilbert/distilbert-base-multilingual-cased.

The training data is based on wikimedia/wikipedia. Although it's claimed that unwanted sections such as "References", "See more" etc. have been removed from that dataset, that is not the case. Hence, a semi-accurate and half-manual procedure was used to identify and remove those sections. This procedure involved finding the most common short paragraphs in the last 500 characters of the articles in each language and translating each of them to identify the section headers corresponding to the English "References" etc.

Another issue was the existence of several million articles, most notably in the languages Waray, Cebuano and Swedish, which had been written by a bot named Lsjbot. To not artificially inflate low-resource languages and to ensure that most (if not all) articles were written by humans, the offending articles were removed.

Lastly, articles containing too many extremely long or short paragraphs were removed, as well as stub articles.

Training Procedure

Preprocessing

All articles were truncated to max. 512 tokens.

For designing the training strategy, the following desirable traits were identified:

  • Avoid catastrophic forgetting
  • Avoid sudden drastic changes in distribution
  • Boost low-resource languages
  • Uphold good performance on high-resource/most commonly used languages
  • Must be implementable with static training data

In the end, the training data was generated by combining the datasets of all 104 languages using temperature sampling without replacement and with τ = 2. This would boost low-resource languages, and languages would "die out" one by one spread over the entire epoch (see figure below), thus avoiding sudden big changes in distribution. Furthermore, the model would keep seeing high-resource languages until the end, thus making it likely that it would maintain good performance on them. At the same time, the linear learning rate schedule would ensure that the more low-resource languages were exchausted during training, the lower the learning rate would be, thus making catastrophic forgetting less likely.

Training Hyperparameters

  • Training regime: fp16 mixed precision
  • Epochs: 1
  • Batch size: 64
  • Start learning rate: 2e-5
  • Optimizer: Adam
  • Weight decay: 0.01
  • Loss: NLLLoss
  • Label Smoothing factor: 0.1

Evaluation

​MTCB Nano Benchmark (Aggregated Score)

Note: This benchmark is English only (and includes code in multiple programming languages)

Score = Mean of mean_recall, mean_precision, mean_mrr, and mean_ndcg across k=[1, 3, 5, 10] (Metrics reference)

Model / ChunkerChunk Size 512Chunk Size 1024Chunk Size 2048Avg Score
mirth/chonky_modernbert_large_10.56210.56210.56210.5621
mamei16/chonky_mdistilbert-base-english-cased0.55170.55170.55170.5517
mamei16/chonky_distilbert_base_uncased_1.10.53420.53420.53420.5342
mirth/chonky_modernbert_base_10.53050.53050.53050.5305
mamei16/chonky_distilbert-base-multilingual-cased0.52940.52940.52940.5294
mirth/chonky_distilbert_base_uncased_10.51160.51160.51160.5116
RecursiveChunker0.45960.52140.54310.5080
SentenceChunker0.46120.50260.52630.4967
TokenChunker0.31550.43380.48010.4098
SemanticChunker_potion-32M0.40220.40210.40190.4021
SemanticChunker_potion-multi-128M0.40040.39990.39910.4001
SemanticChunker_potion-8M0.39870.39660.39660.3973
Model Implementation Details
Benchmark NameImplementation
RecursiveChunkerRecursiveChunker(chunk_size=chunk_size)
SentenceChunkerSentenceChunker(chunk_size=chunk_size)
TokenChunkerTokenChunker(chunk_size=chunk_size)
SemanticChunker_potion-32MSemanticChunker(chunk_size=chunk_size, embedding_model="minishlab/potion-base-32M")
SemanticChunker_potion-multi-128MSemanticChunker(chunk_size=chunk_size, embedding_model="minishlab/potion-multilingual-128M")
SemanticChunker_potion-8MSemanticChunker(chunk_size=chunk_size, embedding_model="minishlab/potion-base-8M")

Testing Data

The testing data can be found in the "test" split of each language in the dataset.

Testing Metrics

Due to the extreme class imbalance, the F1-score was chosen as the main evaluation metric.

Results

LanguageF1 Score
Chechen0.994
Cebuano0.993
Newari0.989
Volapük0.989
Minangkabau0.984
Bishnupriya0.982
Malagasy0.971
Haitian Creole0.966
Tatar0.96
Waray0.956
Piedmontese0.936
South Azerbaijani0.934
Ido0.916
Telugu0.912
Kazakh0.907
Welsh0.897
Serbo-Croatian0.893
Aragonese0.886
Basque0.879
Lombard0.879
Tajik0.876
Urdu0.876
Kyrgyz0.872
Chuvash0.868
Marathi0.865
Dutch0.854
Sundanese0.851
Ukrainian0.848
Serbian0.847
Polish0.841
Luxembourgish0.84
Slovak0.84
Hungarian0.834
Armenian0.833
Malay0.832
Latin0.83
French0.829
Swedish0.829
Bosnian0.828
Bavarian0.826
German0.826
Belarusian0.825
Korean0.821
Slovenian0.821
Persian0.82
Italian0.82
Uzbek0.82
Japanese0.818
Swahili0.818
Macedonian0.817
English0.815
Georgian0.814
Indonesian0.813
Occitan0.813
Romanian0.813
Russian0.813
Vietnamese0.812
Norwegian0.811
Portuguese0.811
Afrikaans0.81
Bulgarian0.809
Catalan0.807
Czech0.807
Scots0.806
Tamil0.805
Western Frisian0.804
Arabic0.804
Turkish0.803
Bashkir0.801
Spanish0.8
Lithuanian0.797
Asturian0.796
Breton0.796
Norwegian Nynorsk0.795
Galician0.794
Bangla0.793
Latvian0.793
Estonian0.792
Danish0.787
Azerbaijani0.784
Sicilian0.783
Finnish0.781
Javanese0.781
Hindi0.777
Greek0.772
Gujarati0.772
Low Saxon0.765
Tagalog0.764
Croatian0.763
Irish0.751
Hebrew0.75
Icelandic0.743
Malayalam0.742
Kannada0.73
Yoruba0.729
Chinese0.727
Thai0.725
Albanian0.724
Punjabi0.724
Mongolian0.722
Burmese0.711
Classical Chinese0.706
Western Punjabi0.658
Nepali0.593

Mean F1 Score: 0.824

Technical Specifications

Hardware

RTX 5090

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DistilBertForTokenClassification
Ревизия весов
847bc80

0 моделей