Kindred1000 commited on
Commit
43fb06d
·
verified ·
1 Parent(s): 4f943a0

Model card: add the exact inference settings behind the reported scores

Browse files
Files changed (1) hide show
  1. README.md +39 -4
README.md CHANGED
@@ -92,16 +92,47 @@ Message layout:
92
  ```
93
 
94
  Keep thinking mode off (`enable_thinking: false`); the model was tuned and
95
- evaluated without it. Decode greedily (`temperature 0`) with a mild
96
- `repetition_penalty` of 1.05 and `no_repeat_ngram_size` 30, and allow up to
97
- 8192 new tokens for dense pages.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  ## Quickstart
100
 
101
  ### vLLM
102
 
103
  ```bash
104
- vllm serve sionic-ai/PepperOCR-VL --served-model-name pepperocr-vl --max-model-len 32768
 
 
 
 
 
105
  ```
106
 
107
  ```python
@@ -119,8 +150,12 @@ response = client.chat.completions.create(
119
  {"type": "text", "text": prompt},
120
  ]}],
121
  temperature=0.0,
 
122
  max_tokens=8192,
 
 
123
  extra_body={
 
124
  "repetition_penalty": 1.05,
125
  "no_repeat_ngram_size": 30,
126
  "chat_template_kwargs": {"enable_thinking": False},
 
92
  ```
93
 
94
  Keep thinking mode off (`enable_thinking: false`); the model was tuned and
95
+ evaluated without it. The decoding settings are in the next section.
96
+
97
+ ## Recommended inference settings
98
+
99
+ This is the exact configuration behind the reported scores. Use it as is
100
+ unless you have a reason to change it.
101
+
102
+ | Setting | Value | Note |
103
+ |---|---|---|
104
+ | Precision | bf16 | as shipped |
105
+ | `temperature` | 0 | greedy |
106
+ | `top_p` / `top_k` | 1.0 / -1 | no truncation |
107
+ | `repetition_penalty` | 1.05 | mild; keeps long tables from looping |
108
+ | `no_repeat_ngram_size` | 30 | blocks verbatim repetition of long spans |
109
+ | `presence_penalty` | 0 | |
110
+ | `max_tokens` | 8192 | enough for dense pages |
111
+ | `seed` | 42 | for repeatability with greedy decoding |
112
+ | `enable_thinking` | false | chat-template kwarg |
113
+ | Image size | processor defaults | no `min_pixels`/`max_pixels` override |
114
+ | Context (`--max-model-len`) | 32768 | |
115
+ | Batching (`--max-num-seqs`) | 64 | with 64 concurrent requests per GPU |
116
+ | GPU memory | `--gpu-memory-utilization 0.85` | capped at 74 GiB on larger cards |
117
+ | Orientation preprocessing | on, threshold 0.85 | see `orientation/` |
118
+ | Runaway-output retry | temperatures 0.1, 0.3, 0.5, 0.8 | when output hits `max_tokens` or compresses below gzip ratio 0.18; keep the shortest non-degenerate result |
119
+
120
+ Software used for the reported scores: vLLM 0.24.0, PyTorch 2.11.0 (CUDA 13),
121
+ Transformers 5.11.0, FlashInfer 0.6.12, `--gdn-prefill-backend triton`;
122
+ PaddlePaddle 3.2.2 (CPU) for orientation. Newer versions should work but were
123
+ not used for the numbers below.
124
 
125
  ## Quickstart
126
 
127
  ### vLLM
128
 
129
  ```bash
130
+ vllm serve sionic-ai/PepperOCR-VL \
131
+ --served-model-name pepperocr-vl \
132
+ --max-model-len 32768 \
133
+ --max-num-seqs 64 \
134
+ --gpu-memory-utilization 0.85 \
135
+ --gdn-prefill-backend triton # vLLM 0.24; drop if your version does not have it
136
  ```
137
 
138
  ```python
 
150
  {"type": "text", "text": prompt},
151
  ]}],
152
  temperature=0.0,
153
+ top_p=1.0,
154
  max_tokens=8192,
155
+ seed=42,
156
+ presence_penalty=0.0,
157
  extra_body={
158
+ "top_k": -1,
159
  "repetition_penalty": 1.05,
160
  "no_repeat_ngram_size": 30,
161
  "chat_template_kwargs": {"enable_thinking": False},