You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add code and doc for running SSD1B models
* Added some more lines to support SD1.x with TINY U-Nets too.
* support SSD-1B.safetensors
* fix sdv1.5 diffusers format loader
---------
Co-authored-by: leejet <[email protected]>
# Running distilled models: SSD1B and SD1.x with tiny U-Nets
2
+
3
+
## Preface
4
+
5
+
This kind of models have a reduced U-Net part.
6
+
Unlike other SDXL models the U-Net of SSD1B has only one middle block and lesser attention layers in up and down blocks, resulting in relatively smaller files. Running these models saves more than 33% of the time. For more details, refer to Segmind's paper on https://arxiv.org/abs/2401.02677v1 .
7
+
Unlike other SD 1.x models Tiny-UNet models consist of only 6 U-Net blocks, resulting in relatively smaller files (approximately 1 GB). Running these models saves almost 50% of the time. For more details, refer to the paper: https://arxiv.org/pdf/2305.15798.pdf .
8
+
9
+
## SSD1B
10
+
11
+
Unfortunately not all of this models follow the standard model parameter naming mapping.
12
+
Anyway there are some very useful SSD1B models available online, such as:
These models need some conversion, for example because partially tensors are **non contiguous** stored. To create a usable checkpoint file, follow these **easy** steps:
34
+
35
+
### Download model from Hugging Face
36
+
37
+
Download the model using Python on your computer, for example this way:
0 commit comments