-
Notifications
You must be signed in to change notification settings - Fork 292
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
Comments
You can save memory by reducing SIZE_FACTOR=8 and MAX_PIXELS=602112. |
This was referenced Aug 31, 2024
用8张A100跑,batch_size=1,也会out of memory,没找到SIZE_FACTOR=8 and MAX_PIXELS=602112. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
/
The text was updated successfully, but these errors were encountered: