Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
09e069ae
"docs/vscode:/vscode.git/clone" did not exist on "13994b2d3fbb536044ae1d4befb8102bfa6424ec"
Commit
09e069ae
authored
May 20, 2024
by
comfyanonymous
Browse files
Log the pytorch version.
parent
11a2ad51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
comfy/model_management.py
comfy/model_management.py
+5
-0
No files found.
comfy/model_management.py
View file @
09e069ae
...
@@ -120,6 +120,11 @@ total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
...
@@ -120,6 +120,11 @@ total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
total_ram
=
psutil
.
virtual_memory
().
total
/
(
1024
*
1024
)
total_ram
=
psutil
.
virtual_memory
().
total
/
(
1024
*
1024
)
logging
.
info
(
"Total VRAM {:0.0f} MB, total RAM {:0.0f} MB"
.
format
(
total_vram
,
total_ram
))
logging
.
info
(
"Total VRAM {:0.0f} MB, total RAM {:0.0f} MB"
.
format
(
total_vram
,
total_ram
))
try
:
logging
.
info
(
"pytorch version: {}"
.
format
(
torch
.
version
.
__version__
))
except
:
pass
try
:
try
:
OOM_EXCEPTION
=
torch
.
cuda
.
OutOfMemoryError
OOM_EXCEPTION
=
torch
.
cuda
.
OutOfMemoryError
except
:
except
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment