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

About mm_projector loading issue #90

Open
rubylan opened this issue May 10, 2024 · 1 comment
Open

About mm_projector loading issue #90

rubylan opened this issue May 10, 2024 · 1 comment

Comments

@rubylan
Copy link

rubylan commented May 10, 2024

Hi there,

Great work!

Just encountered a small issue when learning about the implementation.
When I check the repo (link here), 'mm_projector' is not included in the list of 'trainable_module', which means the module of mm_projector will not load its weights from the checkpoint (passing by --model_name_or_path) during stage-2/-3 or inference mode, right?

I read through the whole implementation carefully and found nowhere for the loading.
I am wondering if there is anything I've missed since it works well and should not have such a factual error.

Looking forward to your reply and thanks in advanced :))

Best,
Ruby

@Einstone-rose
Copy link

Einstone-rose commented May 28, 2024

You can refer to Line 78-90 for details. Actually, mm_projector is the fully-connected network, and it is pretrained from scratch and as a member of module pretrain_mm_mlp_adapter.

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