Views
No views yet
⚠️ These are not my weights
This repository contains quantized ONNX exports of models trained by other people. I did not train them and I do not own them.
sd-turbo/derives from stabilityai/sd-turbo — © Stability AI, governed by the Stability AI licence and Acceptable Use Policy.tiny-sd/derives from segmind/tiny-sd, itself a pruned Stable Diffusion 1.5.Check the upstream licences before any use, especially commercial. My contribution is only the export, quantization and decoder swap described below. If Stability AI or Segmind object to this redistribution, contact me and I will remove it.
| AS-I (mine) | AS-IF sd-turbo | AS-IF tiny-sd | |
|---|---|---|---|
| Weights by | me | Stability AI | Segmind |
| Size | 14 MB | 1216 MB | 454 MB |
| Steps | 8 | 2 | 4 |
| Time per image | 0.19 s | 2.2 s | 5.7 s |
| Resolution | 64×64 | 512×512 | 512×512 |
| Draws | ~1250 emoji | anything | anything |

python asif_sample.py --prompt "two astronauts playing chess" --steps 2| Prompt | Result |
|---|---|
two astronauts playing chess | both astronauts, a real chessboard |
a frog running a startup | an excellent frog. No startup. |
a red car beside a blue house | red car and blue house — spatial relation held |
a cat riding a bicycle | cat and bicycle, not convincingly joined |
an apple on a wooden table | correct, and clean |
a yellow bird sitting on a tree | correct, and clean |
| Component | Precision | fp32 | after |
|---|---|---|---|
| UNet | int8 | 3.2 GB | 869 MB |
| Text encoder | int8 | 1.3 GB | 342 MB |
| VAE decoder | replaced | 189 MB | 4.9 MB |
Trap worth recording: TAESD'sscaling_factoris 1.0, so it consumes UNet-space latents directly. Dividing by SD's 0.18215 first — the move every SD decode example shows — hands it values 5.5× too large and returns psychedelic noise that reads as a broken model rather than a broken constant.
tiny-sd/ is 2.7× smaller but not
step-distilled, so it needs classifier-free guidance — two UNet passes per step.
Four of its steps is 8 passes against sd-turbo's 2, hence 2.6× slower.The build that would win does not exist off the shelf. Pruned and step-distilled — 454 MB at 2 passes — is the obvious combination and cannot be assembled: LCM-LoRA is trained against the full SD 1.5 UNet, so its tensors do not fit a pruned one (lora_Awants[64, 1280, 3, 3], the pruned model has[64, 640, 3, 3]). Pruning and step-distillation do not compose after the fact.
1git clone https://github.com/ayushmaninbox/artificial-stupidity
2cd artificial-stupidity/as-image-model
3pip install -r requirements.txt
4
5python asif_sample.py --prompt "a wizard riding a motorcycle" --tiny-vaeguidance_scale=0.0 — it is distilled without
classifier-free guidance, and the usual 7.5 produces washed-out output. Tiny-SD
is a normal SD 1.5 model and wants ~7.5.1python asif_export.py --tiny-vae # sd-turbo, ~1216 MB
2python asif_export.py --small --tiny-vae # tiny-sd, ~454 MB| artificial-stupidity-image | AS-I — 14 MB, from scratch, mine |
| artificial-stupidity | AS-F — the language model |
| artificial-stupidity-tiny | AS-0…AS-5, down to 83 KB |
sd-turbo/ and segmind/tiny-sd for
tiny-sd/. The export scripts in the GitHub repo are MIT.