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

复现 #4

Open
Gravity-vV opened this issue Dec 25, 2024 · 3 comments
Open

复现 #4

Gravity-vV opened this issue Dec 25, 2024 · 3 comments

Comments

@Gravity-vV
Copy link

请问如果只有40G的显存的显卡,有没有办法跑这个训练呢

@Yuancheng-Xu
Copy link
Collaborator

I think so, just use batch_size_per_device=1 and a higher gradient accumulation value.

@mattxu98
Copy link

On an RTX 4090 (24G), a line of bash poison_llava.sh --batch_size 512 --task_name Biden_base_Trump_target has been running for more than 24 hours and for at least the next 12 hours

@Yuancheng-Xu
Copy link
Collaborator

@mattxu98 I think the original post is asking about training the llava model. poison_llava.sh is for crafting the poison images.

I am surprised that 24G can handle a 512 batch size. Could you try to use a smaller batch_size (such as 10) and see whether it is still too slow?

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