Skip to content

Conversation

@simonpcouch
Copy link
Collaborator

@simonpcouch simonpcouch commented Jul 15, 2024

Closes #214.

Model stacks will still be larger after saving/reloading if not butchered, but when butchered, the saved and reloaded object will be comparable in size to the original. With this PR:

# object after reloading
lobstr::obj_size(stack_finalized)
#> 2.62 GB
# original object
lobstr::obj_size(stack_finalized_orig)
#> 1.63 GB

# butchered object after reloading
lobstr::obj_size(stack_finalized_butchered)
#> 48.59 MB
# butchered original object
lobstr::obj_size(stack_finalized_butchered_orig)
#> 47.14 MB

@simonpcouch simonpcouch merged commit 2aacf23 into main Jul 15, 2024
@simonpcouch simonpcouch deleted the size-214 branch July 15, 2024 18:17
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.

reduce size of final model_stack for making predictions

2 participants