mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-03 10:10:20 +08:00
ops: dont discard pins
Its more likely that the user will rerun their workflow and want whatever pins are inplace so remove this. pins still have to respect RAM pressure per model anyway.
This commit is contained in:
parent
26dc3a20c6
commit
5bbd5597fd
@ -131,11 +131,7 @@ def cast_bias_weight_with_vbar(s, dtype, device, bias_dtype, non_blocking, compu
|
||||
xfer_dest = cast_dest
|
||||
|
||||
pin = None
|
||||
if signature is not None:
|
||||
#If we are able to increase our load level (e.g. user reduces resolution or batch number)
|
||||
#reclaim the pin previously used for offload.
|
||||
comfy.pinned_memory.unpin_memory(s)
|
||||
elif not resident:
|
||||
if signature is None and not resident:
|
||||
#prepare a new pin
|
||||
assert comfy.pinned_memory.get_pin(s) is None
|
||||
comfy.pinned_memory.pin_memory(s)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user