Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 3 |
import torch
|
| 4 |
from accelerate import Accelerator
|
| 5 |
|
| 6 |
-
# Check if GPU is available for better
|
| 7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 8 |
print(f"Using device: {device}")
|
| 9 |
|
|
|
|
| 3 |
import torch
|
| 4 |
from accelerate import Accelerator
|
| 5 |
|
| 6 |
+
# Check if GPU is available for better performancee
|
| 7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 8 |
print(f"Using device: {device}")
|
| 9 |
|