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

joblib.load using single core, can i use multiple core and threads to load faster? #1519

Open
adhikjoshi opened this issue Oct 29, 2023 · 1 comment

Comments

@adhikjoshi
Copy link

from joblib import dump, load

import time

time1 = time.time()
load(open('model.pkl', 'rb'))
print(time.time() - time1)

Its using single CPU which is making CPU going 100% for few seconds,

can I use multiple CPU or threads to add speed in loading?

@agargi
Copy link

agargi commented Nov 6, 2023

@adhikjoshi Joblib load function uses pickle behind the scene and does not offer any parallelization of loading the model.

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

No branches or pull requests

2 participants