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
|
@@ -59,9 +59,7 @@ This model can be finetuned on other DocVQA datasets such as [InfoGraphVQA](http
|
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
-
## Citation
|
| 63 |
-
|
| 64 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 65 |
|
| 66 |
**BibTeX:**
|
| 67 |
|
|
@@ -74,7 +72,7 @@ This model can be finetuned on other DocVQA datasets such as [InfoGraphVQA](http
|
|
| 74 |
year = {2025},
|
| 75 |
pages = {7547-7556}
|
| 76 |
}
|
| 77 |
-
|
| 78 |
## Contact
|
| 79 |
|
| 80 |
rayane.bencharef.1@ens.etsmtl.ca
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
+
## Citation
|
|
|
|
|
|
|
| 63 |
|
| 64 |
**BibTeX:**
|
| 65 |
|
|
|
|
| 72 |
year = {2025},
|
| 73 |
pages = {7547-7556}
|
| 74 |
}
|
| 75 |
+
```
|
| 76 |
## Contact
|
| 77 |
|
| 78 |
rayane.bencharef.1@ens.etsmtl.ca
|