-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkpoint can't be loaded on MacOS with M3 #6422
Comments
Thanks for using LightGBM. What version of |
I installed the lightgbm-ray 0.1.9 python package which installed lightgbm 4.3.0. |
Can you please share the model file that you mentioned here: ray-project/ray#44566 (comment) |
Thanks. We're going to need more information to help you with this. In ray-project/ray#44566 (comment), you claimed that code like this... from lightgbm import Booster
booster = Booster(model_file="model.txt") ... "fails". I ran that today on my M2 Mac, with the model file you provided, using Python 3.11 and conda create \
-c conda-forge \
--name lgb-test \
python=3.11 lightgbm=4.3.0
source activate lgb-test Can you please share the specific commands you used to install Can you try installing the |
pip install -U lightgbm-ray |
Ok, are you willing to try If not and you want to stay with pip uninstall --yes lightgbm
pip install \
--no-binary lightgbm \
--no-cache \
--config-settings=cmake.define.USE_OPENMP=OFF \
'lightgbm>=4.3.0' Please let me know what happens if you try either of those. Please provide as much information as possible, and if you have not seen it before please read https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax to help with formatting messages to make the difference between code, text produced by code, and your own words clearer. |
(base) guxiaobo@guxiaobodebijibendiannao Downloads % python
Python 3.11.8 works fine, it seems a Python version related problem. |
I asked you to try 2 different installation methods for We're happy to try to help, but please answer our direct questions. |
Hi James, I am sorry , I did not notice your second method post before my last post. |
|
No problem!
Ok great! Then yes I strongly suspect this is related to OpenMP compatibility issues. Until you see that #4229 is closed, I recommend using the Very sorry for the difficulty. macOS packaging is an area I'm focusing on for the next release of LightGBM, hopefully this will get better soon. You can subscribe to #4229 to be notified of changes. Since it seems like we've identified the root cause and found a fix, I'm going to close this. Please comment if you have any other concerns. |
Description
I use ray_tune with lightgbm and got a demo best model checkpoint, which is saved as a model.txt file,
but trying to load the model.txt checkpoint caused python to crash.
Reproducible example
The steps and source as listed here ray-project/ray#44566
Environment info
LightGBM version or commit hash:
I am using lightgbm python package with ray-2.10.0
Ray 2.10.0 on MacOS 14.4.1 with M3 chip, python 3.11.7
The text was updated successfully, but these errors were encountered: