Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ model_id = "vikhyatk/moondream2"
|
|
14 |
revision = "2024-05-20"
|
15 |
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
|
16 |
moondream = AutoModelForCausalLM.from_pretrained(
|
17 |
-
|
18 |
torch_dtype=torch.bfloat16, device_map={"": "cuda"},
|
19 |
attn_implementation="flash_attention_2"
|
20 |
)
|
|
|
14 |
revision = "2024-05-20"
|
15 |
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
|
16 |
moondream = AutoModelForCausalLM.from_pretrained(
|
17 |
+
"Yakshaving/moondream-paint", trust_remote_code=True,
|
18 |
torch_dtype=torch.bfloat16, device_map={"": "cuda"},
|
19 |
attn_implementation="flash_attention_2"
|
20 |
)
|