leejet / stable-diffusion.cpp

Stable Diffusion in pure C/C++
MIT License
2.91k stars 233 forks source link

Stable Diffusion for Windows XP #227

Open SA-j00u opened 2 months ago

SA-j00u commented 2 months ago

SD goes to WinXP! I'm build 2024.02.25 version for win32 (cpu only no avx?) and it's works! and it's as slow as on x64 Win7 :D

It can load 2GB models in q8_0 mode or 2GB model + lora in q5_1 mode (maybe with /3GB boot flag it can? load bigger models but i not have it)

sd_2024_02_25_2_XP.zip (i put 7z in zip bcz github prohibits attach 7z in same time zip format doesn't support solid archives...)

in archive binaries for several targets

sd_2024_02_25_2_pentium3.exe
sd_2024_02_25_2_pentium3_flash_attn.exe
sd_2024_02_25_2_pentium4.exe
sd_2024_02_25_2_pentium4_flash_attn.exe
sd_2024_02_25_2_core2.exe
sd_2024_02_25_2_core2_flash_attn.exe
sd_2024_02_25_2_core2_x64.exe
sd_2024_02_25_2_core2_x64_flash_attn.exe
sd_2024_02_25_2_corei7.exe
sd_2024_02_25_2_corei7_flash_attn.exe
sd_2024_02_25_2_corei7_x64.exe
sd_2024_02_25_2_corei7_x64_flash_attn.exe
sd_2024_02_25_2_athlon64.exe
sd_2024_02_25_2_athlon64_flash_attn.exe

does FLASH_ATTENTION versions works i don't know (also it have addition crashes) also most of versions are not tested at all (and as-is, no any warranty etc...) so try other versions if it doesn't works x64 versions not tested too (and it's build with different compiler)

example generated on XP (win32) with lcm models from civ file41_q4_0 file11_q8_0_lcm_model_img2img_file11334412 file1441332441_q4_0_lcm_model

max resolution that i have get 512x448

last 2024.04.06 version can be build too but it doesn't load 2GB models in q8_0 mode (looks like it checks free ram?) later i'm build it too