Image-Text-to-Text
Transformers
Safetensors
qwen3_5
document-parsing
ocr
multilingual
mdpbench
qwen3.5
conversational
Eval Results
Run this model with HF Jobs
Run hitxhslhy/realocr on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/hitxhslhy/realocr. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/hitxhslhy/realocr on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/hitxhslhy/realocr. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/hitxhslhy/realocr. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use hitxhslhy/realocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hitxhslhy/realocr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="hitxhslhy/realocr") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("hitxhslhy/realocr") model = AutoModelForMultimodalLM.from_pretrained("hitxhslhy/realocr", device_map="auto") 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?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hitxhslhy/realocr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hitxhslhy/realocr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hitxhslhy/realocr", "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/hitxhslhy/realocr
- SGLang
How to use hitxhslhy/realocr 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 "hitxhslhy/realocr" \ --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": "hitxhslhy/realocr", "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 "hitxhslhy/realocr" \ --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": "hitxhslhy/realocr", "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 hitxhslhy/realocr with Docker Model Runner:
docker model run hf.co/hitxhslhy/realocr
Update MDPBench evaluation results
#2
by Delores-Lin - opened
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184- dataset:id: Delores-Lin/MDPBenchtask_id: overallvalue: 79.4source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: digitalvalue: 88.7source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: photographedvalue: 76.3source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: latinvalue: 82.1source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: devalue: 81.6source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: envalue: 81.2source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: esvalue: 71.6source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: frvalue: 68.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: idvalue: 82.8source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: itvalue: 87.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: nlvalue: 87.7source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: ptvalue: 89.3source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: vivalue: 88.2source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: non_latinvalue: 76.4source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: arvalue: 73.5source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: hivalue: 77.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: jpvalue: 68.8source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: kovalue: 86.4source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: ruvalue: 75.6source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: thvalue: 75.8source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: zhvalue: 78.1source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: zh_tvalue: 75.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin- dataset:id: Delores-Lin/MDPBenchtask_id: privatevalue: 83.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Lin123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207- dataset:id: Delores-Lin/MDPBenchtask_id: overallvalue: 80.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: digitalvalue: 89.5source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: photographedvalue: 78.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: latinvalue: 83.6source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: devalue: 84.8source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: envalue: 85.3source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: esvalue: 71.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: frvalue: 72.2source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: idvalue: 85.6source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: itvalue: 90.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: nlvalue: 88.4source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: ptvalue: 88.3source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: vivalue: 86.3source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: non_latinvalue: 77.8source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: arvalue: 77.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: hivalue: 82.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: jpvalue: 71.2source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: kovalue: 79.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: ruvalue: 74.0source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: thvalue: 79.9source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: zhvalue: 82.3source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: zh_tvalue: 76.4source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"- dataset:id: Delores-Lin/MDPBenchtask_id: privatevalue: 83.1source:url: https://huggingface.co/datasets/Delores-Lin/MDPBenchname: MDPBench leaderboarduser: Delores-Linnotes: "Evaluated model revision: 2468aaf25eeb8a46f154e714240b5338a3177c4b"
.eval_results/mdpbench.yaml+46-23