Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
|
20 |
models = {
|
21 |
# 'microsoft/Florence-2-large-ft': AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-large-ft', trust_remote_code=True).to(device).eval(),
|
22 |
# 'microsoft/Florence-2-large': AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-large', trust_remote_code=True).to(device).eval(),
|
23 |
-
'microsoft/Florence-2-base-ft': AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base-ft', trust_remote_code=True).to(device).eval(),
|
24 |
-
'microsoft/Florence-2-base': AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-base", torch_dtype=torch_dtype, trust_remote_code=True
|
25 |
}
|
26 |
|
27 |
processors = {
|
|
|
20 |
models = {
|
21 |
# 'microsoft/Florence-2-large-ft': AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-large-ft', trust_remote_code=True).to(device).eval(),
|
22 |
# 'microsoft/Florence-2-large': AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-large', trust_remote_code=True).to(device).eval(),
|
23 |
+
'microsoft/Florence-2-base-ft': AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base-ft', trust_remote_code=True, attn_implementation="eager").to(device).eval(),
|
24 |
+
'microsoft/Florence-2-base': AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-base", torch_dtype=torch_dtype, trust_remote_code=True, attn_implementation="eager").to(device).eval()
|
25 |
}
|
26 |
|
27 |
processors = {
|