Issue evidence · Run · huggingface/trl
GitHub issue: https://github.com/huggingface/trl/issues/7734
Reproduced
The DiffusionGemma SFT example encodes the whole sequence with the sliding-window cache, so the prefix before the sampled block may be evicted before the decoder mask is applied.
Ran the issue's CPU script against TRL at commit 8f39f8f with transformers 5.19.0 on macOS (arm64), using a tiny DiffusionGemma config (sequence 1024, prompt 128, sliding window 512, canvas 256) and a 384-token control.
Matches the issue's table. The effect shown is on a small random-weight model, not a trained one; no GPU or download was needed.
Checked 2026-10-15 in Badgr’s local development environment.
← All issue evidence