/ Модель

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

Размер весов
16 ГБ
Лицензия
MIT
Архитектура
llada · dense
Библиотека
transformers
Опубликована
30 сен 2025

dParallel-LLaDA-8B-instruct

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

Дистиллированная чат-модель LLaDA-8B-Instruct для более быстрого параллельного декодирования и генерации текста.

188скачиваний за 30 дней2лайкавеса обновлены14 окт 2025

Бенчмарки

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

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

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

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

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

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

dParallel-LLaDA-8B-instruct — чат-модель на архитектуре LLaDA, разработанная Zigeng Chen и соавторами из xML Lab Национального университета Сингапура. Это вариант LLaDA-8B-Instruct, обученный методом дистилляции certainty-forcing для ускорения параллельного декодирования диффузионных языковых моделей: модель быстрее достигает уверенности в маскированных токенах, сохраняя качество исходной модели.

Модель предназначена для генерации текста в диалоге и выполнения задач, решаемых базовой инструктивной моделью. В экспериментах число шагов декодирования сокращалось с 256 до 30 на GSM8K и до 24 на MBPP, что соответствовало ускорению в 8,5 и 10,5 раза без снижения качества на этих тестах. Такие результаты относятся к указанным бенчмаркам и не гарантируют аналогичного ускорения в других сценариях. Репозиторий содержит веса в формате safetensors; для использования указана библиотека Transformers. Лицензия — MIT.

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

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

Ограничения

Ускорение и сохранение качества показаны для отдельных бенчмарков GSM8K и MBPP; результаты на них не гарантируют такую же производительность на других задачах. Языковая поддержка отдельно не указана в доступных данных.

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

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

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

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

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

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

Открыть на Hugging Face

dParallel: Learnable Parallel Decoding for dLLMs
Zigeng Chen, Gongfan Fang, Xinyin Ma, Ruonan Yu, Xinchao Wang
xML Lab, National University of Singapore

💡 Introduction

We introduce dParallel, a simple and effective method that unlocks the inherent parallelism of dLLMs for fast sampling. We identify that the key bottleneck to parallel decoding arises from the sequential certainty convergence for masked tokens. Building on this insight, we introduce the core of our approach: certainty-forcing distillation, a novel training strategy that distills the model to follow its original sampling trajectories while enforcing it to achieve high certainty on masked tokens more rapidly and in parallel. Extensive experiments across various benchmarks demonstrate that our method can dramatically reduce the number of decoding steps while maintaining performance. When applied to the LLaDA-8B-Instruct model, dParallel reduces decoding steps from 256 to 30 on GSM8K, achieving an 8.5x speedup without performance degradation. On the MBPP benchmark, it cuts decoding steps from 256 to 24, resulting in a 10.5x speedup while maintaining accuracy.

💻 Model and Datasets

🚀 Quick Start:

from transformers import AutoTokenizer
from model.modeling_llada import LLaDAModelLM
from generate import generate
import torch

device = 'cuda'
model = LLaDAModelLM.from_pretrained('Zigeng/dParallel-LLaDA-8B-instruct', trust_remote_code=True, torch_dtype=torch.bfloat16).to(device).eval()
tokenizer = AutoTokenizer.from_pretrained('Zigeng/dParallel-LLaDA-8B-instruct', trust_remote_code=True)

prompt = "Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May? Please reason step by step, and put your final answer within \\boxed{}."

m = [{"role": "user", "content": prompt}, ]
prompt = tokenizer.apply_chat_template(m, add_generation_prompt=True, tokenize=False)

input_ids = tokenizer(prompt)['input_ids']
input_ids = torch.tensor(input_ids).to(device).unsqueeze(0)

out = generate(model, input_ids, steps=256, gen_length=256, block_length=32, temperature=0., threshold=0.5,remasking='low_confidence')
print("Response:",tokenizer.batch_decode(out[0][:, input_ids.shape[1]:], skip_special_tokens=True)[0])
print("NFE:",out[1])

📖 Experimental Results

Results on LLaDA-8B-Instruct:

llada-exp

Results on Dream-7B-Instruct:

dream-exp

Better Speed-Accuracy Trade-off:

trade-off

☀️ Acknowledgement

Our code builds on LLaDA, Dream, Fast-dLLM, and dKV-Cache, and we acknowledge these great works for laying the groundwork that made our approach possible.

Citation

If our research assists your work, please give us a star ⭐ or cite us using:

@article{chen2025dparallel,
  title={dParallel: Learnable Parallel Decoding for dLLMs},
  author={Chen, Zigeng and Fang, Gongfan and Ma, Xinyin and Yu, Ruonan and Wang, Xinchao},
  journal={arXiv preprint arXiv:2509.26488},
  year={2025}
}

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

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

GPU в ailist

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

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

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

Класс архитектуры
LLaDAModelLM
Ревизия весов
bbdd4fd

0 моделей