Skip to content

Promote experimental FIL to stable #6464

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

Merged
merged 17 commits into from
Mar 26, 2025

Conversation

wphicks
Copy link
Contributor

@wphicks wphicks commented Mar 19, 2025

This PR promotes experimental FIL to the new stable FIL. This is purely a Python-level change. cuml.fil.fil.ForestInference now resolves to a thin wrapper around cuml.experimental.fil.fil.ForestInference with warnings about upcoming changes to the output shape of FIL predictions. Random forest estimators continue to use legacy FIL because of their usage of TreeliteModel, an obsolete implementation detail of legacy FIL. A future change should switch this to Treelite's native treelite.Model wrapper.

The legacy FIL implementation has been moved to cuml.legacy.fil.fil.ForestInference. This can be removed in 25.06. The thin wrapper around cuml.experimental.fil.fil.ForestInference can also be removed in 25.06 once users have a deprecation cycle to adapt to new output shapes.

This is marked as a breaking change because it removes the shape_str attribute from ForestInference objects. This attribute is not used anywhere in cuML and appears to have existed primarily for debugging.

Resolve #6460.

Copy link

copy-pr-bot bot commented Mar 19, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added Cython / Python Cython or Python issue CMake labels Mar 19, 2025
@wphicks wphicks added feature request New feature or request breaking Breaking change labels Mar 19, 2025
@wphicks wphicks marked this pull request as ready for review March 19, 2025 20:43
@wphicks wphicks requested review from a team as code owners March 19, 2025 20:43
@wphicks wphicks requested review from vyasr and bdice March 19, 2025 20:43
@csadorf csadorf self-requested a review March 21, 2025 13:01
Copy link
Member

@jcrist jcrist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small fixup, but otherwise this LGTM.

@csadorf
Copy link
Contributor

csadorf commented Mar 26, 2025

/merge

@csadorf
Copy link
Contributor

csadorf commented Mar 26, 2025

@vyasr @bdice This PR still needs cuml-cmake-codeowners approval.

@rapids-bot rapids-bot bot merged commit 6265d9c into rapidsai:branch-25.04 Mar 26, 2025
74 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change CMake Cython / Python Cython or Python issue feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promote experimental FIL and maintain current FIL as LegacyFIL
4 participants