yuhuili commited on
Commit
18a3529
1 Parent(s): 3ede498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -277,6 +277,7 @@ model = LlamaForCausalLM.from_pretrained(
277
  load_in_8bit=args.load_in_8bit,
278
  device_map="auto",
279
  )
 
280
  model.eval()
281
  tokenizer=AutoTokenizer.from_pretrained(args.base_model_path)
282
  warmup(model)
 
277
  load_in_8bit=args.load_in_8bit,
278
  device_map="auto",
279
  )
280
+ model.cuda()
281
  model.eval()
282
  tokenizer=AutoTokenizer.from_pretrained(args.base_model_path)
283
  warmup(model)