Priyanka6 commited on
Commit
5277acd
Β·
1 Parent(s): eb72a06

Update space

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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