mbd-lms / README.md
multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
56e4ae6 verified
|
Raw
History Blame Contribute Delete
1.53 kB

A newer version of the Gradio SDK is available: 6.20.0

Upgrade
metadata
title: Multi-Block Diffusion Language Models
emoji: 🧩
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 5.50.0
app_file: app.py
short_description: Chat with MBD-Math-SDAR-8B block diffusion language model
python_version: '3.12'
startup_duration_timeout: 1h

Multi-Block Diffusion Language Models

This Space demonstrates MBD-Math-SDAR-8B-Chat-b32, a Multi-Block Diffusion Language Model from SJTU-DENG-Lab.

Unlike standard autoregressive LLMs that generate tokens one at a time, this model uses block diffusion: it generates blocks of 32 tokens simultaneously through iterative denoising, enabling parallel generation within each block.

Model Details

  • Architecture: SDAR (modified Qwen3 with non-causal attention)
  • Parameters: 8.2B
  • Precision: bfloat16
  • Block size: 32 tokens
  • Training: Multi-block Teacher Forcing (MultiTF) on math reasoning data

How it works

  1. The prompt is tokenized and padded to a block boundary
  2. A new block of 32 MASK tokens is appended
  3. The model iteratively denoises the MASK tokens (diffusion steps)
  4. The process repeats for each new block until EOS or max blocks reached

References