Instructions to use AiArtLab/sdxs-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/sdxs-1b with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AiArtLab/sdxs-1b", dtype=torch.bfloat16, device_map="cuda") prompt = "sdxs-1b" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
1.6b
Browse files- README.md +4 -6
- media/girl.jpg +2 -2
- media/result_grid.jpg +2 -2
- samples/unet_384x704_0.jpg +2 -2
- samples/unet_416x704_0.jpg +2 -2
- samples/unet_448x704_0.jpg +2 -2
- samples/unet_480x704_0.jpg +2 -2
- samples/unet_512x704_0.jpg +2 -2
- samples/unet_544x704_0.jpg +2 -2
- samples/unet_576x704_0.jpg +2 -2
- samples/unet_608x704_0.jpg +2 -2
- samples/unet_640x704_0.jpg +2 -2
- samples/unet_672x704_0.jpg +2 -2
- samples/unet_704x384_0.jpg +2 -2
- samples/unet_704x416_0.jpg +2 -2
- samples/unet_704x448_0.jpg +2 -2
- samples/unet_704x480_0.jpg +2 -2
- samples/unet_704x512_0.jpg +2 -2
- samples/unet_704x544_0.jpg +2 -2
- samples/unet_704x576_0.jpg +2 -2
- samples/unet_704x608_0.jpg +2 -2
- samples/unet_704x640_0.jpg +2 -2
- samples/unet_704x672_0.jpg +2 -2
- samples/unet_704x704_0.jpg +2 -2
- test.ipynb +2 -2
- unet/diffusion_pytorch_model.safetensors +1 -1
README.md
CHANGED
|
@@ -5,7 +5,7 @@ datasets:
|
|
| 5 |
- CaptionEmporium/midjourney-niji-1m-llavanext
|
| 6 |
---
|
| 7 |
|
| 8 |
-
# Simple Diffusion XS
|
| 9 |
|
| 10 |
*XS Size, Excess Quality*
|
| 11 |

|
|
@@ -19,9 +19,7 @@ At AiArtLab, we strive to create a free, compact and fast model that can be trai
|
|
| 19 |
- Resolution: from 768px to 1404px, with step 64px
|
| 20 |
- Limitations: trained on small dataset ~1-2kk, focused on illustrations
|
| 21 |
|
| 22 |
-
###
|
| 23 |
-
|
| 24 |
-
Key points
|
| 25 |
|
| 26 |
- Dec 24: Started research on Linear Transformers.
|
| 27 |
- Feb 25: Started research on UNet-based diffusion models.
|
|
@@ -147,7 +145,7 @@ As a result, I focused on building a strong local benchmark for rapid, cost-effe
|
|
| 147 |
## The Evolutionary Path
|
| 148 |
The second turning point was the transition to a continuous evolutionary improvement strategy. Unfortunately, the Butterflies dataset does not allow for evaluating prompt-following or anatomical generation capabilities. As a result, the model evolved incrementally rather than through revolutionary changes. The same model, from December 2025, underwent around 10 changes, including radical architectural shifts—while always preserving the pre-trained weights. It’s remarkable how well and quickly pre-trained models adapt to changes in architecture and external factors, even radical ones (e.g., switching VAE models, text encoders, or their combinations).
|
| 149 |
In addition to saving on training costs, this approach helped maintain minimal model size—for example, adding extra transformer blocks followed by an assessment of necessity and rolling back if the changes had no significant impact.
|
| 150 |
-
## tldr;
|
| 151 |
Stop reading, start training
|
| 152 |
## The Role of Hyperparameters
|
| 153 |
One of the initial mistakes was an excessive focus on hyperparameters during training. Ironically, 80% of training speed and quality depend on the model architecture (UNet) and the quality of embeddings (VAE), while other 20% is influenced by the text encoder’s embeddings. The rest is Role of Hyperparameters. The irony here is that Adam (adamw8bit) is surprisingly forgiving of hyperparameter errors, so I won’t even list them. Default is ok.
|
|
@@ -158,7 +156,7 @@ A dataset script to convert a folder of image-text pairs into latent representat
|
|
| 158 |
A training script provided as a single monolithic file.
|
| 159 |
Additionally, there’s a script that can be pasted directly into the terminal to automatically train the model with optimized parameters.
|
| 160 |
## Training Optimization
|
| 161 |
-
All
|
| 162 |
|
| 163 |
### Train:
|
| 164 |
|
|
|
|
| 5 |
- CaptionEmporium/midjourney-niji-1m-llavanext
|
| 6 |
---
|
| 7 |
|
| 8 |
+
# Simple Diffusion XS (train in progress)
|
| 9 |
|
| 10 |
*XS Size, Excess Quality*
|
| 11 |

|
|
|
|
| 19 |
- Resolution: from 768px to 1404px, with step 64px
|
| 20 |
- Limitations: trained on small dataset ~1-2kk, focused on illustrations
|
| 21 |
|
| 22 |
+
### Key points
|
|
|
|
|
|
|
| 23 |
|
| 24 |
- Dec 24: Started research on Linear Transformers.
|
| 25 |
- Feb 25: Started research on UNet-based diffusion models.
|
|
|
|
| 145 |
## The Evolutionary Path
|
| 146 |
The second turning point was the transition to a continuous evolutionary improvement strategy. Unfortunately, the Butterflies dataset does not allow for evaluating prompt-following or anatomical generation capabilities. As a result, the model evolved incrementally rather than through revolutionary changes. The same model, from December 2025, underwent around 10 changes, including radical architectural shifts—while always preserving the pre-trained weights. It’s remarkable how well and quickly pre-trained models adapt to changes in architecture and external factors, even radical ones (e.g., switching VAE models, text encoders, or their combinations).
|
| 147 |
In addition to saving on training costs, this approach helped maintain minimal model size—for example, adding extra transformer blocks followed by an assessment of necessity and rolling back if the changes had no significant impact.
|
| 148 |
+
## tldr; Main idea
|
| 149 |
Stop reading, start training
|
| 150 |
## The Role of Hyperparameters
|
| 151 |
One of the initial mistakes was an excessive focus on hyperparameters during training. Ironically, 80% of training speed and quality depend on the model architecture (UNet) and the quality of embeddings (VAE), while other 20% is influenced by the text encoder’s embeddings. The rest is Role of Hyperparameters. The irony here is that Adam (adamw8bit) is surprisingly forgiving of hyperparameter errors, so I won’t even list them. Default is ok.
|
|
|
|
| 156 |
A training script provided as a single monolithic file.
|
| 157 |
Additionally, there’s a script that can be pasted directly into the terminal to automatically train the model with optimized parameters.
|
| 158 |
## Training Optimization
|
| 159 |
+
All training was done using the AdamW8bit optimizer, which significantly reduced training costs.
|
| 160 |
|
| 161 |
### Train:
|
| 162 |
|
media/girl.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
media/result_grid.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_384x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_416x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_448x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_480x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_512x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_544x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_576x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_608x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_672x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x384_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x416_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x448_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x480_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x512_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x544_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x576_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x608_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x672_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_704x704_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
test.ipynb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8a1f50bb6e009d6f8efb6184fd51b66f0f55b213294c796a7bd0d5df703f65a
|
| 3 |
+
size 18316400
|
unet/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3210307232
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61a1cf70b3652cf3f179005e6703b6881a3489d36c6a6b5254741d047d885c6b
|
| 3 |
size 3210307232
|