Why does spacy keeps gpu memory in use when the language object is deleted? #6303
Unanswered
samehraban
asked this question in
Help: Other Questions
Replies: 2 comments
-
GPU memory management is a bit more complicated, and I'm not 100% sure of all the details. I think you might need to tell cupy to clear its memory pools as well? The test we care most about is whether, if you do the above allocation and destruction in a loop, you actually run out of memory. That would definitely indicate a problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@honnibal No, it won't run out of memory. It goes about 5.5GB in second iteration and if I tell cupy to clean memory pool, it gets back to the 2.7GB again. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to reproduce the behaviour
Your Environment
Beta Was this translation helpful? Give feedback.
All reactions