Wild · text2text-generation · WASM
This is the exact task mT5 was pretrained on. During pretraining, ~15% of tokens are dropped in
contiguous spans, each replaced by a single sentinel (<extra_id_0>,
<extra_id_1>, …), and the model learns to emit those sentinels followed by the
missing text. Mask a few spans yourself and read the raw sentinel-delimited target it produces — the
format is the whole point. It works across languages from one shared vocabulary.
Load a multi-span example:
Read the raw output as pairs: <extra_id_0> then its fill,
<extra_id_1> then its fill, and so on — usually ending with the next unused sentinel to
mark "done". A small q8 model reconstructs short, high-frequency spans best; longer or rarer spans get
rougher. That is the honest behaviour of the raw multilingual foundation.
← Practical · Next: Multi-model — detect language, then fill →