stable-diffusion.cpp/examples
Claude 9b4ff13d52
feat: apply --memory-guard to CPU backends using system RAM
The guard returned an empty sample for CPU backends, so a CPU-only run
could fill system RAM without the guard ever reacting. On the CPU, measure
system RAM instead: total minus the memory available without swapping,
plus the allocation the graph is about to make, against total physical
memory.

Under pressure the guard releases unpinned weights that can be re-read
from the model file (--params-backend disk). It never fails a graph on the
CPU, since system RAM has no managed capacity, and CPU pressure does not
suspend prefetch for GPU backends.

Expose available_ram_bytes() from backend_fit for the probe, and update
the CLI help, the public header comment and the docs.

Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2026-10-11 04:51:58 +02:00
..
cli feat: support for merging LoRA weights on model conversion (#2079) 2026-10-06 17:50:16 +08:00
common feat: apply --memory-guard to CPU backends using system RAM 2026-10-11 04:51:58 +02:00
server Merge branch 'leejet:master' into fork-pull 2026-10-09 00:43:29 +02:00
CMakeLists.txt feat: add Mage-Flow support (#1808) 2026-07-23 01:23:25 +08:00