Spaces:
Runtime error
Runtime error
Update space
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def trim_adapter_weights(model_path):
|
|
85 |
# if not os.path.exists(model_path):
|
86 |
# raise FileNotFoundError(f"Adapter file not found: {model_path}")
|
87 |
|
88 |
-
checkpoint = torch.load(model_path, map_location="cpu")
|
89 |
|
90 |
key_to_trim = "lm_head.lora_B.default.weight"
|
91 |
|
|
|
85 |
# if not os.path.exists(model_path):
|
86 |
# raise FileNotFoundError(f"Adapter file not found: {model_path}")
|
87 |
|
88 |
+
checkpoint = torch.load(model_path, map_location="cpu",weights_only=False)
|
89 |
|
90 |
key_to_trim = "lm_head.lora_B.default.weight"
|
91 |
|