Replies: 1 comment 6 replies
-
We're working on automatic defragmentation, but in the meantime, try this secret menu item: This will automatically wait for all jax operations to finish, but isn't thread-safe, so don't call it if you have jax operations running in different threads. Hope this helps! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a computation (basically just pjit gpt-2) that by rights should fit in 16GB of HBM, but it doesn't due to fragmentation in excess of 50%.
If i could get ~half of the fragmentation to go away, I'd be good. There are a few sizeable unnecessary buffers being allocated, and I'll try to make those disappear, but those add up to ~1.4G. (So those might be enough if it helps fragmentation...)
Beta Was this translation helpful? Give feedback.
All reactions