KingNish commited on
Commit
98e6e29
·
verified ·
1 Parent(s): fd94d7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.bfloat16,
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()