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 lightning_maml method has a risk of out of memory #432

Open
lian-xiao opened this issue Jun 27, 2024 · 0 comments
Open

The lightning_maml method has a risk of out of memory #432

lian-xiao opened this issue Jun 27, 2024 · 0 comments

Comments

@lian-xiao
Copy link

In the pytorch-lightning2.2.1 environment, Maml is implemented by wrapping the meta_learn function with torch.enable_grad, which makes the model's outer losses uncomputed during validation, resulting in memory overflow. This can be avoided by the peripheral loss calculation procedure of the torch.no_grad() packaging validation procedure.

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

1 participant