Skip to content

Commit 09e069a

Browse files
Log the pytorch version.
1 parent 11a2ad5 commit 09e069a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

comfy/model_management.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ def get_total_memory(dev=None, torch_total_too=False):
120120
total_ram = psutil.virtual_memory().total / (1024 * 1024)
121121
logging.info("Total VRAM {:0.0f} MB, total RAM {:0.0f} MB".format(total_vram, total_ram))
122122

123+
try:
124+
logging.info("pytorch version: {}".format(torch.version.__version__))
125+
except:
126+
pass
127+
123128
try:
124129
OOM_EXCEPTION = torch.cuda.OutOfMemoryError
125130
except:

0 commit comments

Comments
 (0)