SreyanG-NVIDIA commited on
Commit
377af38
·
verified ·
1 Parent(s): e110d57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ non_lora_trainables = torch.load(
26
  non_lora_trainables = {
27
  (k[6:] if k.startswith("model.") else k): v for k, v in non_lora_trainables.items()
28
  }
29
- model.load_state_dict(non_lora_trainables, strict=False)
30
  model_think = PeftModel.from_pretrained(
31
  model_single,
32
  MODEL_BASE_THINK,
 
26
  non_lora_trainables = {
27
  (k[6:] if k.startswith("model.") else k): v for k, v in non_lora_trainables.items()
28
  }
29
+ model_single.load_state_dict(non_lora_trainables, strict=False)
30
  model_think = PeftModel.from_pretrained(
31
  model_single,
32
  MODEL_BASE_THINK,