system_stats
Check live ComfyUI VRAM per device and system RAM before heavy runs. If VRAM is short, free memory and re-check. Read-only and safe to poll.
Instructions
Read the live local ComfyUI's VRAM per device and system RAM.
Wraps comfy system-stats (ComfyUI's own GET /system_stats).
Forwarded near-verbatim: a devices list (per-device
vram_free/vram_total bytes) plus a system dict
(ram_free/ram_total, but also argv — ComfyUI's full launch
command line, secrets and all, if any were passed on it).
Call BEFORE a heavy run: if vram_free is short, call free_memory
and re-check. Read-only, safe to poll. Requires a running ComfyUI —
raises server_not_running otherwise.
NOT diverted by COMFYUI_URL/COMFYUI_HOST like the run/job tools —
describes whichever ComfyUI comfy-cli itself targets. When one is set, a
comfy_target_note names it; settle whether that host is THIS machine
(routing rule at the top of this module) before gating a run on these
numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||