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

Qwen2-VL-7B的微调out of memory #1860

Closed
KirbytroNic0528 opened this issue Aug 30, 2024 · 4 comments
Closed

Qwen2-VL-7B的微调out of memory #1860

KirbytroNic0528 opened this issue Aug 30, 2024 · 4 comments

Comments

@KirbytroNic0528
Copy link

CUDA_VISIBLE_DEVICES=3,4 NPROC_PER_NODE=2 swift sft
--model_type qwen2-vl-7b-instruct
--model_id_or_path qwen/Qwen2-VL-7B-Instruct
--sft_type lora
--dataset dataset.json
torch版本2.4.0
cuda12.2
设备8*A40
使用的是这个命令,其中一张显卡的显存会无限增加直到out of memory
/

@Jintao-Huang
Copy link
Collaborator

@Jintao-Huang
Copy link
Collaborator

You can save memory by reducing SIZE_FACTOR=8 and MAX_PIXELS=602112.

@Jade0321
Copy link

Jade0321 commented Sep 3, 2024

用8张A100跑,batch_size=1,也会out of memory,没找到SIZE_FACTOR=8 and MAX_PIXELS=602112.

@Jintao-Huang
Copy link
Collaborator

#1859

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

4 participants