stable-diffusion.cpp/docs
Claude 2e354710ce
Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude
Brings in the 20 upstream commits since 2988060 (2026-10-11): per-module
automatic flash attention (#2132), automatic direct convolution (#2134,
#2141), reclaim before trusting wrapped Vulkan iGPU memory estimates
(#2124), UTF-8 file paths on Windows (#2144, #2145), FP8 CPU crash fix
(#2140), the ggml sync to dc99877 (#2147), FLUX.3 Klein, MOSS-Image, the
MoSR upscaler, MiniMax-H3 LoRAs, Qwen Image 2.1 Turbo preset, ROCm and
MUSA Dockerfiles, documentation.

Conflicts resolved, keeping both sides:

- include/stable-diffusion.h: upstream's flash_attn_mode and
  conv_direct_mode stay right after conditioning_cache_size, so the
  layout up to there is still upstream's; memory_guard,
  disable_backend_fallback and multi_gpu follow.
- src/core/ggml_extend_backend.cpp: upstream's new cuda_compiled_arch()
  keeps asking the compute capability through sd::cuda_driver (the driver
  is looked up at run time, so the engine starts where there is no NVIDIA
  driver), not through <cuda.h>; the HIP include from upstream is kept.
- src/model_manager.cpp: the CPU memory guard and upstream's
  requires_reclamation rule are both applied: a Vulkan iGPU estimate that
  wrapped is reclaimed before it is trusted, and the guard still decides
  for the CPU backend.
- src/model_loader.cpp: includes of both sides; load_worker keeps the
  file handle pool and the open retry.
- examples/server/runtime.cpp: --degradation-cooldown check and
  upstream's u8path for the --serve-html-path check.
- docs/backend.md: the "Several GPUs" section and upstream's "Direct
  convolution" and "Flash attention" sections.

The ggml submodule moves from d25b121 to dc99877 (upstream's pin).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2026-10-18 19:51:51 +02:00
..
adetailer.md feat: add ADetailer support (#1785) 2026-07-14 23:59:11 +08:00
agenti_indipendenti.md docs: add a guide for independent agents next to the engine 2026-10-14 23:36:14 +02:00
anima.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
animatediff.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
backend.md Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
backend_probe.md fix: benchmark Vulkan direct convolution in auto mode (#2141) 2026-10-15 23:08:30 +08:00
boogu_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
build.md Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
caching.md feat: add configurable conditioning cache for all models (#2034) 2026-09-23 22:25:42 +08:00
chroma.md refactor: move model-specific args into model parsers (#1757) 2026-07-06 23:13:18 +08:00
chroma_radiance.md docs: unify model path 2026-07-05 18:31:59 +08:00
convivenza_applicazioni.md docs: la guida per una scheda vista da due backend e per i due avvisi del log 2026-10-17 17:57:39 +02:00
cuda_e_vulkan_stessa_scheda.md docs: la guida per una scheda vista da due backend e per i due avvisi del log 2026-10-17 17:57:39 +02:00
distilled_sd.md feat: SDXS-09 support and update doc (#1356) 2026-04-17 01:11:44 +08:00
docker.md Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
edit.md feat: add FLUX.3 Image Klein and Klein Base support (#2143) 2026-10-16 02:42:07 +08:00
ernie_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
esrgan.md feat: add MoSR upscaler support (#2128) 2026-10-12 22:38:38 +08:00
flux.md docs: unify model path 2026-07-05 18:31:59 +08:00
flux2.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
flux3.md docs: add flux3 gguf links 2026-10-18 18:12:17 +08:00
hidream_o1_image.md docs: unify model path 2026-07-05 18:31:59 +08:00
hipBLAS_on_Windows.md ci: update ROCm Windows builds (#1282) 2026-05-16 20:25:38 +08:00
hunyuan_video.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
ideogram4.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
image_preprocessing.md feat: add configurable image input preprocessing (#2028) 2026-09-23 02:12:49 +08:00
imatrix.md feat: add imatrix support (#633) 2026-07-01 23:26:37 +08:00
int8_convrot.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
integrazione_progetti.md docs: la guida per una scheda vista da due backend e per i due avvisi del log 2026-10-17 17:57:39 +02:00
ip_adapter.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
iris.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
kontext.md docs: unify model path 2026-07-05 18:31:59 +08:00
krea2.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
lcm.md feat: simple openai image generation api compatiple server (#1037) 2025-12-13 13:53:21 +08:00
lens.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
lingbot_video.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
llada_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
longcat_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
lora.md feat: simple openai image generation api compatiple server (#1037) 2025-12-13 13:53:21 +08:00
ltx2.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
mage_flow.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
ming_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
minimax_h3.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
minit2i.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
model_config.md feat: add verbose logging and log-level selection (#1941) 2026-09-06 23:14:03 +08:00
moss_image.md docs: update MOSS-Image docs 2026-10-18 16:22:31 +08:00
ovis_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
performance.md Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
photo_maker.md feat: simple openai image generation api compatiple server (#1037) 2025-12-13 13:53:21 +08:00
pid.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
pixart.md feat: add PixArt model family support (#2047) 2026-09-25 18:18:55 +08:00
pulid.md chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
quantization_and_gguf.md feat: simple openai image generation api compatiple server (#1037) 2025-12-13 13:53:21 +08:00
qwen_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
qwen_image_2.1.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
qwen_image_edit.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
rpc.md docs: reflect GGML_MAX_NAME value change in rpc docs (and in ggml_extend assert) (#1950) 2026-09-10 23:55:02 +08:00
sage_attention.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
sd.md refactor: unify runner lifecycles and weight residency (#1940) 2026-09-06 22:30:45 +08:00
sd3.md feat: simple openai image generation api compatiple server (#1037) 2025-12-13 13:53:21 +08:00
sefi_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
sensenova_u1.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
studio_testo_a_diffusione.md docs: explain how an AI assistant can use the engine as a tool 2026-10-14 01:03:42 +02:00
taesd.md feat: add TAEQI2.1 support for Qwen Image 2.1 (#2123) 2026-10-11 00:01:18 +08:00
tokenizers.md refactor: require external Gemma 2 and GPT-OSS tokenizers (#1974) 2026-09-15 01:25:13 +08:00
troubleshooting.md Merge upstream/master (leejet/stable-diffusion.cpp b13a482) into fix_to_claude 2026-10-18 19:51:51 +02:00
wan.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
z_image.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
z_image_l2p.md feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00