zhengr commited on
Commit
88aa397
·
verified ·
1 Parent(s): be7d67b

Update app.py

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