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

inference bug The expanded size of the tensor (1575) must match the existing size (788) at non-singleton dimension 3. Target sizes: [1, 28, 788, 1575]. Tensor sizes: [1, 1, 788, 788] #144

Open
ljeff97 opened this issue Feb 26, 2025 · 0 comments

Comments

@ljeff97
Copy link

ljeff97 commented Feb 26, 2025

model = Qwen2VLForConditionalGeneration.from_pretrained(
pwd, torch_dtype="auto", device_map="auto"
)
如果使用原qwenvl2 7b模型,可以正常推理
如果使用RL训练后保存下来的qwenvl2 7b模型,会报错

transformers版本已经使用requirements.txt里的版本

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