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

VCD in LVLMs #19

Open
sunzjz opened this issue Aug 22, 2024 · 0 comments
Open

VCD in LVLMs #19

sunzjz opened this issue Aug 22, 2024 · 0 comments

Comments

@sunzjz
Copy link

sunzjz commented Aug 22, 2024

请问VCD要用在其他多模态模型上的话,这个第2步是要修改哪些,写的好像不是很清楚。
2. Slightly modify llava_llama.py:
a. Add contrastive decoding parameters in the LlavaLlamaForCausalLM class's forward function to avoid exceptions in model.generate.
b. Add the prepare_inputs_for_generation_cd function.

略过这一步的话,运行报错“ValueError: The following model_kwargs are not used by the model: ['images_cd', 'cd_alpha', 'cd_beta'] (note: typos in the generate arguments will also show up in this list)”。这些参数貌似没有在其他LVLM里使用?

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