Image-Text-to-Text
Safetensors
Transformers
English
Chinese
multilingual
dots_mocr
dots_ocr
text-generation
image-to-text
ocr
document-parse
layout
table
formula
custom_code
conversational
Eval Results
Instructions to use rednote-hilab/dots.mocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rednote-hilab/dots.mocr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="rednote-hilab/dots.mocr", 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.mocr", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use rednote-hilab/dots.mocr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rednote-hilab/dots.mocr" # 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.mocr", "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.mocr
- SGLang
How to use rednote-hilab/dots.mocr 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.mocr" \ --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.mocr", "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.mocr" \ --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.mocr", "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.mocr with Docker Model Runner:
docker model run hf.co/rednote-hilab/dots.mocr
Commit ·
6f8b484
1
Parent(s): 92a22a4
Add ParseBench evaluation results (#5)
Browse files- Add ParseBench evaluation results (2d42ce5715ff0765648f6611d7e96e159bd0086b)
Co-authored-by: boyang zhang <boyang-runllama@users.noreply.huggingface.co>
.eval_results/parsebench.yaml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: llamaindex/ParseBench
|
| 3 |
+
task_id: mean
|
| 4 |
+
value: 55.8
|
| 5 |
+
date: '2026-03-26'
|
| 6 |
+
source:
|
| 7 |
+
url: https://huggingface.co/datasets/llamaindex/ParseBench
|
| 8 |
+
name: ParseBench
|
| 9 |
+
user: boyang-runllama
|
| 10 |
+
notes: "Pipeline name: dots_ocr_1_5_parse"
|
| 11 |
+
- dataset:
|
| 12 |
+
id: llamaindex/ParseBench
|
| 13 |
+
task_id: text_content
|
| 14 |
+
value: 90.0
|
| 15 |
+
date: '2026-03-26'
|
| 16 |
+
source:
|
| 17 |
+
url: https://huggingface.co/datasets/llamaindex/ParseBench
|
| 18 |
+
name: ParseBench
|
| 19 |
+
user: boyang-runllama
|
| 20 |
+
notes: "Pipeline name: dots_ocr_1_5_parse"
|
| 21 |
+
- dataset:
|
| 22 |
+
id: llamaindex/ParseBench
|
| 23 |
+
task_id: text_formatting
|
| 24 |
+
value: 47.0
|
| 25 |
+
date: '2026-03-26'
|
| 26 |
+
source:
|
| 27 |
+
url: https://huggingface.co/datasets/llamaindex/ParseBench
|
| 28 |
+
name: ParseBench
|
| 29 |
+
user: boyang-runllama
|
| 30 |
+
notes: "Pipeline name: dots_ocr_1_5_parse"
|
| 31 |
+
- dataset:
|
| 32 |
+
id: llamaindex/ParseBench
|
| 33 |
+
task_id: layout
|
| 34 |
+
value: 55.8
|
| 35 |
+
date: '2026-04-09'
|
| 36 |
+
source:
|
| 37 |
+
url: https://huggingface.co/datasets/llamaindex/ParseBench
|
| 38 |
+
name: ParseBench
|
| 39 |
+
user: boyang-runllama
|
| 40 |
+
notes: "Pipeline name: dots_ocr_1_5_parse"
|
| 41 |
+
- dataset:
|
| 42 |
+
id: llamaindex/ParseBench
|
| 43 |
+
task_id: chart
|
| 44 |
+
value: 0.9
|
| 45 |
+
date: '2026-04-08'
|
| 46 |
+
source:
|
| 47 |
+
url: https://huggingface.co/datasets/llamaindex/ParseBench
|
| 48 |
+
name: ParseBench
|
| 49 |
+
user: boyang-runllama
|
| 50 |
+
notes: "Pipeline name: dots_ocr_1_5_parse"
|
| 51 |
+
- dataset:
|
| 52 |
+
id: llamaindex/ParseBench
|
| 53 |
+
task_id: table
|
| 54 |
+
value: 85.2
|
| 55 |
+
date: '2026-04-08'
|
| 56 |
+
source:
|
| 57 |
+
url: https://huggingface.co/datasets/llamaindex/ParseBench
|
| 58 |
+
name: ParseBench
|
| 59 |
+
user: boyang-runllama
|
| 60 |
+
notes: "Pipeline name: dots_ocr_1_5_parse"
|