Spaces:
Runtime error
Runtime error
test lora load
Browse files- scripts/process_utils.py +1 -1
scripts/process_utils.py
CHANGED
@@ -52,7 +52,7 @@ def initialize(_use_local=False, use_gpu=False, use_dotenv=False):
|
|
52 |
|
53 |
def load_lora(pipeline, lora_path, alpha=0.75):
|
54 |
pipeline.load_lora_weights(lora_path)
|
55 |
-
|
56 |
|
57 |
def initialize_sotai_model():
|
58 |
global device, torch_dtype
|
|
|
52 |
|
53 |
def load_lora(pipeline, lora_path, alpha=0.75):
|
54 |
pipeline.load_lora_weights(lora_path)
|
55 |
+
pipeline.fuse_lora(lora_scale=alpha)
|
56 |
|
57 |
def initialize_sotai_model():
|
58 |
global device, torch_dtype
|