Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ device = "cuda:0"
|
|
73 |
print("Loading model...")
|
74 |
model = AutoModelForCausalLM.from_pretrained(
|
75 |
"m-a-p/YuE-s1-7B-anneal-en-cot", # "m-a-p/YuE-s1-7B-anneal-en-icl",
|
76 |
-
torch_dtype=torch.
|
77 |
attn_implementation="flash_attention_2",
|
78 |
).to(device)
|
79 |
model.eval()
|
|
|
73 |
print("Loading model...")
|
74 |
model = AutoModelForCausalLM.from_pretrained(
|
75 |
"m-a-p/YuE-s1-7B-anneal-en-cot", # "m-a-p/YuE-s1-7B-anneal-en-icl",
|
76 |
+
torch_dtype=torch.float16,
|
77 |
attn_implementation="flash_attention_2",
|
78 |
).to(device)
|
79 |
model.eval()
|