【发布时间】:2022-07-22 18:25:23
【问题描述】:
我试图在训练后保存我的 Rf 模型,但我得到一个“分段错误(核心转储)”。我曾尝试在训练前保存它,它不会给我带来任何泡菜问题。 我尝试过使用其他 cuML 算法,它让我在训练后保存它们。
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
此行引发以下错误:
pickle.dump(model, output) #This saving does not work -->分段错误(核心转储)
系统规格:
- Ubuntu 18.04
- 内存 32GB
- NVIDIA-SMI 495.29.05 驱动程序版本:495.29.05 CUDA 版本:11.5[Cuda info][1] [1]:https://i.stack.imgur.com/8reIM.png
- 急流 22.04
- Python 3.9
- CPU:英特尔酷睿 i7-7700
- GPU:NVIDIA GeForce RTX 2080 SUPER 8 GB
- 泡菜4.0
-
3.Cuda 信息:NVIDIA-SMI 495.29.05 驱动版本:495.29.05 CUDA 版本:11.5
标签: python pickle random-forest coredump rapids