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

如何将Qwen2.5-VL-7B微调训练后的权重在原始代码仓库中使用 #3061

Open
bittergourd1224 opened this issue Feb 11, 2025 · 1 comment

Comments

@bittergourd1224
Copy link

在原始代码仓库 Qwen2.5-VL 中,根据cookbook spatial_understanding.ipynb ,是用transformers库的Qwen2_5_VLForConditionalGeneration来加载模型权重,而模型权重是从modelscope下载的safetensors格式

现在使用本仓库对Qwen2.5-VL-7B进行了grounding微调训练,得到了checkpoint模型权重。仍希望将用原cookbook的方式加载使用,请问需要进行怎样的操作?

@Jintao-Huang
Copy link
Collaborator

参考examples/infer/demo_hf.py

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