Analysis: CLI startup time #513
wirthual
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Cool! Would that change if you would import torch before starting up?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version: Current master
I did some evaluation on the startup time of the cli.
The majority of the time is required for the loading of
sentence_transformers.quantization
and within there itstorch._C._cuda_getDeviceCount
in the cpp_extensions of the torch librarysee:

I attached the raw import times which you can visualize using tuna:
import.log
Beta Was this translation helpful? Give feedback.
All reactions