Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zws98 opened this issue Jun 26, 2024 · 2 comments
Open

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

zws98 opened this issue Jun 26, 2024 · 2 comments

Comments

@zws98
Copy link

zws98 commented Jun 26, 2024

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

@Sakura-xing
Copy link

same problems

@Tokymin
Copy link

Tokymin commented Nov 1, 2024

Me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants