I am trying to save my Rf model after training it and I get a "Segmentation fault (core dumped)". I have tried to save it before training and it does not give me any problem with pickle. I have tried with other cuML algorithms, and it has let me save them after training.
from cuml.ensemble import RandomForestClassifier as rf_cuML
import pickle
model = rf_cuML(random_state=0)
output = open('model.pkl', 'wb')
pickle.dump(model, output) #This saving works
model.fit(train_features, train_labels)
output = open('model_trained.pkl', 'wb')
pickle.dump(model, output) #This saving does not work
This line throws the following error:
pickle.dump(model, output) #This saving does not work
-->
Segmentation fault (core dumped)
System specifications:
- Ubuntu 18.04
- RAM 32GB
- NVIDIA-SMI 495.29.05 Driver Version: 495.29.05 CUDA Version: 11.5[Cuda info][1] [1]: https://i.stack.imgur.com/8reIM.png
- Rapids 22.04
- Python 3.9
- CPU: Intel Core i7-7700
- GPU: NVIDIA GeForce RTX 2080 SUPER 8 GB
- pickle 4.0