Skip to content

[QUESTION] How to release the model and optimizer memory manually? #662

Description

@robotsp

Your question
How to release the model and optimizer memory manually?

What I have tried

  • set zero_grad() method
  • set None method
  • del method
  • gc.collect()
  • torch.cuda.empty_cached()

But the ways above are not worked, please help, thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleNo activity in 60 days on issue or PR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions