stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

OverflowError: cannot fit 'int' into an index-sized integer

Open zws98 opened this issue 1 year ago • 4 comments

when I use the tokenizer, the error occurs: Info:File "/home/z/anaconda3/envs/t2v/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 3737, in _pad encoded_inputs["attention_mask"] = encoded_inputs["attention_mask"] + [0] * difference !:OverflowError: cannot fit 'int' into an index-sized integer

I check the value of "difference" = 1000000000000000019884624838647

zws98 avatar Jun 26 '24 07:06 zws98

same problems

Sakura-xing avatar Oct 22 '24 09:10 Sakura-xing

Me too

Tokymin avatar Nov 01 '24 04:11 Tokymin

"Replace the files in the tokenizer folder with the files of the relevant model type."将tokenizer文件夹下的文件换一下,换成相关类型模型的文件

heandrea avatar Nov 16 '24 02:11 heandrea

检查一下名称对不对 check out the name of files

my-littledarling avatar Dec 25 '24 09:12 my-littledarling