/ Модель

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

Контекст
8 192 токена
Параметры
312 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
mmBERT-base
Библиотека
transformers
Опубликована
25 ноя 2026

mmBERT-cjke-base

Заполнение пропусковТекст → текст4 профессии

Многоязычный энкодер ModernBERT для заполнения масок и дообучения на корейских, китайских, японских и английских текстах.

147скачиваний за 30 дней0лайковвеса обновлены25 ноя 2026

Бенчмарки

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

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

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

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

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

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

mmBERT-CJKE-base — многоязычный энкодер на архитектуре ModernBERT с 312 млн параметров, разработанный Warp Space Inc. (CaveduckAI) на основе jhu-clsp/mmBERT-base. Разработчики заменили токенизатор Gemma 2 на Gemma 3 с словарём из 262 тыс. токенов и продолжили предобучение на 30 млрд токенов корейского, китайского, японского и английского текста. Модель рассчитана на заполнение масок и служит основой для дообучения на классификацию, распознавание сущностей, поиск фрагментов и оценку релевантности текста.

На корейском тексте токенизация стала на 27% экономнее, на китайском — на 12%; в описанных авторами тестах качество классификации сохранилось на уровне базовой модели, а результат KLUE-NER улучшился. Модель обучалась с целевой функцией masked language modeling. Хотя архитектура поддерживает контекст до 8192 токенов, продолженное предобучение проводилось на последовательностях длиной 512, поэтому поведение на длинном контексте отдельно не проверялось. Это не готовая модель эмбеддингов: для получения таких векторов требуется контрастивное дообучение. Китайские данные охватывали упрощённое письмо, а веб-корпуса могут содержать смещённые или оскорбительные материалы. Лицензия — MIT.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

mmBERT-CJKE-base

mmBERT-CJKE-base is a 312M-parameter multilingual encoder for Korean, Chinese, Japanese and English (CJK+E). It is jhu-clsp/mmBERT-base (ModernBERT architecture) with its Gemma 2 tokenizer replaced by the Gemma 3 tokenizer (262K vocab) and then continued pre-training on 30B tokens of CJK+E text. The tokenizer swap fixes Gemma 2's prefix-space handling, which does not match how Chinese, Japanese and Korean text is segmented, and makes Korean tokenization 27% more efficient while preserving the base model's knowledge.

mmBERT-base (original)mmBERT-CJKE-base
TokenizerGemma 2 (256K)Gemma 3 (262K)
Korean tokens for the same text4432 (−27.3%)
Chinese tokens for the same text2522 (−12.0%)
Japanese / English31 / 2531 / 25 (unchanged)
KLUE-NER F1 (Korean, boundary-sensitive)0.89210.9025 (+1.04 pp)
KLUE-TC / CLUE-TNEWS / JGLUE-MARC / XNLI0.817 / 0.549 / 0.956 / 0.8190.811 / 0.548 / 0.956 / 0.818 (parity)
Parameters307M312M
Max positions8,1928,192

Developed by Warp Space Inc. (CaveduckAI). The model is the backbone for the lightweight classification, moderation and decision models that run inside the Caveduck AI character platform.

Why swap the tokenizer?

mmBERT-base is a strong multilingual encoder, but it inherits the Gemma 2 tokenizer, which inserts a prefix space in front of tokens. Chinese and Japanese have no spaces, and Korean spacing differs from English, so token boundaries end up misaligned with word boundaries. This hurts tasks where boundaries matter (NER, POS tagging, span detection) and wastes context on Korean text. The mmBERT authors note this limitation and recommend the Gemma 3 tokenizer.

We replaced the tokenizer with FOCUS initialization (new embeddings initialized from overlapping tokens and sub-token averages) and a two-stage continued pre-training recipe (embeddings first, then the full model), following MATT and Bielik v3. The standard benchmarks staying at parity with the base model is the evidence that the swap caused no catastrophic forgetting; the gains show up in token efficiency and boundary-sensitive tasks.

Training

Stage 1 (embedding stabilization)Stage 2 (full adaptation)
Trainabletoken embeddings + MLM head (body frozen)all parameters
Tokens2B30B (1 epoch)
LR / schedule1e-4, cosine8e-5, cosine
  • Objective: masked language modeling (MLM), sequence length 512, batch 64 sequences/step (≈1M tokens/step), bf16, FlashAttention-2.
  • Hardware: 4× NVIDIA H200 (DDP), kt cloud AI Nexus. Stage 2 took about 1.9 days (~4.5 s/step).
  • Loss: 3.33 → 2.06 (end of stage 1) → 1.65 (end of stage 2).
  • Framework: PyTorch, 🤗 Transformers 4.57, 🤗 Datasets.

Data (30B tokens)

LanguageTokensSources
Korean9.0BFineWeb2 (kor_Hang), Wikipedia
Chinese (Simplified)7.5BFineWeb2 (cmn_Hani), Wikipedia
Japanese7.5BFineWeb2 (jpn_Jpan), Wikipedia
English6.0BFineWeb-edu (score ≥ 2)

Web and Wikipedia are mixed 85/15 for ko/zh/ja. A 5B-token pilot run (R1) with the same recipe was used to validate the pipeline before the 30B run (R2 = this model).

Evaluation

Fine-tuning protocol: 20k training samples per task, 3 epochs, batch 32, best of two learning rates (3e-5, 5e-5), evaluated on 3k held-out samples. Same protocol for every model. Raw results are in evaluation/.

TaskLangMetricmmBERT-baseR1 (5B pilot)mmBERT-CJKE-base (R2, 30B)
KLUE-TCkomacro F10.8170.8100.811
KLUE-NERkoF10.8921–0.9025
CLUE-TNEWSzhacc0.5490.5410.548
JGLUE-MARC-jajaacc0.9560.9590.956
XNLImultiacc0.8190.8180.818

Reading the table. Sentence-level classification is at parity with the base model (differences are within seed noise, ±0.6 pp). The boundary-sensitive KLUE-NER improves by 1 pp, consistent with the tokenizer now aligning with Korean word boundaries. We also ran a 30B-token comparison with an alternative CJK tokenizer (Trillion); it regressed on every task, so Gemma 3 was kept.

Tokenizer efficiency

Measured on identical texts (tokens per text, lower is better):

LanguageGemma 2 (mmBERT-base)Gemma 3 (this model)Change
Korean4432−27.3%
Chinese2522−12.0%
Japanese31310%
English25250%

Fewer tokens means more Korean text fits in the same context window and faster inference on Korean inputs.

Usage

from transformers import AutoTokenizer, AutoModelForMaskedLM
import torch

repo = "CaveduckAI/mmBERT-cjke-base"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForMaskedLM.from_pretrained(repo, dtype=torch.bfloat16)

text = "서울은 대한민국의 <mask>이다."
inputs = tok(text, return_tensors="pt")
with torch.no_grad():
    logits = model(**inputs).logits
mask_idx = (inputs.input_ids == tok.mask_token_id).nonzero(as_tuple=True)[1]
print(tok.decode(logits[0, mask_idx].argmax(-1)))

For downstream tasks use AutoModelForSequenceClassification / AutoModelForTokenClassification as with any ModernBERT checkpoint. Install flash-attn for the fastest path; the model falls back to SDPA otherwise. The checkpoint is stored in bfloat16; the MLM head is tied to the input embeddings.

Intended use and limitations

  • Intended as a base encoder for fine-tuning (classification, NER, span detection, cross-encoder scoring, embeddings after contrastive training) on Korean, Chinese, Japanese and English text.
  • Not a sentence-embedding model out of the box; it was trained with MLM only.
  • Continued pre-training used sequence length 512. The architecture and the base model support 8,192 positions, but long-context behaviour was not re-validated here.
  • Chinese data is Simplified only; Traditional Chinese was not targeted.
  • The web corpora (FineWeb2, FineWeb-edu) may contain biased or offensive content; apply your own filtering for sensitive applications.

License

  • Model weights and code: MIT, the same license as the base model jhu-clsp/mmBERT-base.
  • Tokenizer: derived from google/gemma-3-4b-pt. The tokenizer files are subject to the Gemma Terms of Use. mmBERT-base itself redistributes the Gemma 2 tokenizer under the same arrangement.

Acknowledgements

This model was trained on GPU resources provided through the 2026 High-Performance Computing Support Program of the National IT Industry Promotion Agency (NIPA), operated by the Korea Association for ICT Promotion (KAIT), on kt cloud AI Nexus (4× H200). (본 모델은 정보통신산업진흥원(NIPA) 「2026년 고성능컴퓨팅 지원사업」의 지원(운영기관 한국정보통신진흥협회, kt cloud AI Nexus H200 4장)을 받아 학습되었습니다.)

Citation

@misc{mmbert-cjke-base-2026,
  title  = {mmBERT-CJKE-base: a Korean/Chinese/Japanese/English encoder via tokenizer swap and continued pre-training of mmBERT},
  author = {Choi, Young and Warp Space Inc.},
  year   = {2026},
  url    = {https://huggingface.co/CaveduckAI/mmBERT-cjke-base}
}

Please also cite the base model:

@misc{marone2025mmbert,
  title  = {mmBERT: A Modern Multilingual Encoder with Annealed Language Learning},
  author = {Marone, Marc and Weller, Orion and Fleshman, William and Yang, Eugene and Lawrie, Dawn and Van Durme, Benjamin},
  year   = {2025},
  url    = {https://arxiv.org/abs/2509.06888}
}

한국어 요약

mmBERT-CJKE-base는 jhu-clsp/mmBERT-base의 Gemma 2 토크나이저를 Gemma 3 토크나이저(262K vocab)로 교체하고, 한·중·일·영 30B 토큰으로 연속 사전학습한 다국어 인코더(312M)입니다. 동일 문장 기준 한국어 토큰 수가 27% 줄었고(44→32), 토큰 경계에 민감한 KLUE-NER F1이 0.8921→0.9025로 올랐으며, 문장 분류 벤치마크(KLUE-TC·CLUE·JGLUE·XNLI)는 원본과 동률을 유지해 토크나이저 교체로 인한 지식 손실이 없음을 확인했습니다. 분류·개체명 인식·스팬 검출·리랭킹 등 파인튜닝용 기반 모델로 쓰도록 만들었습니다.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ModernBertForMaskedLM
Ревизия весов
56232d6

0 моделей