Update app.py
Browse files
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 |
|