Text Generation
Transformers
Safetensors
DIVEdoc
docvqa
distillation
VLM
document-understanding
OCR-free
custom_code
Instructions to use JayRay5/DIVE-Doc-FRD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JayRay5/DIVE-Doc-FRD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JayRay5/DIVE-Doc-FRD", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("JayRay5/DIVE-Doc-FRD", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JayRay5/DIVE-Doc-FRD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JayRay5/DIVE-Doc-FRD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JayRay5/DIVE-Doc-FRD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JayRay5/DIVE-Doc-FRD
- SGLang
How to use JayRay5/DIVE-Doc-FRD with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "JayRay5/DIVE-Doc-FRD" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JayRay5/DIVE-Doc-FRD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "JayRay5/DIVE-Doc-FRD" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JayRay5/DIVE-Doc-FRD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JayRay5/DIVE-Doc-FRD with Docker Model Runner:
docker model run hf.co/JayRay5/DIVE-Doc-FRD
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,7 +10,7 @@ DIVE-Doc is a VLM architecture built as a trade-off between end-to-end lightweig
|
|
| 10 |
Without relying on external tools such as OCR, it processes the inputs in an end-to-end way.
|
| 11 |
It takes an image document and a question as input and returns an answer. <br>
|
| 12 |
- **Repository:** [GitHub](https://github.com/JayRay5/DIVE-Doc)
|
| 13 |
-
- **Paper
|
| 14 |
|
| 15 |
|
| 16 |
## 2 Model Summary
|
|
@@ -65,26 +65,16 @@ This model can be finetuned on other DocVQA datasets such as [InfoGraphVQA](http
|
|
| 65 |
|
| 66 |
**BibTeX:**
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
## Glossary [optional]
|
| 75 |
-
|
| 76 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 77 |
-
|
| 78 |
-
[More Information Needed]
|
| 79 |
-
|
| 80 |
-
## More Information [optional]
|
| 81 |
-
|
| 82 |
-
[More Information Needed]
|
| 83 |
-
|
| 84 |
-
## Model Card Authors [optional]
|
| 85 |
-
|
| 86 |
-
[More Information Needed]
|
| 87 |
-
|
| 88 |
-
## Model Card Contact
|
| 89 |
-
|
| 90 |
-
[More Information Needed]
|
|
|
|
| 10 |
Without relying on external tools such as OCR, it processes the inputs in an end-to-end way.
|
| 11 |
It takes an image document and a question as input and returns an answer. <br>
|
| 12 |
- **Repository:** [GitHub](https://github.com/JayRay5/DIVE-Doc)
|
| 13 |
+
- **Paper:** [DIVE-Doc: Downscaling foundational Image Visual Encoder into hierarchical architecture for DocVQA](https://openaccess.thecvf.com/content/ICCV2025W/VisionDocs/html/Bencharef_DIVE-Doc_Downscaling_foundational_Image_Visual_Encoder_into_hierarchical_architecture_for_ICCVW_2025_paper.html)
|
| 14 |
|
| 15 |
|
| 16 |
## 2 Model Summary
|
|
|
|
| 65 |
|
| 66 |
**BibTeX:**
|
| 67 |
|
| 68 |
+
```bibtex
|
| 69 |
+
@inproceedings{Bencharef_2025_ICCV,
|
| 70 |
+
author = {Bencharef, Rayane and Rahiche, Abderrahmane and Cheriet, Mohamed},
|
| 71 |
+
title = {DIVE-Doc: Downscaling foundational Image Visual Encoder into hierarchical architecture for DocVQA},
|
| 72 |
+
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops},
|
| 73 |
+
month = {October},
|
| 74 |
+
year = {2025},
|
| 75 |
+
pages = {7547-7556}
|
| 76 |
+
}
|
| 77 |
|
| 78 |
+
## Contact
|
| 79 |
|
| 80 |
+
rayane.bencharef.1@ens.etsmtl.ca
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|