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

LLaVA-Video-72B-Qwen2 #473

Open
HulkZh opened this issue Dec 26, 2024 · 1 comment
Open

LLaVA-Video-72B-Qwen2 #473

HulkZh opened this issue Dec 26, 2024 · 1 comment

Comments

@HulkZh
Copy link

HulkZh commented Dec 26, 2024

I tested lmms-lab/LLaVA-Video-72B-Qwen2 on videoMME using a 4-card GPU with 96GB video memory and encountered oom. I only loaded 20 weight files before encountering oom, but we did not encounter oom with the same configuration in the code of other warehouses. This is the run command:

accelerate launch --num_processes=4 -m lmms_eval --model llava_vid --model_args pretrained=/root/autodl-tmp/models/LLaVA-Video-72B-Qwen2,conv_template=qwen_1_5,max_frames_num=64,mm_spatial_pool_mode=a verage --tasks videomme_w_subtitle --batch_size 1 --log_samples --log_samples_suffix llava_vid --output_path ./logs/

@kcz358
Copy link
Collaborator

kcz358 commented Dec 27, 2024

You need to pass in device_map=auto into model_args to shard the model and switch to num_processes to 1. For faster inference, you can utilize srt api and setup a server of llavavid

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