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

can't load LISA++ #173

Open
victoriazinkovich opened this issue Jan 21, 2025 · 3 comments
Open

can't load LISA++ #173

victoriazinkovich opened this issue Jan 21, 2025 · 3 comments

Comments

@victoriazinkovich
Copy link

Dear authors,
I am currently working with the "Senqiao/LISA_Plus_7b" model and have encountered an issue while loading it using the following code:

model = LISAForCausalLM.from_pretrained(
    pretrained_model_name_or_path="Senqiao/LISA_Plus_7b",
    low_cpu_mem_usage=True,
    seg_token_idx=32000
)

When I run this code, I receive a warning indicating that some weights of LISAForCausalLM were not initialized from the model checkpoint and are newly initialized: ['model.mm_projector.bias', 'model.mm_projector.weight'].

Could you please provide guidance on the correct way to load this model to avoid such discrepancies? Your assistance would be greatly appreciated. Thank you for your time!

@victoriazinkovich
Copy link
Author

Dear Authors,
If I understand correctly, the error is caused by the fact that the LLaVA package has been updated, and the new version of LISA++ is missing the multimodal_projector folder. May I kindly ask you to update your code?
Thank you!

@Yangsenqiao
Copy link
Contributor

Yangsenqiao commented Jan 23, 2025

Oh! The new version LISA++ is based on LLaVA-1.5, whereas the current version of LISA code is based on LLaVA. I am sorry to confuse you. Let me see how to update it.

@SHYuanBest
Copy link

@Yangsenqiao Any update?

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

3 participants