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

Input length of input_ids is 0, but max_length is set to -2009. #455

Open
wangli68 opened this issue Sep 10, 2024 · 0 comments
Open

Input length of input_ids is 0, but max_length is set to -2009. #455

wangli68 opened this issue Sep 10, 2024 · 0 comments

Comments

@wangli68
Copy link

When I run the latest code with the following command
"python run.py --data MMBench_TEST_EN_V11 MMBench_TEST_CN_V11 --model InternVL2-76B --verbose"

Error:
ValueError: Input length of input_ids is 0, but max_length is set to -2009. This can lead to unexpected behavior. You should consider increasing max_length or, better yet, setting max_new_tokens.

python package:
transformers 4.40.0
typing_extensions 4.9.0
torch 2.2.1+cu121
torchaudio 2.2.1+cu121
torchvision 0.17.1+cu121

In this environment, I can run the original InternVL2-76B without any errors.

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

1 participant