Instructions to use vidore/colpali with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ColPali
How to use vidore/colpali with ColPali:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -68,7 +68,7 @@ def main() -> None:
|
|
| 68 |
|
| 69 |
# Load model
|
| 70 |
model_name = "vidore/colpali"
|
| 71 |
-
model = ColPali.from_pretrained("
|
| 72 |
model.load_adapter(model_name)
|
| 73 |
processor = AutoProcessor.from_pretrained(model_name)
|
| 74 |
|
|
|
|
| 68 |
|
| 69 |
# Load model
|
| 70 |
model_name = "vidore/colpali"
|
| 71 |
+
model = ColPali.from_pretrained("vidore/colpaligemma-3b-mix-448-base", torch_dtype=torch.bfloat16, device_map="cuda").eval()
|
| 72 |
model.load_adapter(model_name)
|
| 73 |
processor = AutoProcessor.from_pretrained(model_name)
|
| 74 |
|