Pr123 commited on
Commit
68a378e
1 Parent(s): dd17305

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ peft_model_id = "Pr123/TinyLlama-EA-Chat"
10
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
  model = AutoPeftModelForCausalLM.from_pretrained(
12
  peft_model_id,
13
- torch_dtype=torch.float16 # Keeping half precision
14
  ).to(device)
15
 
16
  tokenizer = AutoTokenizer.from_pretrained(peft_model_id)
 
10
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
  model = AutoPeftModelForCausalLM.from_pretrained(
12
  peft_model_id,
13
+ torch_dtype=torch.bfloat16
14
  ).to(device)
15
 
16
  tokenizer = AutoTokenizer.from_pretrained(peft_model_id)