srimanth-d commited on
Commit
8e9b71a
·
verified ·
1 Parent(s): 4a76e0f

Update modeling_got.py

Browse files
Files changed (1) hide show
  1. 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 = "mps"#"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
 
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