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
5c38958e
"vscode:/vscode.git/clone" did not exist on "3fbd0abc5fd1ffc1b74eaae875a22c68fe4e2d5e"
Commit
5c38958e
authored
Jun 01, 2023
by
comfyanonymous
Browse files
Tweak lowvram model memory so it's closer to what it was before.
parent
94680732
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 @
5c38958e
...
...
@@ -207,7 +207,7 @@ def load_model_gpu(model):
if
lowvram_available
and
(
vram_set_state
==
VRAMState
.
LOW_VRAM
or
vram_set_state
==
VRAMState
.
NORMAL_VRAM
):
model_size
=
model
.
model_size
()
current_free_mem
=
get_free_memory
(
torch_dev
)
lowvram_model_memory
=
int
(
max
(
256
*
(
1024
*
1024
),
(
current_free_mem
-
1024
*
(
1024
*
1024
))
/
1.
2
))
lowvram_model_memory
=
int
(
max
(
256
*
(
1024
*
1024
),
(
current_free_mem
-
1024
*
(
1024
*
1024
))
/
1.
3
))
if
model_size
>
(
current_free_mem
-
(
512
*
1024
*
1024
)):
#only switch to lowvram if really necessary
vram_set_state
=
VRAMState
.
LOW_VRAM
...
...
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