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.
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.
- bound
The diffusion number is an ELBO — an upper bound on its true bits per byte; the AR
number is exact. That asymmetry means a bound can establish a diffusion win and never an
AR one. Here it happens to work in diffusion's favour, and it would be worth nothing if it
went the other way.
- seeds
One seed per arm. The diffusion arm was replicated separately at a second seed and
landed 0.29σ away, so its own number is stable — but the gap between the arms is
a single paired comparison, with no between-seed interval behind it.
- prompts
The prompts on this page are hand-written, not drawn from the held-out split. They
are short because short sentences are readable; they were chosen by someone who knows what
the model does well, and that is a selection effect worth naming.
- samples
Each sample is the best of 16 seeds per arm, picked by a fixed rule —
fewest words that are not words, then least prompt echo, then fewest repeated
words, then highest type/token ratio — applied identically to every panel.
Every rejected draw ships in
reports/demo_trace_pool.json with the
reason it lost, and with its own scores.
- not a word
Two failures, counted together. A word is invented when it does not appear twice in
713M characters of the Urdu this project trained on; a word is fragmented when it
is a single letter Urdu does not write on its own, which is what a real word broken across
several pieces looks like. Real held-out Urdu scores 0.4% invented on the same test
— a writer uses words a corpus missed — so that is the floor each panel is read against,
not zero.
Until 2026-09-25 the rule above ran without either term, and therefore promoted
the most broken draw of the sixteen: fragmented non-words have no repeats and a perfect
type/token ratio, so they won on both of the terms that used to lead. A third panel, a
left-to-right windowed decoder, was on this page for a day for the same reason — it won
the metric for word order by committing a word's pieces simultaneously, which
that metric scores as in order. It is gone.
- scale
70M parameters on 85M tokens. This is a controlled comparison between two
factorizations, not a usable Urdu assistant. Read the samples as evidence about training
dynamics, not as a product.
- judgement
No native speakers were recruited to score these. Every Urdu quality judgement in this
project is a model's or the author's, including the filter that chose what you see.