mPLUG-DocOwl
mPLUG-DocOwl copied to clipboard
IndexError: piece id is out of range
Hi getting this error while running inference: Reloading the model helps, but it is extremely time consuming.
The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's
attention_maskto obtain reliable results. Setting
pad_token_idto
eos_token_id`:2 for open-end generation.
IndexError Traceback (most recent call last)
9 frames /usr/local/lib/python3.10/dist-packages/sentencepiece/init.py in _func(v, n) 1036 def _func(v, n): 1037 if type(n) is int and (n < 0 or n >= v.piece_size()): -> 1038 raise IndexError('piece id is out of range.') 1039 return func(v, n) 1040
IndexError: piece id is out of range.`