Skip to content
Python

Workaround low reserved RAM with lora

DeepBeepMeepfb0ee815f7b1
diff --git a/gradio_server.py b/gradio_server.py
index 6cb640b..e790bd1 100644
--- a/gradio_server.py
+++ b/gradio_server.py
@@ -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: