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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,78 +1,80 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
pipeline_tag: text-to-image
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
- **
|
| 50 |
-
- **
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
}
|
|
|
|
|
|
|
| 78 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: text-to-image
|
| 4 |
+
datasets:
|
| 5 |
+
- CaptionEmporium/midjourney-niji-1m-llavanext
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Simple Diffusion XS
|
| 9 |
+
|
| 10 |
+
*XS Size, Excess Quality*
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
At AiArtLab, we strive to create a free, compact and fast model that can be trained on consumer graphics cards.
|
| 14 |
+
|
| 15 |
+
- Model: 0.8b parameters [unet](https://huggingface.co/CompVis/stable-diffusion-v1-4)
|
| 16 |
+
- Text encoder: [LongCLIP with 248 tokens](https://huggingface.co/zer0int/CLIP-KO-LITE-TypoAttack-Attn-Dropout-ViT-L-14)
|
| 17 |
+
- VAE: 16x16ch, Simple VAE
|
| 18 |
+
|
| 19 |
+
### Example
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
import torch
|
| 23 |
+
from diffusers import DiffusionPipeline
|
| 24 |
+
|
| 25 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 26 |
+
dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
| 27 |
+
|
| 28 |
+
pipe_id = "AiArtLab/sdxs-08b"
|
| 29 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 30 |
+
pipe_id,
|
| 31 |
+
torch_dtype=dtype,
|
| 32 |
+
trust_remote_code=True
|
| 33 |
+
).to(device)
|
| 34 |
+
|
| 35 |
+
prompt = "girl, smiling, red eyes, blue hair, white shirt"
|
| 36 |
+
negative_prompt="low quality, bad quality"
|
| 37 |
+
image = pipe(
|
| 38 |
+
prompt=prompt,
|
| 39 |
+
negative_prompt = negative_prompt,
|
| 40 |
+
).images[0]
|
| 41 |
+
|
| 42 |
+
image.show(image)
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
### Model Limitations:
|
| 46 |
+
- Limited concept coverage due to the small dataset (1kk).
|
| 47 |
+
|
| 48 |
+
## Acknowledgments
|
| 49 |
+
- **[Stan](https://t.me/Stangle)** — Key investor. Thank you for believing in us when others called it madness.
|
| 50 |
+
- **Captainsaturnus**
|
| 51 |
+
- **Love. Death. Transformers.**
|
| 52 |
+
- **TOPAPEC**
|
| 53 |
+
|
| 54 |
+
## Datasets
|
| 55 |
+
- **[CaptionEmporium](https://huggingface.co/CaptionEmporium)**
|
| 56 |
+
|
| 57 |
+
## Donations
|
| 58 |
+
|
| 59 |
+
Please contact with us if you may provide some GPU's or money on training
|
| 60 |
+
|
| 61 |
+
DOGE: DEw2DR8C7BnF8GgcrfTzUjSnGkuMeJhg83
|
| 62 |
+
|
| 63 |
+
BTC: 3JHv9Hb8kEW8zMAccdgCdZGfrHeMhH1rpN
|
| 64 |
+
|
| 65 |
+
## Contacts
|
| 66 |
+
|
| 67 |
+
[recoilme](https://t.me/recoilme) *prefered way
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
mail at aiartlab.org (slow response)
|
| 71 |
+
|
| 72 |
+
## Citation
|
| 73 |
+
```bibtex
|
| 74 |
+
@misc{sdxs,
|
| 75 |
+
title={Simple Diffusion XS},
|
| 76 |
+
author={recoilme with help of AiArtLab Team},
|
| 77 |
+
url={https://huggingface.co/AiArtLab/sdxs-08b},
|
| 78 |
+
year={2025}
|
| 79 |
+
}
|
| 80 |
```
|