Spaces:
Runtime error
Runtime error
MEOW commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,8 @@ import torch #GPU setup environment start
|
|
| 32 |
from transformers import AutoModel, AutoTokenizer
|
| 33 |
|
| 34 |
# Check if CUDA is available and set the device
|
| 35 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 36 |
-
print(f"Using device: {device}")
|
| 37 |
|
| 38 |
# Load model and tokenizer
|
| 39 |
model_name = "meta-llama/Llama-3.1-8B-Instruct"
|
|
|
|
| 32 |
from transformers import AutoModel, AutoTokenizer
|
| 33 |
|
| 34 |
# Check if CUDA is available and set the device
|
| 35 |
+
# device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 36 |
+
# print(f"Using device: {device}")
|
| 37 |
|
| 38 |
# Load model and tokenizer
|
| 39 |
model_name = "meta-llama/Llama-3.1-8B-Instruct"
|