Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -57,10 +57,10 @@ def initialize_model():
|
|
57 |
token=token,
|
58 |
device_map="cuda"
|
59 |
)
|
60 |
-
if torch.cuda.is_available():
|
61 |
-
|
62 |
-
else:
|
63 |
-
|
64 |
|
65 |
return model, tokenizer
|
66 |
|
|
|
57 |
token=token,
|
58 |
device_map="cuda"
|
59 |
)
|
60 |
+
# if torch.cuda.is_available():
|
61 |
+
# model.device = "cuda"
|
62 |
+
# else:
|
63 |
+
# print("CUDA is not available")
|
64 |
|
65 |
return model, tokenizer
|
66 |
|