Spaces:
Paused
Paused
Update vid2persona/init.py
Browse files- 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="
|
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")
|