Image-Text-to-Text
Transformers
Safetensors
English
Chinese
multilingual
qwen3_vl
image-to-text
ocr
document-parse
layout
table
formula
conversational
Eval Results
Instructions to use winninghealth/WiNGPT-DocLoom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use winninghealth/WiNGPT-DocLoom with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="winninghealth/WiNGPT-DocLoom") 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 AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("winninghealth/WiNGPT-DocLoom") model = AutoModelForImageTextToText.from_pretrained("winninghealth/WiNGPT-DocLoom") 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use winninghealth/WiNGPT-DocLoom with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "winninghealth/WiNGPT-DocLoom" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "winninghealth/WiNGPT-DocLoom", "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/winninghealth/WiNGPT-DocLoom
- SGLang
How to use winninghealth/WiNGPT-DocLoom 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 "winninghealth/WiNGPT-DocLoom" \ --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": "winninghealth/WiNGPT-DocLoom", "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 "winninghealth/WiNGPT-DocLoom" \ --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": "winninghealth/WiNGPT-DocLoom", "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 winninghealth/WiNGPT-DocLoom with Docker Model Runner:
docker model run hf.co/winninghealth/WiNGPT-DocLoom
Update .eval_results/olmocrbench.yaml
Browse files
.eval_results/olmocrbench.yaml
CHANGED
|
@@ -6,7 +6,6 @@
|
|
| 6 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 7 |
name: WiNGPT-DocLoom Model Card
|
| 8 |
user: winninghealth
|
| 9 |
-
|
| 10 |
- dataset:
|
| 11 |
id: allenai/olmOCR-bench
|
| 12 |
task_id: arxiv_math
|
|
@@ -15,7 +14,6 @@
|
|
| 15 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 16 |
name: WiNGPT-DocLoom Model Card
|
| 17 |
user: winninghealth
|
| 18 |
-
|
| 19 |
- dataset:
|
| 20 |
id: allenai/olmOCR-bench
|
| 21 |
task_id: old_scans_math
|
|
@@ -24,7 +22,6 @@
|
|
| 24 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 25 |
name: WiNGPT-DocLoom Model Card
|
| 26 |
user: winninghealth
|
| 27 |
-
|
| 28 |
- dataset:
|
| 29 |
id: allenai/olmOCR-bench
|
| 30 |
task_id: table_tests
|
|
@@ -33,7 +30,6 @@
|
|
| 33 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 34 |
name: WiNGPT-DocLoom Model Card
|
| 35 |
user: winninghealth
|
| 36 |
-
|
| 37 |
- dataset:
|
| 38 |
id: allenai/olmOCR-bench
|
| 39 |
task_id: old_scans
|
|
@@ -42,7 +38,6 @@
|
|
| 42 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 43 |
name: WiNGPT-DocLoom Model Card
|
| 44 |
user: winninghealth
|
| 45 |
-
|
| 46 |
- dataset:
|
| 47 |
id: allenai/olmOCR-bench
|
| 48 |
task_id: headers_footers
|
|
@@ -51,7 +46,6 @@
|
|
| 51 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 52 |
name: WiNGPT-DocLoom Model Card
|
| 53 |
user: winninghealth
|
| 54 |
-
|
| 55 |
- dataset:
|
| 56 |
id: allenai/olmOCR-bench
|
| 57 |
task_id: multi_column
|
|
@@ -60,7 +54,6 @@
|
|
| 60 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 61 |
name: WiNGPT-DocLoom Model Card
|
| 62 |
user: winninghealth
|
| 63 |
-
|
| 64 |
- dataset:
|
| 65 |
id: allenai/olmOCR-bench
|
| 66 |
task_id: long_tiny_text
|
|
@@ -69,7 +62,6 @@
|
|
| 69 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 70 |
name: WiNGPT-DocLoom Model Card
|
| 71 |
user: winninghealth
|
| 72 |
-
|
| 73 |
- dataset:
|
| 74 |
id: allenai/olmOCR-bench
|
| 75 |
task_id: baseline
|
|
|
|
| 6 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 7 |
name: WiNGPT-DocLoom Model Card
|
| 8 |
user: winninghealth
|
|
|
|
| 9 |
- dataset:
|
| 10 |
id: allenai/olmOCR-bench
|
| 11 |
task_id: arxiv_math
|
|
|
|
| 14 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 15 |
name: WiNGPT-DocLoom Model Card
|
| 16 |
user: winninghealth
|
|
|
|
| 17 |
- dataset:
|
| 18 |
id: allenai/olmOCR-bench
|
| 19 |
task_id: old_scans_math
|
|
|
|
| 22 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 23 |
name: WiNGPT-DocLoom Model Card
|
| 24 |
user: winninghealth
|
|
|
|
| 25 |
- dataset:
|
| 26 |
id: allenai/olmOCR-bench
|
| 27 |
task_id: table_tests
|
|
|
|
| 30 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 31 |
name: WiNGPT-DocLoom Model Card
|
| 32 |
user: winninghealth
|
|
|
|
| 33 |
- dataset:
|
| 34 |
id: allenai/olmOCR-bench
|
| 35 |
task_id: old_scans
|
|
|
|
| 38 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 39 |
name: WiNGPT-DocLoom Model Card
|
| 40 |
user: winninghealth
|
|
|
|
| 41 |
- dataset:
|
| 42 |
id: allenai/olmOCR-bench
|
| 43 |
task_id: headers_footers
|
|
|
|
| 46 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 47 |
name: WiNGPT-DocLoom Model Card
|
| 48 |
user: winninghealth
|
|
|
|
| 49 |
- dataset:
|
| 50 |
id: allenai/olmOCR-bench
|
| 51 |
task_id: multi_column
|
|
|
|
| 54 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 55 |
name: WiNGPT-DocLoom Model Card
|
| 56 |
user: winninghealth
|
|
|
|
| 57 |
- dataset:
|
| 58 |
id: allenai/olmOCR-bench
|
| 59 |
task_id: long_tiny_text
|
|
|
|
| 62 |
url: https://huggingface.co/winninghealth/WiNGPT-DocLoom
|
| 63 |
name: WiNGPT-DocLoom Model Card
|
| 64 |
user: winninghealth
|
|
|
|
| 65 |
- dataset:
|
| 66 |
id: allenai/olmOCR-bench
|
| 67 |
task_id: baseline
|