running out of RAM suddenly #441
-
Hi, At the beginning I left my simulation running multiple days and I haven't noticed any problems but suddenly I run out of RAM within a few hours, even if I reduce the complexity limit. The only thing I remember having changed in the meantime was that I've tried around with warm start, even though I’ve reset to “False” again. Some details: Right now, a simulation is running, with 25 features (which I know is quite a lot) and a maximum complexity of 10. There are 4 binary operators, 3 unary operators a max depth of 5 while the other parameters are left to default. After running for about 10h I have a RAM consumption of 15Gb and it keeps growing with a slow but steady rate. Any help, hint or clarification would be very much appreciated. Even if I'm simply mistaken and this is a normal behavior. Thank you very much for your support. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
Hi @marianstaggl, Could you answer the following questions to help debug it?
I have personally seen this when (3) my dataset is quite large, in which case you would need to use batching mode. I also see it sometimes for (5) when Julia garbage collection is too passive. This happens in particular in multiprocessing mode (when But it could also be some other issue too. Thanks, |
Beta Was this translation helpful? Give feedback.
-
It is weird that you haven't seen it before. Were any libraries updated? Or Julia updated? And you are positive none of the settings changed? |
Beta Was this translation helpful? Give feedback.
So the immediate fix would be to try running it directly in Julia (https://github.com/MilesCranmer/SymbolicRegression.jl/). I understand that's a tall ask because it's a different language entirely, but depending on urgency you could try running it in Julia (the API is very similar in the Julia backend; here is the quick start: https://github.com/MilesCranmer/SymbolicRegression.jl/#mlj-interface) and starting Julia with
--heap-size-hint=1G
. It would at least help narrow down the issue to being one of garbage collection (if the issue goes away).