Spaces:
Runtime error
Runtime error
chore: fix app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ import gradio as gr
|
|
19 |
|
20 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
21 |
import torch
|
22 |
-
device = "
|
23 |
|
24 |
model = AutoModelForCausalLM.from_pretrained(
|
25 |
"vilm/VinaLlama2-14B",
|
|
|
19 |
|
20 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
21 |
import torch
|
22 |
+
device = "cpu" # the device to load the model onto
|
23 |
|
24 |
model = AutoModelForCausalLM.from_pretrained(
|
25 |
"vilm/VinaLlama2-14B",
|