Skip to content

Uniform Process

discrete_diffusion.forward_process.uniform

Uniform forward process: random token replacement.

With probability (1 - alpha_t), replaces each token by a uniformly drawn token from the vocabulary (optionally excluding the mask token if present).