Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ import spaces
|
|
10 |
#subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
11 |
|
12 |
|
13 |
-
processor = AutoProcessor.from_pretrained("HuggingFaceTB/SmolVLM-Instruct")
|
14 |
-
model = AutoModelForVision2Seq.from_pretrained("HuggingFaceTB/SmolVLM-Instruct",
|
15 |
torch_dtype=torch.bfloat16,
|
16 |
#_attn_implementation="flash_attention_2"
|
17 |
).to("cuda")
|
|
|
10 |
#subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
11 |
|
12 |
|
13 |
+
processor = AutoProcessor.from_pretrained("HuggingFaceTB/SmolVLM-Instruct-250M")
|
14 |
+
model = AutoModelForVision2Seq.from_pretrained("HuggingFaceTB/SmolVLM-Instruct-250M",
|
15 |
torch_dtype=torch.bfloat16,
|
16 |
#_attn_implementation="flash_attention_2"
|
17 |
).to("cuda")
|