Skip to content

Fix LightGBM native interop for ARM64 - #7863

Draft
matouskozak wants to merge 3 commits into
mainfrom
fix/lightgbm-arm64-interop
Draft

matouskozak wants to merge 3 commits into
mainfrom
fix/lightgbm-arm64-interop

Conversation

@matouskozak

Copy link
Copy Markdown
Member

Correct native 64-bit parameter widths and pass the actual row count during dataset creation. Add regression tests for feature filtering and model serialization.

Part of #7685. This does not add ARM64 NuGet assets.

Validated on macOS ARM64 using a manually supplied LightGBM 4.6.0 binary. Linux/Windows ARM64 and x64 validation remain pending.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.85%. Comparing base (29018fd) to head (156e4f0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7863   +/-   ##
=======================================
  Coverage   70.85%   70.85%           
=======================================
  Files        1420     1420           
  Lines      279991   280067   +76     
  Branches    27594    27599    +5     
=======================================
+ Hits       198388   198450   +62     
- Misses      73455    73467   +12     
- Partials     8148     8150    +2     
Flag Coverage Δ
Debug 70.85% <100.00%> (+<0.01%) ⬆️
production 64.29% <100.00%> (-0.01%) ⬇️
test 90.73% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/Microsoft.ML.LightGbm/LightGbmTrainerBase.cs 80.35% <100.00%> (+0.02%) ⬆️
...rc/Microsoft.ML.LightGbm/WrappedLightGbmBooster.cs 89.86% <100.00%> (ø)
...rc/Microsoft.ML.LightGbm/WrappedLightGbmDataset.cs 74.21% <100.00%> (ø)
.../Microsoft.ML.LightGbm/WrappedLightGbmInterface.cs 87.71% <ø> (ø)
...osoft.ML.Tests/TrainerEstimators/TreeEstimators.cs 98.19% <100.00%> (+0.16%) ⬆️

... and 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant