Skip to content

Commit 9d24532

Browse files
authored
move to diffusers.md
1 parent e1bd6e5 commit 9d24532

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/hub/diffusers.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ You can try out the models directly in the browser if you want to test them out
1919
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/refs%2Fpr%2F35/hub/libraries-diffusers_widget.png"/>
2020
</div>
2121

22+
## Diffusers repository files
23+
24+
A [Diffusers](https://hf.co/docs/diffusers/index) model repository contains all the required model sub-components such as the variational autoencoder for encoding images and decoding latents, text encoder, transformer model, and more. These sub-components are organized into a multi-folder layout.
25+
26+
<div class="flex justify-center">
27+
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/diffusers-model-files-repo.png"/>
28+
</div>
29+
30+
Each subfolder contains the weights and configuration - where applicable - for each component similar to a [Transformers](./transformers) model.
31+
32+
Weights are usually stored as safetensors files and the configuration is usually a json file with information about the model architecture.
33+
2234
## Using existing pipelines
2335

2436
All `diffusers` pipelines are a line away from being used! To run generation we recommended to always start from the `DiffusionPipeline`:

0 commit comments

Comments
 (0)