Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ processor = AutoProcessor.from_pretrained("HuggingFaceTB/SmolVLM-Instruct")
|
|
13 |
model = AutoModelForVision2Seq.from_pretrained("HuggingFaceTB/SmolVLM-Instruct",
|
14 |
torch_dtype=torch.bfloat16,
|
15 |
#_attn_implementation="flash_attention_2"
|
16 |
-
).to("
|
17 |
|
18 |
@spaces.GPU
|
19 |
def model_inference(
|
|
|
13 |
model = AutoModelForVision2Seq.from_pretrained("HuggingFaceTB/SmolVLM-Instruct",
|
14 |
torch_dtype=torch.bfloat16,
|
15 |
#_attn_implementation="flash_attention_2"
|
16 |
+
).to("cpu")
|
17 |
|
18 |
@spaces.GPU
|
19 |
def model_inference(
|