Nodes/Parametric Studio/VRAM Budget Gate (Shared GPU)
ComfyUI Node

VRAM Budget Gate (Shared GPU)

Compares device-wide used VRAM plus an estimate for the next step against a budget. On a breach it moves a torch.nn.Module to CPU, or raises if hard_stop is on; any other MODEL (such as a ModelPatcher) is passed through and the breach is only reported.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
VRAM Budget Gate (Shared GPU)
  • model
  • latent
  • model
  • latent
  • vram_usage_gb
◄max_vram_gb80.0►
◄run_idrun►
◄hard_stopfalse►
◄probe_gb-1.0►
CategoryParametric/System

Inputs (6)

NameTypeDefaultDescription
modelMODELThe model to use.
latentLATENTThe latent to work on.
max_vram_gbFLOAT80.01–512Max vram gb. From 1 to 512. Default 80.0.
run_idSTRINGrunRun id. Default run.
hard_stopoptBOOLEANfalseHard stop. Default False.
probe_gboptFLOAT-1.0-1–1024Probe gb. From -1 to 1024. Default -1.0.

Outputs (3)

NameTypeDescription
modelMODEL—
latentLATENT—
vram_usage_gbFLOAT—