mirror of
https://github.com/vladmandic/automatic
synced 2026-08-25 22:20:46 +02:00
b12cbcb523
Add a model section to /sdapi/v1/memory with loaded-model bytes summed per pipeline component and device, so clients can tell resident weights from offloaded ones and loop-critical components from edge ones. - walk components over parameters and buffers, dedupe shared storages, key by component name then device type - read the raw model slot so a memory poll never triggers a model load - section is exception-isolated like ram and cuda; reports an error string if the walk races a reload