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
708138c7
Commit
708138c7
authored
Feb 08, 2023
by
comfyanonymous
Browse files
Remove print.
parent
04777561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/model_management.py
comfy/model_management.py
+1
-1
No files found.
comfy/model_management.py
View file @
708138c7
...
...
@@ -84,7 +84,7 @@ def load_model_gpu(model):
device_map
=
accelerate
.
infer_auto_device_map
(
real_model
,
max_memory
=
{
0
:
"256MiB"
,
"cpu"
:
"16GiB"
})
elif
vram_state
==
LOW_VRAM
:
device_map
=
accelerate
.
infer_auto_device_map
(
real_model
,
max_memory
=
{
0
:
"{}MiB"
.
format
(
total_vram_available_mb
),
"cpu"
:
"16GiB"
})
print
(
device_map
,
"{}MiB"
.
format
(
total_vram_available_mb
))
accelerate
.
dispatch_model
(
real_model
,
device_map
=
device_map
,
main_device
=
"cuda"
)
model_accelerated
=
True
return
current_loaded_model
...
...
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