Skip to content

High RAM consumption issue #61

Answered by MilesCranmer
vnikoofard asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Vahid,

Thanks for trying PySR out. Colab is built for GPU-accelerated compute such as deep learning, but PySR itself only uses CPUs (hard to do genetic algorithms on GPU), so it's not optimal. I would recommend running it on your own machine, or on a cluster with many cores if you have access to one. I would expect 80 populations or so to be too much memory usage for Colab (they have very limited RAM), so this is not unexpected behaviour. You could probably run it on Colab with fewer populations, however. Also - you should set procs=2 (default is 4), since Colab only has 2 cores if I remember correctly.

Cheers,
Miles

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vnikoofard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion
2 participants