Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,10 @@ else:
|
|
14 |
device, dtype = "cpu", torch.float32
|
15 |
|
16 |
model_id = "vikhyatk/moondream2"
|
17 |
-
|
|
|
18 |
moondream = AutoModelForCausalLM.from_pretrained(
|
19 |
-
model_id, trust_remote_code=True, revision=
|
20 |
).to(device=device, dtype=dtype)
|
21 |
moondream.eval()
|
22 |
|
|
|
14 |
device, dtype = "cpu", torch.float32
|
15 |
|
16 |
model_id = "vikhyatk/moondream2"
|
17 |
+
revision = "2b705eea63f9bff6dae9b52c2daeb26bc10e4aeb"
|
18 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
|
19 |
moondream = AutoModelForCausalLM.from_pretrained(
|
20 |
+
model_id, trust_remote_code=True, revision=revision
|
21 |
).to(device=device, dtype=dtype)
|
22 |
moondream.eval()
|
23 |
|