Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ streamer = TextStreamer(tokenizer)
|
|
32 |
|
33 |
model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, device_map="cuda")
|
34 |
model = PeftModel.from_pretrained(model, peft_model)
|
|
|
35 |
|
36 |
model = model.eval()
|
37 |
|
|
|
32 |
|
33 |
model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, device_map="cuda")
|
34 |
model = PeftModel.from_pretrained(model, peft_model)
|
35 |
+
model.to(device)
|
36 |
|
37 |
model = model.eval()
|
38 |
|