databricks/databricks-dolly-15k
Viewer • Updated • 15k • 43.4k • 999
A masked diffusion language model based on the LLaDA paper ("LLaDA: Large Language Diffusion with Masking"), trained on general instruction-following datasets.
Unlike autoregressive models (GPT-style) that generate left-to-right, Crimson-LaDa uses iterative denoising: starting from fully masked text, it progressively recovers tokens over multiple steps, allowing the model to revise earlier decisions.
| Parameter | Value |
|---|---|
| Layers | 8 |
| Hidden dim | 384 |
| Attention heads | 8 |
| Parameters | 15.3M |
| Vocab size | 2,685 (character-level) |
| Sequence length | 256 |
| Training steps | 5,000 |
| Best val loss | 1.63 |
| Schedule | WSD (warmup-stable-decay) |
| Mask strategy | t ~ U[ε, 1-ε] (LLaDA-style) |
Trained on 6,000 instruction-following examples from 4 datasets:
import torch
import json
from model import MDLM, generate
# Load
model = MDLM()
ckpt = torch.load("model_final.pt", map_location="cpu")
model.load_state_dict(ckpt, strict=False)
model.eval()
# Generate
output = generate(
model, tokenizer,
prompt="user: What is the capital of France?\n\nassistant:",
max_len=96, steps=64, temperature=0.8
)
print(output)
Standard decoder-only transformer with:
Uses the LLaDA low-confidence remasking strategy:
Unable to build the model tree, the base model loops to the model itself. Learn more.