/ Модель

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

Лицензия
Apache 2.0
Архитектура
mdlm · dense
Базовая модель
mdlm-owt
Библиотека
transformers
Опубликована
2 окт 2026

MDLM_MMD_OWT

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

Производная модели yresearch/MDLM-MMD-OWT. Англоязычная MDLM-модель на OpenWebText для восстановления скрытых токенов и диффузионного семплирования текста.

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

Бенчмарки

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

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

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

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

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

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

Карточка модели yresearch/MDLM_MMD_OWT на Hugging Face совпадает с карточкой yresearch/MDLM-MMD-OWT, поэтому описание составлено по ней.

MDLM-MMD-OWT — англоязычная маскированная диффузионная языковая модель, разработанная на базе kuleshov-group/mdlm-owt и постобученная с вознаграждением на основе MMD в пространстве представлений на OpenWebText. Репозиторий содержит экспорт EMA-весов на шаге обучения 3250. Модель имеет архитектуру MDLM с 169,6 млн параметров, 12 трансформерными блоками и 12 головами внимания; длина контекста — 1024 токена.

Модель предназначена для восстановления замаскированных токенов и работы через диффузионный семплер проекта. Она возвращает логиты денойзера; стандартный авторегрессионный метод generate() для генерации не подходит. Для загрузки нужны PyTorch, Transformers, Einops и совместимая CUDA/FlashAttention-среда; используется токенизатор GPT-2, файлы которого в репозитории отсутствуют. Лицензия — Apache-2.0.

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

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

Ограничения

Для генерации нужен семплер проекта, стандартный autoregressive generate() не подходит. В репозитории нет файлов токенизатора; для прямого прохода требуются совместимые PyTorch, Transformers, Einops и CUDA/FlashAttention, а новая оценка качества и GPU-проверка не проводились.

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

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

Открыть на Hugging Face

MDLM-MMD on OpenWebText

MDLM-MMD is an OpenWebText masked diffusion language model post-trained with representation-space MMD rewards. This repository provides a Transformers export of the EMA weights at checkpoint global step 3,250, together with the original model.ckpt for the training project's evaluation loader.

The base model is kuleshov-group/mdlm-owt. Training and diffusion sampling code is available in IDLM_orig.

PropertyValue
Parameters169,627,218
Context length1,024 tokens
Transformer blocks / attention heads12 / 12
Hidden dimension768
Weight precisionFP32
TokenizerGPT-2
Model vocabulary size50,258
Absorbing mask token ID50,257
BOS / EOS token ID50,256
Time conditioningDisabled

Load with Transformers

The custom model implementation is the unchanged implementation from the base MDLM repository. It requires PyTorch, Transformers, Einops, and a compatible CUDA/FlashAttention installation for forward passes.

import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelForMaskedLM.from_pretrained(
    "yresearch/MDLM_MMD_OWT",
    trust_remote_code=True,
    torch_dtype=torch.float32,
).cuda().eval()

# Example: one denoiser call on a fully masked sequence.
input_ids = torch.full(
    (1, 1024), model.config.mask_token_id,
    dtype=torch.long, device=model.device,
)
timesteps = torch.zeros(input_ids.shape[0], device=model.device)
with torch.inference_mode():
    logits = model(
        input_ids=input_ids,
        timesteps=timesteps,
        return_dict=True,
    ).logits

Use the GPT-2 tokenizer from gpt2; tokenizer files are not included here. The extra model vocabulary entry at ID 50,257 is the absorbing diffusion mask. The custom forward requires explicit timesteps even though time conditioning is disabled, and accepts token IDs rather than a tokenizer dictionary containing attention_mask.

The forward pass returns raw denoiser logits. Text generation requires the project's diffusion sampler, including suppression of the mask-token output and preservation of observed tokens. The standard autoregressive generate() API is not the sampling interface for this model.

Checkpoint and conversion

The source checkpoint is already an EMA-only evaluation checkpoint; EMA is not applied a second time during export. It contains no optimizer state for resuming training. Saved post-training settings include token-level RBF MMD, feature layer 3, RBF alpha 2e-5, group size 8, draw-kernel batch size 2, same-position exclusion, learning rate 1e-4, global batch size 512, and EMA decay 0.9999.

Export removes exactly one outer backbone. prefix from each checkpoint state key. All 131 state tensors, including the rotary-frequency buffer, are preserved exactly. No quantization or dtype conversion is performed.

Validation compared every tensor against the source checkpoint after Safetensors serialization and after a local AutoModelForMaskedLM.from_pretrained() reload. Both comparisons were exact, with no missing or unexpected keys. Loading was verified with PyTorch 2.2.1 and Transformers 4.38.2. A GPU forward pass and a new quality evaluation were not run as part of this export.

See export_metadata.json for source hashes, the pinned base revision, and conversion checks. The original checkpoint remains available as model.ckpt.

Attribution and license

The base weights and copied Hugging Face modeling/configuration code come from MDLM, by Subham Sekhar Sahoo and collaborators, under Apache 2.0. The Python model files are copied unchanged from base model revision d0958fa851335ece6c15260ce0025f030673c0fb; this repository contains post-trained weights and an updated configuration/model card. See LICENSE and NOTICE.

The training project builds on IDLM, whose training code is distributed under the MIT license. The underlying corpus is OpenWebText.

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
MDLM
Ревизия весов
33b6e2f

0 моделей