mikeee commited on
Commit
d9a1b97
1 Parent(s): 24eea50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ has_cuda = torch.cuda.is_available()
32
  if has_cuda:
33
  model = AutoModel.from_pretrained(model_name, trust_remote_code=True).cuda() # 3.92G
34
  else:
35
- model = AutoModel.from_pretrained(model_name, trust_remote_code=True).half().float() # .float()
36
 
37
  model = model.eval()
38
 
 
32
  if has_cuda:
33
  model = AutoModel.from_pretrained(model_name, trust_remote_code=True).cuda() # 3.92G
34
  else:
35
+ model = AutoModel.from_pretrained(model_name, trust_remote_code=True).half() # .float() .half().float()
36
 
37
  model = model.eval()
38