srimanth-d
commited on
Update modeling_got.py
Browse files- modeling_got.py +1 -1
modeling_got.py
CHANGED
@@ -18,7 +18,7 @@ DEFAULT_IMAGE_TOKEN = "<image>"
|
|
18 |
DEFAULT_IMAGE_PATCH_TOKEN = '<imgpad>'
|
19 |
DEFAULT_IM_START_TOKEN = '<img>'
|
20 |
DEFAULT_IM_END_TOKEN = '</img>'
|
21 |
-
device = "
|
22 |
print("Using device ",device)
|
23 |
|
24 |
from enum import auto, Enum
|
|
|
18 |
DEFAULT_IMAGE_PATCH_TOKEN = '<imgpad>'
|
19 |
DEFAULT_IM_START_TOKEN = '<img>'
|
20 |
DEFAULT_IM_END_TOKEN = '</img>'
|
21 |
+
device = "cpu"#"cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|
22 |
print("Using device ",device)
|
23 |
|
24 |
from enum import auto, Enum
|