update
Browse files- aimodel.py +1 -2
aimodel.py
CHANGED
@@ -18,8 +18,7 @@ class Florence:
|
|
18 |
return
|
19 |
self.model = (
|
20 |
AutoModelForCausalLM.from_pretrained(
|
21 |
-
model_id, trust_remote_code=True, torch_dtype="auto"
|
22 |
-
trust_remote_code=True
|
23 |
)
|
24 |
.eval()
|
25 |
.cuda()
|
|
|
18 |
return
|
19 |
self.model = (
|
20 |
AutoModelForCausalLM.from_pretrained(
|
21 |
+
model_id, trust_remote_code=True, torch_dtype="auto"
|
|
|
22 |
)
|
23 |
.eval()
|
24 |
.cuda()
|