Masked decoding tames Gemma 3 12B text artifacts with LoRA width tags and RL

round · x · 2026-11-14

A developer shares a technique for controlling "text river" artifacts in Gemma 3 12B generations: masked decoding that masks out any token whose length isn't desired, plus a LoRA trained with width tags so the model is aware of text length, followed by coherence RL to lock in the improvement.

Related event: Taming Gemma 3's Text Artifacts with Masked Decoding(2 posts)→

Original post →

More from Models

Models channel →