num_noise_spans should be <= num_items #22246
Clone of https://github.com/huggingface/transformers/pull/22938
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_23061). All of your documentation changes will be reflected on that endpoint.