Skip to content

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

@robotsp

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!

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