Pure-Rust LightGBM (CubeCL) — Python bindings mirroring the official lightgbm API
Project description
lightgbm-rs
Python bindings for LightGBM-rs — a pure-Rust reimplementation of Microsoft's LightGBM gradient-boosting library, numerically faithful to the C++ reference (~1e-6 absolute on the CPU anchor) and built on PyO3.
The package mirrors the official lightgbm low-level surface for the in-scope
APIs, so you can switch import lightgbm → import lightgbm_rs:
import numpy as np
import lightgbm_rs as lgb
X = np.random.standard_normal((1000, 10))
y = X @ np.random.standard_normal(10)
ds = lgb.Dataset(X, y)
model = lgb.train({"objective": "regression", "num_leaves": 31}, ds, num_boost_round=100)
pred = model.predict(X) # owned numpy array
Input is marshalled into owned Rust buffers and the GIL is released
(Python::detach) around the CPU-bound train/predict, so background Python
threads make progress during training.
Building from source
pip install maturin
maturin develop --release # inside this directory, into your active venv
See the workspace root for the full project, license, and the numerical-parity contract.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lightgbm_rs-0.0.5.tar.gz.
File metadata
- Download URL: lightgbm_rs-0.0.5.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79564ebdc907c71c4c083773258dae9ace5496b822dc961234f13c8b878cec54
|
|
| MD5 |
7c15562a49f862cd887f7eb51bec27e0
|
|
| BLAKE2b-256 |
92e9716f050f7bf5b412a87cc6a07257cccae17dc8a541e2d45d8c6625db20d8
|
Provenance
The following attestation bundles were made for lightgbm_rs-0.0.5.tar.gz:
Publisher:
release-python.yml on BectorVoom/lightgbm_rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lightgbm_rs-0.0.5.tar.gz -
Subject digest:
79564ebdc907c71c4c083773258dae9ace5496b822dc961234f13c8b878cec54 - Sigstore transparency entry: 1980903041
- Sigstore integration time:
-
Permalink:
BectorVoom/lightgbm_rs@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/BectorVoom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lightgbm_rs-0.0.5-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: lightgbm_rs-0.0.5-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 7.6 MB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c818f858bc106da18e2abfc25e4258cec61cbef5e7ad46df0fb3e8fc5a091c6
|
|
| MD5 |
18fbb511cfdcec552fabbdb2dba01b60
|
|
| BLAKE2b-256 |
ec82b1643c70ece5b10de7d7f5f03e49ed787c14f361c14b8abe3a52f9372a0d
|
Provenance
The following attestation bundles were made for lightgbm_rs-0.0.5-cp311-abi3-win_amd64.whl:
Publisher:
release-python.yml on BectorVoom/lightgbm_rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lightgbm_rs-0.0.5-cp311-abi3-win_amd64.whl -
Subject digest:
7c818f858bc106da18e2abfc25e4258cec61cbef5e7ad46df0fb3e8fc5a091c6 - Sigstore transparency entry: 1980903315
- Sigstore integration time:
-
Permalink:
BectorVoom/lightgbm_rs@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/BectorVoom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lightgbm_rs-0.0.5-cp311-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lightgbm_rs-0.0.5-cp311-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 8.3 MB
- Tags: CPython 3.11+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c9867d5ef4dc7e131c5ca4f30bb82690eda4a35161879cfc078ec412ba402f
|
|
| MD5 |
109ca3f44b17d1f2ca2a891c35bc1884
|
|
| BLAKE2b-256 |
2327bc573c4503d46cc5da7e70a6b968195bcb851cb0791e7e9b9eacb92848ff
|
Provenance
The following attestation bundles were made for lightgbm_rs-0.0.5-cp311-abi3-manylinux_2_34_x86_64.whl:
Publisher:
release-python.yml on BectorVoom/lightgbm_rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lightgbm_rs-0.0.5-cp311-abi3-manylinux_2_34_x86_64.whl -
Subject digest:
f7c9867d5ef4dc7e131c5ca4f30bb82690eda4a35161879cfc078ec412ba402f - Sigstore transparency entry: 1980903227
- Sigstore integration time:
-
Permalink:
BectorVoom/lightgbm_rs@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/BectorVoom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lightgbm_rs-0.0.5-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: lightgbm_rs-0.0.5-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a3f381198f84a790163e397b074b7fa185c881a9a643745eb1f0d377ca5251
|
|
| MD5 |
12c1f67f5307dafaf601c9c48a8be5ea
|
|
| BLAKE2b-256 |
08917920cd7083e9fd13c98cbfb45093e85f339334a00f3fd7c69fd092c7e976
|
Provenance
The following attestation bundles were made for lightgbm_rs-0.0.5-cp311-abi3-macosx_11_0_arm64.whl:
Publisher:
release-python.yml on BectorVoom/lightgbm_rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lightgbm_rs-0.0.5-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
95a3f381198f84a790163e397b074b7fa185c881a9a643745eb1f0d377ca5251 - Sigstore transparency entry: 1980903127
- Sigstore integration time:
-
Permalink:
BectorVoom/lightgbm_rs@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/BectorVoom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@5e6a5d89aaf04f5b445bebe9458111cd55878b48 -
Trigger Event:
push
-
Statement type: