Slow Loading of Diffusers

I am currently running diffusers==0.33.1 and finding that the import times of modules are super slow. For context, I am running this on an A100 GPU instance on Google Colab and this occurs when I restart a session and then import. Here’s some minimum reproducible code:

import time
start = time.time()
from diffusers import DiffusionPipeline
print(f"{time.time()-start:.3f}s")
9.994s

Is this to be expected as 10 seconds for a package import seems super long.

1 Like

11.853s with 0.32.2 here.

1 Like