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

Evaluation of LLaVA-OV with mismatch error #329

Open
jiafei1224 opened this issue Oct 30, 2024 · 1 comment
Open

Evaluation of LLaVA-OV with mismatch error #329

jiafei1224 opened this issue Oct 30, 2024 · 1 comment

Comments

@jiafei1224
Copy link

Anyone have experience this error when evaluating 7B LLaVA-OV after training:
File "/root/.conda/envs/llava/lib/python3.10/site-packages/accelerate/utils/modeling.py", line 358, in set_module_tensor_to_device
raise ValueError(
ValueError: Trying to set a tensor of shape torch.Size([152064, 3584]) in "weight" (which has shape torch.Size([151936, 3584])), this look incorrect.

@Doraemonzzz
Copy link

Add "vocab_size": 152064 to config.json can solve this problem.

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

2 participants