Segmentation Fault when Importing AutoGluon
See original GitHub issueWe have noticed that a specific order of import AutoGluon modules will result in seg fault. For example,
import autogluon.text # same applies to autogluon.multimodal
from autogluon.vision import ImagePredictor
and
import autogluon.text. # same applies to autogluon.multimodal
import autogluon.timeseries
will result in
free(): invalid size
Aborted (core dumped)
This is because of some underlying issue with mxnet when it is used along with pytorch. There is not too much AutoGluon team can do about this, but we are actively working toward getting rid of mxnet.
To get around with it, simply reverse the order you import. For example,
from autogluon.vision import ImagePredictor
import autogluon.text
and
import autogluon.timeseries
import autogluon.text
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Segmentation Fault when Importing AutoGluon · Issue #2042
We have noticed that a specific order of import AutoGluon modules will result in seg fault. For example, import autogluon.text # same ...
Read more >Installation — AutoGluon Documentation 0.6.1 documentation
On MacOS I am getting a segmentation fault when trying to train LightGBM / XGBoost. You need to install libOMP 11 to avoid...
Read more >AutoGluon-Tabular hyperparameters - Amazon SageMaker
The following table contains the subset of hyperparameters that are required or most commonly used for the Amazon SageMaker AutoGluon-Tabular algorithm.
Read more >autogluon Changelog - PyUp.io
Because you tried to allocate too many memory regions. Segmentation fault: 11. This error occurred when the machine had many CPU cores (>64...
Read more >Advancing the State of the Art in AutoML, Now 10x Faster with ...
At GTC 21, AWS shared how the combination of AutoGluon, RAPIDS, and NVIDIA GPU computing ... from autogluon.tabular import TabularPredictor, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Created a new env and wasn’t able to reproduce it either.
However, according to @gradientsky, there are still reports of such issues. Let’s just keep this thread open for anyone encountered this issue as a reference and close it once we completely remove mxnet in 0.7. @canerturkmen
This should be related to ImagePredictor hasn’t switched default backend to MXNet.