DiffusionGemma-Lite

From-scratch PyTorch block-AR discrete diffusion LM at ~343.5M params — 256-token canvases denoised in parallel from uniform noise, block-causal attention (causal across canvases, bidirectional within), entropy-bounded adaptive stopping, and a chunked-CE loss that never materializes full-vocab logits. Pure PyTorch. Read it like a field notebook: a name, a wiring sketch, then the measurements.

PARALLEL DECODE
256 TOKENS / STEP
One forward pass refines a whole canvas; KV cache grows once per finalized canvas, not per token
ADAPTIVE STOPPING
~2× FLOP CUT
Entropy-bounded early stop · closed rule, no learned halting policy · fixed-schedule fallback is bit-identical
CE MEMORY
6.6→1.1 GB @ ms8
Chunked x0-CE over 8192-token vocab chunks · never materializes the (B,T,V) logits tensor
ZERO-INIT SELF-COND
Δ=0 AT INIT
f(xt, t, sc) == f(xt, t) bit-for-bit at init (fp64, atol=0) · conditioning is learned, not imposed
FIG. A0 BLOCK-AR DECODE PIPELINE STATIC · SEE DIFFUSION.MD FOR THE FULL DERIVATION
§ core

Core Documents

§ concepts

Architecture & Concepts

§ guides

Guides & Playbooks

§ refs

API References