Visual Document Retrieval
Transformers
Safetensors
Vietnamese
English
Chinese
internvl_chat
feature-extraction
custom_code
Instructions to use 5CD-AI/Vintern-Embedding-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 5CD-AI/Vintern-Embedding-1B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("5CD-AI/Vintern-Embedding-1B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -133,6 +133,8 @@ model = AutoModel.from_pretrained(
|
|
| 133 |
# ==============================
|
| 134 |
# 2. Prepare Input Data
|
| 135 |
# ==============================
|
|
|
|
|
|
|
| 136 |
images = [Image.open("ex1.jpg"), Image.open("ex2.jpg")]
|
| 137 |
batch_images = processor.process_images(images)
|
| 138 |
|
|
|
|
| 133 |
# ==============================
|
| 134 |
# 2. Prepare Input Data
|
| 135 |
# ==============================
|
| 136 |
+
# !wget https://huggingface.co/5CD-AI/ColVintern-1B-v1/resolve/main/ex1.jpg
|
| 137 |
+
# !wget https://huggingface.co/5CD-AI/ColVintern-1B-v1/resolve/main/ex2.jpg
|
| 138 |
images = [Image.open("ex1.jpg"), Image.open("ex2.jpg")]
|
| 139 |
batch_images = processor.process_images(images)
|
| 140 |
|