AlexTransformer commited on
Commit
7ed47f4
·
verified ·
1 Parent(s): 03f719a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
  model = AutoModelForCausalLM.from_pretrained(
14
  model_name,
15
  trust_remote_code=True,
16
- torch_dtype=torch.bfloat16
17
  ).to(device)
18
 
19
  embedding_layer = model.get_input_embeddings()
 
13
  model = AutoModelForCausalLM.from_pretrained(
14
  model_name,
15
  trust_remote_code=True,
16
+ torch_dtype=torch.float32
17
  ).to(device)
18
 
19
  embedding_layer = model.get_input_embeddings()