Update README.md
Browse files
README.md
CHANGED
@@ -67,16 +67,15 @@ from PIL import Image
|
|
67 |
|
68 |
from colpali_engine.models import ColPali, ColPaliProcessor
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
processor = cast(ColPaliProcessor, ColPaliProcessor.from_pretrained("google/paligemma-3b-mix-448"))
|
80 |
|
81 |
# Your inputs
|
82 |
images = [
|
|
|
67 |
|
68 |
from colpali_engine.models import ColPali, ColPaliProcessor
|
69 |
|
70 |
+
model_name = "vidore/colpali-v1.2-merged"
|
71 |
+
|
72 |
+
model = ColPali.from_pretrained(
|
73 |
+
model_name,
|
74 |
+
torch_dtype=torch.bfloat16,
|
75 |
+
device_map="cuda:0", # or "mps" if on Apple Silicon
|
76 |
+
).eval()
|
77 |
+
|
78 |
+
processor = ColPaliProcessor.from_pretrained(model_name)
|
|
|
79 |
|
80 |
# Your inputs
|
81 |
images = [
|