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

Error for video SFT #14

Open
yanlai00 opened this issue Nov 6, 2024 · 5 comments
Open

Error for video SFT #14

yanlai00 opened this issue Nov 6, 2024 · 5 comments

Comments

@yanlai00
Copy link

yanlai00 commented Nov 6, 2024

I got the error "AttributeError: 'VisionCrossAttentionLayer' object has no attribute 'pos_embed_0'" when doing supervised fine-tuning on a subset of the video dataset you provided, with the LongVU_Llama3_2_3B_img checkpoint, with 1 node of 8 GPUs. Any insights on how to resolve this is appreciated. Thanks.

@xiaoqian-shen
Copy link
Collaborator

Hi, you need to change the token from 576 to 144 as written in README here. Since we use maximum 144 tokens to represent each video frame.

@zzzz123-0708
Copy link

Hi, you need to change the token from 576 to 144 as written in README here. Since we use maximum 144 tokens to represent each video frame.
The default config for the model I downloaded is 144. Do I need to change it to 576 when performing inference?

@xiaoqian-shen
Copy link
Collaborator

For video model, please set as 144 for training and inference, while for image model, please set as 576.

@yanlai00
Copy link
Author

Thanks for your response! I noticed that in the provided llama-3.2-1B video model, the token length is set to 576. Is this intentional?

@xiaoqian-shen
Copy link
Collaborator

@yanlai00 Thanks for raising this concern. It should be 144. We have corrected it in LongVU_Llama3_2_1B.

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