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
|
@@ -13,7 +13,8 @@ DIVE-Doc is a VLM architecture built as a trade-off between end-to-end lightweig
|
|
| 13 |
Without relying on external tools such as OCR, it processes the inputs in an end-to-end way.
|
| 14 |
It takes an image document and a question as input and returns an answer. <br>
|
| 15 |
- **Repository:** [GitHub](https://github.com/JayRay5/DIVE-Doc)
|
| 16 |
-
- **Paper (Spotlight/Best Paper Award VisionDocs@ICCV2025):**
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
## 2 Model Summary
|
|
|
|
| 13 |
Without relying on external tools such as OCR, it processes the inputs in an end-to-end way.
|
| 14 |
It takes an image document and a question as input and returns an answer. <br>
|
| 15 |
- **Repository:** [GitHub](https://github.com/JayRay5/DIVE-Doc)
|
| 16 |
+
- **Paper (Spotlight/Best Paper Award VisionDocs@ICCV2025):** <br>
|
| 17 |
+
[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)
|
| 18 |
|
| 19 |
|
| 20 |
## 2 Model Summary
|