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

the gpu memory usage of finetuning dualstylegan on 8 gpus #88

Open
1787648106 opened this issue Jul 20, 2023 · 2 comments
Open

the gpu memory usage of finetuning dualstylegan on 8 gpus #88

1787648106 opened this issue Jul 20, 2023 · 2 comments

Comments

@1787648106
Copy link

Hi, thx for your excellent work! When I finetune the model on a 8 gpus per node device , I found that the gpu memory usage of the first card is about 2 times higher than that of the other seven cards. Is this normal?

@williamyang1991
Copy link
Owner

This is because some of the pre-trained model is saved on GPU rather than CPU. So when you load these models before running the multi-GPU process, all models are loaded into GPU0, making GPU0 has high memory usage.
You can manually check each of your loaded pre-trained models, and make sure they are saved and loaded into CPU before running the multi-GPU process.

@1787648106
Copy link
Author

Thanks for your reply, I'll try it later.

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