siboehm / lleaves

Compiler for LightGBM gradient-boosted trees, based on LLVM. Speeds up prediction by ≥10x.
https://lleaves.readthedocs.io/en/latest/
MIT License
370 stars 31 forks source link

coredump when predict #85

Open coco0O0O opened 3 months ago

coco0O0O commented 3 months ago

coredump when predict

import lleaves
import numpy as np

model = lleaves.Model(model_file='demo.txt')
model.compile(cache='demo.o')
preY = model.predict(np.zeros((1,89)))

demo.txt

it may take 30 minutes to compile for the first time because the model is big