example-scripts
example-scripts copied to clipboard
Crashing due to malloc failure
Trying to run example_model.py
on Windows 10, 8GB RAM notebook results in following crash:
(numer.ai) C:\Users\lsadmin\Documents\numer.ai\example-scripts>python example_model.py
Downloading dataset files...
2022-05-17 16:01:22,904 INFO numerapi.utils: target file already exists
2022-05-17 16:01:22,906 INFO numerapi.utils: download complete
2022-05-17 16:01:24,126 INFO numerapi.utils: target file already exists
2022-05-17 16:01:24,126 INFO numerapi.utils: download complete
2022-05-17 16:01:25,315 INFO numerapi.utils: target file already exists
2022-05-17 16:01:25,315 INFO numerapi.utils: download complete
2022-05-17 16:01:26,494 INFO numerapi.utils: target file already exists
2022-05-17 16:01:26,494 INFO numerapi.utils: download complete
2022-05-17 16:01:28,128 INFO numerapi.utils: target file already exists
2022-05-17 16:01:28,128 INFO numerapi.utils: download complete
Reading minimal training data
Traceback (most recent call last):
File "C:\Users\lsadmin\Documents\numer.ai\example-scripts\example_model.py", line 52, in
Any idea why or how to overcome? Failed malloc is exactly 4GB, can the example run on machine like above?
Your device doesn't meet the required system specifications as described in the FAQ:
Minimum: 16GB RAM and 4 core (Intel i5) / 6 cores (AMD Ryzen 5). Recommended: 32GB RAM and 8 core (Intel i7/i9) / 12 cores (AMD Ryzen 7/9).
You could try to change the feature_metadata on line 44, to small:
features = feature_metadata["feature_sets"]["medium"] # get the medium feature set
Or overcome by adding more RAM in your device.