he latest folder structure is available in the local cache, DiffusionPipeline.from_pretrained() reuses the cache and won’t redownload the files.
Load the cached weights into the correct pipeline class - retrieved from the model_index.json file - and return an instance of it.
The pipelines underlying folder structure corresponds directly with their class instances. For example, the StableDiffusionPipeline corresponds to the folder structure in r