Skip to main content

Using JAX with Neptune Logging

Common troubleshooting steps when using JAX

Leo Breedt avatar
Written by Leo Breedt
Updated over a week ago

Out-of-Memory Errors when launching JAX

Neptune uses the spawn method to launch multiprocessing workers. This can sometimes cause OOM errors when JAX is initialized during import.

To resolve, you need to import JAX after the child process is created. This can be done:

  1. (Preferred) As part of the worker function.

  2. After Neptune run is initialized.

Did this answer your question?