robinhad commited on
Commit
5d9b451
·
verified ·
1 Parent(s): d6b4766

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ model = LlamaForCausalLM.from_pretrained(
26
  quantization_config=quant_config
27
  )
28
 
29
- model = PeftModel.from_pretrained(model, lora_name)
30
 
31
  model = model.to("cuda")
32
 
 
26
  quantization_config=quant_config
27
  )
28
 
29
+ model = PeftModel.from_pretrained(model, lora_name, torch_device="cpu")
30
 
31
  model = model.to("cuda")
32