decoder_start_guard

When some rows of a batched encoder-decoder generation already carry the decoder start token and others do not, a batch-level check can read the batch as already started and skip prepending for every row — the rows that lacked it then generate from the wrong decoder context, with no error.

Give the start-token id and one row of token ids per line (comma-separated). This page checks each row on its own and prints the corrected batch. The full checker (decoder_start_guard.py, in this Space) does the same from the command line.

Waiting for a batch.