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

两卡训练速度比单卡训练速度慢 #68

Open
YueWen1024 opened this issue Jun 19, 2023 · 2 comments
Open

两卡训练速度比单卡训练速度慢 #68

YueWen1024 opened this issue Jun 19, 2023 · 2 comments

Comments

@YueWen1024
Copy link

使用以下代码,进行单机多卡训练,出现两张卡比一张卡训练速度慢,
trainer = pl.Trainer.from_argparse_args(args, callbacks=[checkpoint], gpus=2, logger=False, accelerator='dp')
请问是哪里设置的有问题吗?

单卡训练:
image
duo'ka
多卡训练:
image

@michaelzhouy
Copy link

同样的问题

@renmada
Copy link
Owner

renmada commented Jul 26, 2023

可能是fsdp的原因

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