Instructions to use AiArtLab/ra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/ra 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/ra", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
switch the repo to the sdxs-VAE branch: drop old 652k body and f8c32 VAE
Browse files
transformer/config.json
DELETED
|
@@ -1,77 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_class_name": "UDiT",
|
| 3 |
-
"format": "udm/v1",
|
| 4 |
-
"storage_dtype": "float32",
|
| 5 |
-
"latent_channels": 32,
|
| 6 |
-
"text_dim": 768,
|
| 7 |
-
"body": {
|
| 8 |
-
"kind": "пирамидальный U: ширина растёт к низу",
|
| 9 |
-
"widths": [
|
| 10 |
-
192,
|
| 11 |
-
512,
|
| 12 |
-
1024,
|
| 13 |
-
1536
|
| 14 |
-
],
|
| 15 |
-
"heads": [
|
| 16 |
-
6,
|
| 17 |
-
8,
|
| 18 |
-
8,
|
| 19 |
-
8
|
| 20 |
-
],
|
| 21 |
-
"blocks": {
|
| 22 |
-
"e0": 6,
|
| 23 |
-
"e0x": 1,
|
| 24 |
-
"d0x": 1,
|
| 25 |
-
"e1": 5,
|
| 26 |
-
"e2": 5,
|
| 27 |
-
"e3": 4,
|
| 28 |
-
"d2": 4,
|
| 29 |
-
"d1": 4,
|
| 30 |
-
"d0": 4
|
| 31 |
-
},
|
| 32 |
-
"levels": [
|
| 33 |
-
{
|
| 34 |
-
"level": 0,
|
| 35 |
-
"tokens": "÷1",
|
| 36 |
-
"width": 192,
|
| 37 |
-
"blocks": "conv 6 enc / 4 dec + 2 self-attn на сторону"
|
| 38 |
-
},
|
| 39 |
-
{
|
| 40 |
-
"level": 1,
|
| 41 |
-
"tokens": "÷2",
|
| 42 |
-
"width": 512,
|
| 43 |
-
"blocks": "attn 5 enc / 4 dec"
|
| 44 |
-
},
|
| 45 |
-
{
|
| 46 |
-
"level": 2,
|
| 47 |
-
"tokens": "÷4",
|
| 48 |
-
"width": 1024,
|
| 49 |
-
"blocks": "attn 5 enc / 4 dec"
|
| 50 |
-
},
|
| 51 |
-
{
|
| 52 |
-
"level": 3,
|
| 53 |
-
"tokens": "÷8",
|
| 54 |
-
"width": 1536,
|
| 55 |
-
"blocks": "attn 4 (боттлнек)"
|
| 56 |
-
}
|
| 57 |
-
],
|
| 58 |
-
"skips": "аддитивные (SD-стиль): e0/e1/e2 прибавляются в декодере",
|
| 59 |
-
"down": "mean-pool 2x + Linear",
|
| 60 |
-
"up": "Linear + nearest 2x",
|
| 61 |
-
"positions": {
|
| 62 |
-
"rope": {
|
| 63 |
-
"kind": "2d",
|
| 64 |
-
"base": 100,
|
| 65 |
-
"phase": "в латентных пикселях на каждом уровне"
|
| 66 |
-
},
|
| 67 |
-
"absolute": {
|
| 68 |
-
"kind": "2d sincos",
|
| 69 |
-
"dim": 64,
|
| 70 |
-
"into": "zero-init Linear(64 -> width) к выходу stem, в паре с RoPE"
|
| 71 |
-
}
|
| 72 |
-
},
|
| 73 |
-
"text": "кросс-внимание на всех уровнях",
|
| 74 |
-
"parametrization": "x0 латента",
|
| 75 |
-
"params": 238.56
|
| 76 |
-
}
|
| 77 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transformer/diffusion_pytorch_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:811351a1ab7c334fb11c7733c97233a31736e082b2bb23a75dfdbaba92b90baa
|
| 3 |
-
size 545003044
|
|
|
|
|
|
|
|
|
|
|
|
vae/model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a484ad128d0837630dd16248af9b2265d2721d7434dc696bf7451fcbf1809665
|
| 3 |
-
size 184623110
|
|
|
|
|
|
|
|
|
|
|
|