Spaces:
Runtime error
Runtime error
Update space
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ def trim_adapter_weights(model_path):
|
|
82 |
if there is a mismatch with the base model.
|
83 |
"""
|
84 |
|
85 |
-
if not os.path.exists(model_path):
|
86 |
-
|
87 |
|
88 |
checkpoint = torch.load(model_path, map_location="cpu")
|
89 |
|
|
|
82 |
if there is a mismatch with the base model.
|
83 |
"""
|
84 |
|
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 |
|