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
I am testing a JAX-based code (fairly complex) and have observed inconsistency in compilation time and execution behavior. On the first run, the compilation completes quickly, and both the CPU and GPU engage in intensive computations within a short period before execution proceeds smoothly. However, if I restart the exact same run without making any modifications, the compilation time increases by approximately fivefold. Additionally, even after compilation, the execution introduces pauses, seemingly shifting work to the CPU intermittently.
Could someone provide insights into the cause of this behavior and possible strategies to mitigate it?
Fast compilation run
It took around 130 seconds to compile and took around 60 seconds per iteration.
Global Tuning: 100%|██████████| 10/10 [10:58<00:00, 65.89s/it]
Global Sampling: 100%|██████████| 10/10 [09:52<00:00, 59.25s/it]
Slow compilation run
It took around 550 seconds to compile and took around the same 60 seconds per iteration.
Global Tuning: 100%|██████████| 10/10 [18:08<00:00, 108.87s/it]
Global Sampling: 100%|██████████| 10/10 [09:56<00:00, 59.69s/it]
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.
-
I am testing a JAX-based code (fairly complex) and have observed inconsistency in compilation time and execution behavior. On the first run, the compilation completes quickly, and both the CPU and GPU engage in intensive computations within a short period before execution proceeds smoothly. However, if I restart the exact same run without making any modifications, the compilation time increases by approximately fivefold. Additionally, even after compilation, the execution introduces pauses, seemingly shifting work to the CPU intermittently.
Could someone provide insights into the cause of this behavior and possible strategies to mitigate it?
Fast compilation run
It took around 130 seconds to compile and took around 60 seconds per iteration.
Slow compilation run
It took around 550 seconds to compile and took around the same 60 seconds per iteration.
Environment variables
nvidia-smi
Beta Was this translation helpful? Give feedback.
All reactions