SetonLiang2 commited on
Commit
f93cc9b
·
verified ·
1 Parent(s): 925586e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: image-text-to-text
6
+ library_name: transformers
7
+ tags:
8
+ - multimodal
9
+ - document-understanding
10
+ ---
11
+
12
+ # DocPilot-4B
13
+
14
+ DocPilot-4B is a 4B action-tag model for long visual document understanding.
15
+ Weights are in the `DocPilot-4B` folder.
16
+ Paper: https://arxiv.org/abs/2610.21327
17
+ Code: https://github.com/HKUSTDial/DocPilot
18
+
19
+ ## Requirements
20
+
21
+ pip install vllm transformers
22
+
23
+ ## Quickstart
24
+
25
+ from transformers import AutoProcessor, AutoModelForImageTextToText
26
+
27
+ model = AutoModelForImageTextToText.from_pretrained(
28
+ "SetonLiang2/DocPilot",
29
+ subfolder="DocPilot-4B",
30
+ torch_dtype="auto",
31
+ device_map="auto",
32
+ )
33
+ processor = AutoProcessor.from_pretrained(
34
+ "SetonLiang2/DocPilot",
35
+ subfolder="DocPilot-4B",
36
+ )
37
+
38
+ ## Deployment
39
+
40
+ vLLM reads a local folder directly. Download the subfolder, then serve it:
41
+
42
+ huggingface-cli download SetonLiang2/DocPilot --include "DocPilot-4B/*" --local-dir ./DocPilot
43
+ vllm serve ./DocPilot/DocPilot-4B --host 0.0.0.0 --port 8088 --dtype bfloat16
44
+
45
+ Point DocPilot at this server with `protocol: vllm_tags`:
46
+
47
+ llm:
48
+ provider: openai
49
+ protocol: vllm_tags
50
+ model: ./DocPilot/DocPilot-4B
51
+ base_url: http://127.0.0.1:8088/v1
52
+ api_key: EMPTY
53
+
54
+ ## Citation
55
+
56
+ @article{liang2026docpilot,
57
+ title={DocPilot: Interactive Agent Orchestration and Training for Long Visual Document Understanding},
58
+ author={Liang, Zhuowen and Lin, Xiaotian and Luo, Yuyu and Wang, Haixun and Tang, Nan},
59
+ journal={arXiv preprint arXiv:2610.21327},
60
+ year={2026}
61
+ }