Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +15,9 @@ revision = "2024-05-20"
|
|
| 15 |
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
|
| 16 |
moondream = AutoModelForCausalLM.from_pretrained(
|
| 17 |
model_id, trust_remote_code=True, revision=revision,
|
| 18 |
-
torch_dtype=torch.bfloat16, device_map={"": "cuda"},
|
| 19 |
-
|
| 20 |
-
attn_implementation="flash_attention_2"
|
| 21 |
)
|
| 22 |
moondream.eval()
|
| 23 |
|
|
|
|
| 15 |
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
|
| 16 |
moondream = AutoModelForCausalLM.from_pretrained(
|
| 17 |
model_id, trust_remote_code=True, revision=revision,
|
| 18 |
+
# torch_dtype=torch.bfloat16, device_map={"": "cuda"},
|
| 19 |
+
torch_dtype=torch.float32, device_map="cpu"
|
| 20 |
+
# attn_implementation="flash_attention_2"
|
| 21 |
)
|
| 22 |
moondream.eval()
|
| 23 |
|