Diffusion & Non-Autoregressive Language Models · Problem 1 of 4
Implement the forward masking process for a masked diffusion LM (mask a fraction of tokens).
Implement the function/class skeleton in the editor. Any correct approach is accepted.
import torch
def forward_mask(x0, t, mask_id):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Implement the forward masking process for a masked diffusion LM (mask a fraction of tokens).
Implement the function/class skeleton in the editor. Any correct approach is accepted.