Comments (4)
@shiyu1994 I have an old Windows laptop with a GeForce, I can help test this one too. I just wanted to get the full output from this report first to be sure we understood the issue.
from lightgbm.
Thanks for using LightGBM.
As the documentation (link) states:
Windows
The CUDA version is not supported on Windows. Use the GPU version (device_type=gpu) for GPU acceleration on Windows.
There is a very conversation about this in #6325.
If you'd like to help with getting that support added here, we'd welcome more specifics on exactly the issue you're facing. You could provide the following:
- what version of Python?
- what version of Windows?
- what version of the CUDA Toolkit, how did you install it, and what path is it installed at?
- what is the full build log you get from running the following command? Attach it as a text file like #6325 (comment)
pip install \
--no-binary lightgbm \
--config-settings=cmake.define.USE_CUDA=ON \
'lightgbm>=4.3.0'
into the python-package folder
Do not try to pip install python-package/
, cd python-package/ && python setup.py install
, or similar here. This project's source layout does not support that.
If you want to build the Python package from a cloned copy of the entire repo, do it like this:
sh build-python.sh install --cuda
from lightgbm.
Thank you for the quick reply and apologies for not linking the CLI documentation bit about CUDA support on Windows (I thought there might have been a chance for the Python package since its documentation gives the installation command shortly after mentioning the build requirement for Windows, and the GPU version installs and works fine for me).
Environment
Here are the additional environment details:
- Python 3.11.7
- Windows 11 Pro - 23H2 - 22631.3447
And the previous ones restated for convenience:
- CMake (3.29.2)
- VS / VS Tools (2022)
- CUDA Toolkit (12.4.1)
- Both the boost Python package (
conda install -c conda-forge boost
) and the Boost binaries (1.84.0)
The CUDA Toolkit was installed with the Windows 11 x86_64 exe from the link and resides at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4; the build command detected it on its own so I did not have to supply its path as an extra argument.
Full output of install command
pip install \
--no-binary lightgbm \
--config-settings=cmake.define.USE_CUDA=ON \
'lightgbm>=4.3.0'
Full output of build-python.sh
sh build-python.sh install --cuda
in the cloned repo.
console_output2.txt
from lightgbm.
Thank you for reporting this. The CUDA version has not been tested on Windows yet. I can help to verify it on windows environment when I find some time.
from lightgbm.
Related Issues (20)
- checkpoint can't be loaded on MacOS with M3 HOT 12
- [python-package] First metric is not used for early stopping
- GPU-built classifier crashes on "Compiling OpenCL Kernel with x bins"
- C API refitting HOT 6
- [python-package] bug : dump_model json loads failed HOT 1
- [R-package] latest {Matrix} requires R>=4.4.0
- [RFC] remove 'categorical_feature' and 'feature_name' parameters in cv() and train() HOT 6
- [RFC] remove HDFS support? HOT 3
- (transferred) [python-package] how to install the Python package from source? HOT 5
- [RFC] provide Python/R implementations of all the built-in objectives? HOT 1
- [python-package] Error in installation in github MacOS runners HOT 1
- [docs] readthedocs builds are broken HOT 1
- CMake `__BUILD_FOR_R` fails to find R source files HOT 4
- [docker] Update Tutorial for Installing LightGBM GPU on Docker Environment HOT 3
- [python-package] NumPy 2.0 support HOT 1
- LightGBM failed to testlightgbm.exe on MSVC HOT 1
- Lightgbm trains much slower than catboost. HOT 6
- Any suggestions for predicting all values to be 0? HOT 1
- [python-package] How to refit a classifier?
- Uncertainty in LightGBM (again) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightgbm.