transformers
transformers copied to clipboard
Generate: add warning when left padding should be used
What does this PR do?
As the title describes: add a warning when left padding should be used. Incorrect use of right padding is detected when:
- the model is decoder-only;
- there is a padding token in the last member of the sequence.
The documentation is not available anymore as the PR was closed or merged.