WEISHU commited on
Commit
ee704a3
ยท
verified ยท
1 Parent(s): a3020fd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +14 -16
README.md CHANGED
@@ -44,6 +44,7 @@ HPD-Parsing: Hierarchical Parallel Document Parsing
44
 
45
  ## News
46
 
 
47
  * ```2026.07``` ๐Ÿš€ We release **HPD-Parsing**, a 1B hierarchical parallel document parser. It achieves 94.91% overall on OmniDocBench v1.6 and 4,752 TPS peak throughput.
48
 
49
 
@@ -83,27 +84,24 @@ HPD-Parsing adopts **InternVL3.5-1B** as its backbone, applies dynamic tile-base
83
  HPD-Parsing runs on a **customized build of vLLM** (based on vLLM v0.17.1) that implements the dynamic request forking required by hierarchical parallel decoding and adapts P-MTP speculative decoding.
84
 
85
 
86
- ### 1. Prepare the Runtime Environment
87
 
88
- Either option works; **the Docker image is strongly recommended** to minimize environment issues.
89
 
90
- **Option A โ€” Docker image** (ships the customized vLLM build and all dependencies):
91
-
92
- ```text
93
- ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/hpd-parsing-vllm:latest-nvidia-gpu
94
- ```
95
-
96
- The default entrypoint starts the inference server automatically (see Serving below). It is pulled automatically on the first `docker run`. For machines without internet access, use the offline image `...:latest-nvidia-gpu-offline` (~24.5 GB; it has the model weights built in). Pull it on a networked machine and transfer it:
97
 
98
  ```shell
99
- # On a machine with internet access
100
- docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/hpd-parsing-vllm:latest-nvidia-gpu-offline
101
- docker save ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/hpd-parsing-vllm:latest-nvidia-gpu-offline -o hpd-parsing-vllm-offline.tar
102
- # Transfer the tar to the offline machine, then:
103
- docker load -i hpd-parsing-vllm-offline.tar
 
104
  ```
105
 
106
- **Option B โ€” Prebuilt package** (Python 3.10โ€“3.13, NVIDIA driver with CUDA 12.8+). Install in a virtual environment to avoid dependency conflicts:
 
 
107
 
108
  ```shell
109
  python -m venv .venv_hpd_parsing
@@ -111,7 +109,7 @@ source .venv_hpd_parsing/bin/activate
111
  python -m pip install https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/deploy/hpd_parsing/vllm-0.17.1+hpdparsing-cp38-abi3-manylinux_2_31_x86_64.whl
112
  ```
113
 
114
- ### 2. vLLM Python API
115
 
116
  ```python
117
  # Set the environment variable before running: export MAX_PATCHES_WITH_RESIZE=true
 
44
 
45
  ## News
46
 
47
+ * ```2026.07``` ๐ŸŽ‰ A live demo is available at [hugging-apps/hpd-parsing](https://huggingface.co/spaces/hugging-apps/hpd-parsing). Thanks to [multimodalart](https://huggingface.co/multimodalart) for building it!
48
  * ```2026.07``` ๐Ÿš€ We release **HPD-Parsing**, a 1B hierarchical parallel document parser. It achieves 94.91% overall on OmniDocBench v1.6 and 4,752 TPS peak throughput.
49
 
50
 
 
84
  HPD-Parsing runs on a **customized build of vLLM** (based on vLLM v0.17.1) that implements the dynamic request forking required by hierarchical parallel decoding and adapts P-MTP speculative decoding.
85
 
86
 
87
+ ### 1. Using Docker
88
 
89
+ The Docker image ships the customized vLLM build and all dependencies, which is the easiest way to get started. Its default entrypoint runs the Python API example below out of the box.
90
 
91
+ **With the online Docker image**, start the container directly. It downloads the model and starts the inference server, which listens on port **8118** by default:
 
 
 
 
 
 
92
 
93
  ```shell
94
+ docker run \
95
+ -it \
96
+ --rm \
97
+ --gpus all \
98
+ --network host \
99
+ ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/hpd-parsing-vllm:latest-nvidia-gpu
100
  ```
101
 
102
+ ### 2. vLLM Python API
103
+
104
+ Without Docker, install the customized vLLM prebuilt package (Python 3.10โ€“3.13, NVIDIA driver with CUDA 12.8+) in a virtual environment to avoid dependency conflicts:
105
 
106
  ```shell
107
  python -m venv .venv_hpd_parsing
 
109
  python -m pip install https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/deploy/hpd_parsing/vllm-0.17.1+hpdparsing-cp38-abi3-manylinux_2_31_x86_64.whl
110
  ```
111
 
112
+ Then run inference with the vLLM Python API:
113
 
114
  ```python
115
  # Set the environment variable before running: export MAX_PATCHES_WITH_RESIZE=true