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

More memory consume compared with Pytorch #3766

Open
Sun-Xiaohui opened this issue Mar 18, 2024 · 2 comments
Open

More memory consume compared with Pytorch #3766

Sun-Xiaohui opened this issue Mar 18, 2024 · 2 comments
Labels
Priority: P2 - no schedule Best effort response and resolution. We have no plan to work on this at the moment.

Comments

@Sun-Xiaohui
Copy link

Hello, flax team. When I tried to transfer Pytorch's models to the flax framework, I find flax will consume more memory than Pytorch's. For example, a ResNet50 model in Pytorch will consume 4G GPU memory, while it rises to 6G in flax. I wonder what causes the difference in memory consumption between Pytorch and Flax? Or What can I do to reduce memory usage in Flax? Thanks!

@chiamp chiamp added the Priority: P2 - no schedule Best effort response and resolution. We have no plan to work on this at the moment. label Mar 19, 2024
@Sun-Xiaohui
Copy link
Author

@chiamp Hello, Is it working as expected, or did I make a mistake? Thanks.

@chiamp
Copy link
Collaborator

chiamp commented May 8, 2024

Hi @Sun-Xiaohui, how are you transferring over the model? Could you provide an example code snippet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P2 - no schedule Best effort response and resolution. We have no plan to work on this at the moment.
Projects
None yet
Development

No branches or pull requests

2 participants