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

能不能指定某个单卡训练 #110

Open
yazheng0307 opened this issue Jun 6, 2023 · 5 comments
Open

能不能指定某个单卡训练 #110

yazheng0307 opened this issue Jun 6, 2023 · 5 comments

Comments

@yazheng0307
Copy link

No description provided.

@yazheng0307
Copy link
Author

我有两个卡,想使用1卡进行微调 ,但是不管是export CUDA_VISIBLE_DEVICES=1还是运行脚本前加上CUDA_VISIBLE_DEVICES=1,模型始终会调用0卡,显示信息如下:
image
hao好像是默认设置的,但是又不知道在哪改(哭死)

@1049451037
Copy link
Member

https://github.com/THUDM/VisualGLM-6B/blob/main/finetune/finetune_visualglm_qlora.sh#L55

--include localhost:0改成对应的卡号,也可以多卡,比如--include localhost:2,3,4

@yazheng0307
Copy link
Author

https://github.com/THUDM/VisualGLM-6B/blob/main/finetune/finetune_visualglm_qlora.sh#L55

--include localhost:0改成对应的卡号,也可以多卡,比如--include localhost:2,3,4

谢谢,可以用了

@BUZZ0328
Copy link

https://github.com/THUDM/VisualGLM-6B/blob/main/finetune/finetune_visualglm_qlora.sh#L55

--include localhost:0改成对应的卡号,也可以多卡,比如--include localhost:2,3,4

lora微调应该怎么修改呢

@BUZZ0328
Copy link

https://github.com/THUDM/VisualGLM-6B/blob/main/finetune/finetune_visualglm_qlora.sh#L55
--include localhost:0改成对应的卡号,也可以多卡,比如--include localhost:2,3,4

lora微调应该怎么修改呢

已解决和qlora一样设置的设置方法就可以

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