gokaygokay
commited on
Commit
•
f741f12
1
Parent(s):
1082928
Update README.md
Browse files
README.md
CHANGED
@@ -18,10 +18,10 @@ from PIL import Image
|
|
18 |
|
19 |
DEVICE = "cuda"
|
20 |
DTYPE = torch.float32 if DEVICE == "cpu" else torch.float16 # CPU doesn't support float16
|
21 |
-
|
22 |
-
tokenizer = AutoTokenizer.from_pretrained("gokaygokay/moondream-prompt")
|
23 |
moondream = AutoModelForCausalLM.from_pretrained("gokaygokay/moondream-prompt",trust_remote_code=True,
|
24 |
-
torch_dtype=DTYPE, device_map={"": DEVICE})
|
25 |
moondream.eval()
|
26 |
|
27 |
image_path = "<image_path>"
|
|
|
18 |
|
19 |
DEVICE = "cuda"
|
20 |
DTYPE = torch.float32 if DEVICE == "cpu" else torch.float16 # CPU doesn't support float16
|
21 |
+
revision = "1082928d0aa39290a31a92f632ca670458eda512"
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained("gokaygokay/moondream-prompt", revision=revision)
|
23 |
moondream = AutoModelForCausalLM.from_pretrained("gokaygokay/moondream-prompt",trust_remote_code=True,
|
24 |
+
torch_dtype=DTYPE, device_map={"": DEVICE}, revision=revision)
|
25 |
moondream.eval()
|
26 |
|
27 |
image_path = "<image_path>"
|