Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def init():
|
|
18 |
model_id = "Qwen/Qwen2-0.5B-Instruct"
|
19 |
|
20 |
device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
-
device = "cuda"
|
22 |
dtype = torch.bfloat16
|
23 |
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=huggingface_token)
|
|
|
18 |
model_id = "Qwen/Qwen2-0.5B-Instruct"
|
19 |
|
20 |
device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
+
#device = "cuda"
|
22 |
dtype = torch.bfloat16
|
23 |
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=huggingface_token)
|