Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|
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 |
|