chansung commited on
Commit
7f0ed3e
1 Parent(s): fe3e540

Update vid2persona/init.py

Browse files
Files changed (1) hide show
  1. vid2persona/init.py +1 -1
vid2persona/init.py CHANGED
@@ -20,7 +20,7 @@ def init_model(model_id):
20
 
21
  tokenizer = AutoTokenizer.from_pretrained(model_id)
22
  tokenizer.use_default_system_prompt = False
23
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
24
 
25
  def auth_gcp():
26
  gcp_credentials = os.getenv("GCP_CREDENTIALS")
 
20
 
21
  tokenizer = AutoTokenizer.from_pretrained(model_id)
22
  tokenizer.use_default_system_prompt = False
23
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="cuda")
24
 
25
  def auth_gcp():
26
  gcp_credentials = os.getenv("GCP_CREDENTIALS")