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

Save model in ubj as the default. #9947

Merged
merged 19 commits into from
Jan 5, 2024
Merged

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Jan 3, 2024

Related #7547 .

  • Set default to UBJ in C.
  • Set default to UBJ in JVM.
  • Extract Python serialization tests.
  • Remove changing verbosity in tests so that I can capture warnings.
  • Cleanup tests to reduce the amount of warnings caused by the change of default.

@trivialfis
Copy link
Member Author

@wbo4958 Would be great if you could help take a look when you are available.

@trivialfis trivialfis changed the title [WIP] Save model in ubj as the default. Save model in ubj as the default. Jan 4, 2024
@trivialfis trivialfis marked this pull request as ready for review January 4, 2024 14:58
@@ -668,8 +668,7 @@ def weight_margin(draw: Callable) -> TestDataset:

# A strategy for drawing from a set of example datasets. May add random weights to the
# dataset
@memory.cache
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed since the composite strategy cannot be pickled. joblib has been issuing warnings for a while.

@@ -1313,10 +1313,8 @@ XGB_DLL int XGBoosterLoadModel(BoosterHandle handle, const char* fname) {

namespace {
void WarnOldModel() {
if (XGBOOST_VER_MAJOR >= 2) {
Copy link
Member Author

Choose a reason for hiding this comment

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

The version is lowered since we have released an extra 1.7 release. The original plan was to go from 1.6 to 2.0

Copy link
Contributor

@wbo4958 wbo4958 left a comment

Choose a reason for hiding this comment

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

@wbo4958
Copy link
Contributor

wbo4958 commented Jan 5, 2024

Otherwise, LGTM.

@trivialfis
Copy link
Member Author

Thank you for sharing!

@trivialfis trivialfis merged commit 38dd91f into dmlc:master Jan 5, 2024
28 checks passed
@trivialfis trivialfis deleted the default-ubj branch January 5, 2024 09:53
@trivialfis
Copy link
Member Author

Still need to refresh the document, will open another PR once the R package is sorted out.

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.

3 participants