Ravaan

رواں

Two 70M language models, trained on the same 85 million tokens of Urdu with the same backbone and the same tokenizer. One writes left to right, a token at a time. The other starts from a page of blanks and fills them in eight passes, a few positions at a time — and the order it fills them in is a setting you can change. Press play and watch the difference, then switch the order and watch it again.


The decode, replayed

Same sentence. Same clock. Different order.

Both panels advance one tick per forward pass through the network — the unit each model actually pays for. Diffusion is finished at pass 8 and stops; the autoregressive model is still typing.

Prompt

pass 32
RAVAAN-DIFF masked diffusion · 8 steps · gumbel 2

RAVAAN-AR autoregressive · one token per pass

committed on pass 1 → 8 given (the prompt) AR, one token per pass

Only the diffusion canvas is colour-coded by pass: there, which position gets written when is real information. The AR canvas is one colour because its order is already its position — left to right, no choices. Each square is one token; the Urdu below is grouped into words, because Nastaliq letters join and a word cannot be drawn in pieces.


Held-out Urdu, arm B

One of them stops improving. The other doesn't.

Bits per byte on held-out Urdu — lower is better — against how many times each model has seen the corpus. The autoregressive model bottoms out at 4 epochs and then climbs: more training makes it worse. The diffusion model was trained sixteen times longer than that and had still not turned. The released pair is each arm's own best checkpoint, which is why the AR half is a 4-epoch model and says so.

Show the numbers

Both halves are public

Download the pair.

# 8 steps and </s> forbidden are measured, not taste. The schedule is the open one —
# gumbel 2 ships, random scores as well on this checkpoint, and no metric here separates them
pip install torch sentencepiece safetensors
huggingface-cli download AwaisAdilKhokhar/ravaan-diff-70m --local-dir ravaan-diff
python ravaan-diff/generate.py --tokens 32 --prefix ""

What this page is not

The caveats, up front.