You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, for each iteration in the forward pass, the memory usage increases about 3GB, which is the size of the eri tensor. However, what I expected is a roughly constant memory usage of 3GB, since I didn't save any residual quantities during the forward pass. In the real application, the function get_jk calls foreign functions, so I can't use jit compile here. Please help me understand what causes the memory leak.
The test was run on a red hat linux x86-64 server and Jax v0.4.25 was used.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dear developers,
I have a simple test as follows
and the output looks like
As you can see, for each iteration in the forward pass, the memory usage increases about 3GB, which is the size of the
eri
tensor. However, what I expected is a roughly constant memory usage of 3GB, since I didn't save any residual quantities during the forward pass. In the real application, the functionget_jk
calls foreign functions, so I can't usejit
compile here. Please help me understand what causes the memory leak.The test was run on a red hat linux x86-64 server and Jax v0.4.25 was used.
Beta Was this translation helpful? Give feedback.
All reactions