Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|