Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
e62701c
1
Parent(s):
6172e67
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import numpy as np
|
|
16 |
import subprocess
|
17 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
18 |
|
19 |
-
model_id = 'microsoft/Florence-2-large'
|
20 |
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).to("cuda").eval()
|
21 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
22 |
|
|
|
16 |
import subprocess
|
17 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
18 |
|
19 |
+
model_id = 'microsoft/Florence-2-large-ft'
|
20 |
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).to("cuda").eval()
|
21 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
22 |
|