mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-28 19:16:33 +00:00
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 |
||
|---|---|---|
| .. | ||
| cli | ||
| common | ||
| server | ||
| CMakeLists.txt | ||