Nodes/MD Nodes/MD: GPU Temp Protect
ComfyUI Node

MD: GPU Temp Protect

A ComfyUI node in MD_Nodes/Utility with 19 inputs and 5 outputs.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: GPU Temp Protect
  • latent_in
  • image_in
  • audio_in
  • pass_through_generic
  • latent_out
  • image_out
  • audio_out
  • passthrough_generic_out
  • temp_status_string
enabledTrue
gpu_id0
sleep_temp79
wake_temp65
min_interval5
sleep_time5.0
max_sleep_time180
print_enabledTrue
show_all_gpusFalse
monitor_memoryTrue
show_statsFalse
cooling_profilebalanced
adaptive_coolingTrue
log_enabledFalse
debug_mode0 - Silent
CategoryMD_Nodes/Utility

Inputs (19)

NameTypeDefaultDescription
enabledCOMBOTrueENABLE PROTECTION • Purpose: Master switch for hardware protection logic. ⭐ Recommended: True
gpu_idINT00–15GPU ID • Purpose: Target specific GPU via nvidia-smi indexing. • Range: 0 to 15. ⭐ Recommended: 0 for single-GPU systems.
sleep_tempINT7940–110SLEEP THRESHOLD • Purpose: Temperature (°C) that triggers a queue pause. • Trade-offs: Lower values protect hardware but interrupt renders more often. ⭐ Recommended: 79
wake_tempINT6530–100WAKE THRESHOLD • Purpose: Temperature (°C) at which the queue resumes. • Note: Must be lower than sleep_temp. ⭐ Recommended: 65
min_intervalINT51–300CHECK INTERVAL • Purpose: Minimum seconds between temperature checks. • Trade-offs: Frequent checks increase CPU overhead slightly. ⭐ Recommended: 5
sleep_timeFLOAT5.00.5–60COOLING DURATION • Purpose: Base duration for each cooling sleep cycle (s). ⭐ Recommended: 5.0
max_sleep_timeINT1800–3600MAX COOLING TIME • Purpose: Force resume after this duration (s), even if still hot. • Note: Prevents permanent workflow lockups. ⭐ Recommended: 180
latent_inoptLATENTPASS-THROUGH (LATENT) • Connect LATENT here to enforce execution order.
image_inoptIMAGEPASS-THROUGH (IMAGE) • Connect IMAGE here to enforce execution order.
audio_inoptAUDIOPASS-THROUGH (AUDIO) • Connect AUDIO here to enforce execution order.
pass_through_genericopt*PASS-THROUGH (GENERIC) • Connect any other data type here to enforce order.
print_enabledoptCOMBOTruePRINT TO CONSOLE • Purpose: Show status messages in ComfyUI console.
show_all_gpusoptCOMBOFalseSHOW ALL GPUS • Purpose: List temps for all detected cards in console.
monitor_memoryoptCOMBOTrueMONITOR VRAM • Purpose: Show VRAM usage stats in console.
show_statsoptCOMBOFalseSHOW STATS • Purpose: Print session summary after cooling cycles.
cooling_profileoptCOMBObalancedCOOLING PROFILE • Purpose: Adjusts sleep cycle aggressiveness. • Balanced: Standard behavior. • Aggressive: Faster checks (0.5x sleep). • Conservative: Slower checks (2.0x sleep).
adaptive_coolingoptCOMBOTrueADAPTIVE COOLING • Purpose: Adjust sleep time based on temp trend. • Note: Cooling fast? Sleep less. Cooling slow? Sleep more.
log_enabledoptCOMBOFalseCSV LOGGING • Purpose: Save temp history to /gpu_temp_logs directory.
debug_modeoptCOMBO0 - SilentLOGGING VERBOSITY • Controls hardware I/O profiling display.

Outputs (5)

NameTypeDescription
latent_outLATENT
image_outIMAGE
audio_outAUDIO
passthrough_generic_out*
temp_status_stringSTRING