mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 22:26:36 +00:00
Workaround low reserved RAM with lora
This commit is contained in:
parent
e2c6e3407e
commit
fb0ee815f7
@ -1106,7 +1106,7 @@ def generate_video(
|
||||
if len(list_mult_choices_nums ) < len(loras_choices):
|
||||
list_mult_choices_nums += [1.0] * ( len(loras_choices) - len(list_mult_choices_nums ) )
|
||||
loras_selected = [ lora for i, lora in enumerate(loras) if str(i) in loras_choices]
|
||||
pinnedLora = profile !=5 #False # # #
|
||||
pinnedLora = False #profile !=5 #False # # #
|
||||
offload.load_loras_into_model(trans, loras_selected, list_mult_choices_nums, activate_all_loras=True, preprocess_sd=preprocess_loras, pinnedLora=pinnedLora, split_linear_modules_map = None)
|
||||
errors = trans._loras_errors
|
||||
if len(errors) > 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user