stable-diffusion.cpp/scripts
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
..
diagnostica_termica feat(scripts): add thermal diagnostics with an Italian guide 2026-10-14 23:35:52 +02:00
build-engine.ps1 test try CPU/GPU 2026-10-08 22:47:40 +02:00
build-engine.sh test try CPU/GPU 2026-10-08 22:47:40 +02:00
build-windows-gpu.ps1 test try CPU/GPU 2026-10-08 22:47:40 +02:00
convert_fp8_scale_to_bf16.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
convert_qwen3_vl.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
convert_sefi.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
convert_yolov8_to_safetensors.py feat: add ADetailer support (#1785) 2026-07-14 23:59:11 +08:00
face_detect.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
format-code.ps1 feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
format-code.sh feat: add per-module automatic flash attention selection (#2132) 2026-10-13 22:58:45 +08:00
merge_safetensors.py chore: format code 2026-08-19 23:06:07 +08:00
package_portable.sh docs: require Visual C++ Redistributable 14.44 or newer on Windows 2026-10-12 15:54:33 +02:00
package_windows_cuda_vulkan.sh ci: add a combined Windows CUDA + Vulkan package to the release 2026-10-15 20:21:31 +02:00
pulid_extract_id.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00
remove_utf8_bom.py chore: move utility scripts under scripts (#1746) 2026-07-05 18:48:18 +08:00