Skip to content
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

Import treelite models into FIL in a different precision #4839

Merged
merged 9 commits into from
Aug 26, 2022

Conversation

canonizer
Copy link
Contributor

Import treelite models into FIL in a different precision.

  • e.g. load float64 treelite models as a float32 FIL model, or vice versa

@canonizer canonizer requested review from a team as code owners July 29, 2022 00:43
@github-actions github-actions bot added CUDA/C++ Cython / Python Cython or Python issue labels Jul 29, 2022
precision_dict = {'native': precision_t.PRECISION_NATIVE,
'float32': precision_t.PRECISION_FLOAT32,
'float64': precision_t.PRECISION_FLOAT64}
if precision not in precision_dict.keys():
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if precision not in precision_dict.keys():
if precision not in precision_dict:

to be more Pythonic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@canonizer canonizer requested review from a team as code owners July 30, 2022 00:22
@github-actions github-actions bot added CMake conda conda issue gpuCI gpuCI issue labels Jul 30, 2022
@canonizer canonizer changed the base branch from branch-22.08 to branch-22.10 July 30, 2022 00:23
@canonizer
Copy link
Contributor Author

I've addressed the review comments. Could you take another look?

@ajschmidt8 ajschmidt8 removed the request for review from a team August 1, 2022 15:58
@ajschmidt8
Copy link
Member

Removing ops-codeowners from the required reviews since it doesn't seem there are any file changes that we're responsible for. Feel free to add us back if necessary.

@canonizer
Copy link
Contributor Author

rerun tests

@wphicks wphicks added feature request New feature or request non-breaking Non-breaking change labels Aug 12, 2022
@wphicks
Copy link
Contributor

wphicks commented Aug 12, 2022

rerun tests

1 similar comment
@dantegd
Copy link
Member

dantegd commented Aug 15, 2022

rerun tests

@wphicks wphicks added the 0 - Blocked Cannot progress due to external reasons label Aug 18, 2022
@canonizer
Copy link
Contributor Author

rerun tests

@github-actions github-actions bot removed the gpuCI gpuCI issue label Aug 24, 2022
@github-actions github-actions bot removed conda conda issue CMake labels Aug 24, 2022
@dantegd
Copy link
Member

dantegd commented Aug 25, 2022

rerun tests

@wphicks
Copy link
Contributor

wphicks commented Aug 26, 2022

rerun tests

@codecov-commenter
Copy link

Codecov Report

Merging #4839 (a16ce68) into branch-22.10 (7a0ab85) will increase coverage by 0.01%.
The diff coverage is 86.00%.

@@               Coverage Diff                @@
##           branch-22.10    #4839      +/-   ##
================================================
+ Coverage         78.02%   78.04%   +0.01%     
================================================
  Files               180      180              
  Lines             11385    11421      +36     
================================================
+ Hits               8883     8913      +30     
- Misses             2502     2508       +6     
Flag Coverage Δ
dask 46.28% <68.00%> (+0.06%) ⬆️
non-dask 67.32% <86.00%> (+0.05%) ⬆️

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

Impacted Files Coverage Δ
python/cuml/common/array.py 95.10% <85.10%> (-2.88%) ⬇️
python/cuml/thirdparty_adapters/adapters.py 91.54% <100.00%> (+0.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@wphicks
Copy link
Contributor

wphicks commented Aug 26, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 8881928 into rapidsai:branch-22.10 Aug 26, 2022
divyegala pushed a commit to viclafargue/cuml that referenced this pull request Sep 2, 2022
Import treelite models into FIL in a different precision.

- e.g. load float64 treelite models as a float32 FIL model, or vice versa

Authors:
  - Andy Adinets (https://github.com/canonizer)
  - William Hicks (https://github.com/wphicks)

Approvers:
  - Philip Hyunsu Cho (https://github.com/hcho3)
  - William Hicks (https://github.com/wphicks)

URL: rapidsai#4839
ajschmidt8 pushed a commit that referenced this pull request Feb 13, 2023
Import treelite models into FIL in a different precision.

- e.g. load float64 treelite models as a float32 FIL model, or vice versa

Authors:
  - Andy Adinets (https://github.com/canonizer)
  - William Hicks (https://github.com/wphicks)

Approvers:
  - Philip Hyunsu Cho (https://github.com/hcho3)
  - William Hicks (https://github.com/wphicks)

URL: #4839
jakirkham pushed a commit to jakirkham/cuml that referenced this pull request Feb 27, 2023
Import treelite models into FIL in a different precision.

- e.g. load float64 treelite models as a float32 FIL model, or vice versa

Authors:
  - Andy Adinets (https://github.com/canonizer)
  - William Hicks (https://github.com/wphicks)

Approvers:
  - Philip Hyunsu Cho (https://github.com/hcho3)
  - William Hicks (https://github.com/wphicks)

URL: rapidsai#4839
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Blocked Cannot progress due to external reasons CUDA/C++ Cython / Python Cython or Python issue feature request New feature or request non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants