DAMO-NLP-SG / DAMO-NLP-SG/VideoLLaMA3

Training error on stage 1 when following 'bash scripts/train/stage1_2b.sh': AttributeError: 'Linear' object has no attribute 'cal_proj_size'

Open
#71 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.2k
Forks
89
PR merge metrics
No merged PRs in 30d

Description

I face an error when i'm trying to train videollama3 locally, which is:

![Image](https://github.com/user-attachments/assets/e611db14-ead2-4644-82d8-70ccc8a5e30e)

and it originates from this code part :

![Image](https://github.com/user-attachments/assets/1a40a318-6798-4743-b9ae-67054d17c7d1)

I try to figure it out and find that the 'config' doesn't get the argument of 'mm_project_type', which should be 'mlp2x_gelu', so the model directly build the mm_projector as defualt which is 'linear', and the linear mm_project has no 'cal_proj_size' which is only built when type is mlp2x_gelu, so that the error occurs.

![Image](https://github.com/user-attachments/assets/7b0e12d4-0076-45a4-989c-e30d320c97cc)

I'm not sure if there is anything i missunderstand or miss, so I ask for a favour

Thanks a lot!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with scripts/train/stage1_2b.sh and trace how mm_project_type reaches the model's projector configuration. Compare the default Linear path with the mlp2x_gelu path and reproduce the reported cal_proj_size error. Done means stage 1 starts without the AttributeError and uses the intended projector configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
ai, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.