IndexError: Invalid key: 16 is out of bounds for size 0

mariosasko
Thu, 29 Jun 2023 14:37:48 +0000

You can get this info by setting the transformers logger’s verbosity level to info:

import transformers
transformers.logging.set_verbosity_info()