Update app.py
Browse files
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.
|
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()
|