Image-Text-to-Text
Safetensors
Transformers
English
Chinese
multilingual
dots_ocr
text-generation
image-to-text
ocr
document-parse
layout
table
formula
custom_code
conversational
Eval Results
Instructions to use rednote-hilab/dots.ocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rednote-hilab/dots.ocr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="rednote-hilab/dots.ocr", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("rednote-hilab/dots.ocr", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rednote-hilab/dots.ocr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rednote-hilab/dots.ocr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rednote-hilab/dots.ocr", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/rednote-hilab/dots.ocr
- SGLang
How to use rednote-hilab/dots.ocr 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 "rednote-hilab/dots.ocr" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rednote-hilab/dots.ocr", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "rednote-hilab/dots.ocr" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rednote-hilab/dots.ocr", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use rednote-hilab/dots.ocr with Docker Model Runner:
docker model run hf.co/rednote-hilab/dots.ocr
Add OlmOCRBench evaluation results
#45
by nielsr HF Staff - opened
.eval_results/olmocrbench.yaml
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: allenai/olmOCR-bench
|
| 3 |
+
task_id: overall
|
| 4 |
+
value: 79.1
|
| 5 |
+
source:
|
| 6 |
+
url: https://huggingface.co/papers/2512.02498
|
| 7 |
+
name: dots.ocr technical report
|
| 8 |
+
user: nielsr
|
| 9 |
+
- dataset:
|
| 10 |
+
id: allenai/olmOCR-bench
|
| 11 |
+
task_id: arxiv_math
|
| 12 |
+
value: 82.1
|
| 13 |
+
source:
|
| 14 |
+
url: https://huggingface.co/papers/2512.02498
|
| 15 |
+
name: dots.ocr technical report
|
| 16 |
+
user: nielsr
|
| 17 |
+
- dataset:
|
| 18 |
+
id: allenai/olmOCR-bench
|
| 19 |
+
task_id: old_scans_math
|
| 20 |
+
value: 64.2
|
| 21 |
+
source:
|
| 22 |
+
url: https://huggingface.co/papers/2512.02498
|
| 23 |
+
name: dots.ocr technical report
|
| 24 |
+
user: nielsr
|
| 25 |
+
- dataset:
|
| 26 |
+
id: allenai/olmOCR-bench
|
| 27 |
+
task_id: table_tests
|
| 28 |
+
value: 88.3
|
| 29 |
+
source:
|
| 30 |
+
url: https://huggingface.co/papers/2512.02498
|
| 31 |
+
name: dots.ocr technical report
|
| 32 |
+
user: nielsr
|
| 33 |
+
- dataset:
|
| 34 |
+
id: allenai/olmOCR-bench
|
| 35 |
+
task_id: old_scans
|
| 36 |
+
value: 40.9
|
| 37 |
+
source:
|
| 38 |
+
url: https://huggingface.co/papers/2512.02498
|
| 39 |
+
name: dots.ocr technical report
|
| 40 |
+
user: nielsr
|
| 41 |
+
- dataset:
|
| 42 |
+
id: allenai/olmOCR-bench
|
| 43 |
+
task_id: headers_footers
|
| 44 |
+
value: 94.1
|
| 45 |
+
source:
|
| 46 |
+
url: https://huggingface.co/papers/2512.02498
|
| 47 |
+
name: dots.ocr technical report
|
| 48 |
+
user: nielsr
|
| 49 |
+
- dataset:
|
| 50 |
+
id: allenai/olmOCR-bench
|
| 51 |
+
task_id: multi_column
|
| 52 |
+
value: 82.4
|
| 53 |
+
source:
|
| 54 |
+
url: https://huggingface.co/papers/2512.02498
|
| 55 |
+
name: dots.ocr technical report
|
| 56 |
+
user: nielsr
|
| 57 |
+
- dataset:
|
| 58 |
+
id: allenai/olmOCR-bench
|
| 59 |
+
task_id: long_tiny_text
|
| 60 |
+
value: 81.2
|
| 61 |
+
source:
|
| 62 |
+
url: https://huggingface.co/papers/2512.02498
|
| 63 |
+
name: dots.ocr technical report
|
| 64 |
+
user: nielsr
|