File size: 11,917 Bytes
0cfd653
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
+ OCR_ROOT=/home/ampixa/ocr
+ export UV_INSTALL_DIR=/home/ampixa/ocr/bin UV_NO_MODIFY_PATH=1
+ UV_INSTALL_DIR=/home/ampixa/ocr/bin
+ UV_NO_MODIFY_PATH=1
+ export UV_CACHE_DIR=/home/ampixa/ocr/.uv-cache UV_PYTHON_INSTALL_DIR=/home/ampixa/ocr/.uv-python
+ UV_CACHE_DIR=/home/ampixa/ocr/.uv-cache
+ UV_PYTHON_INSTALL_DIR=/home/ampixa/ocr/.uv-python
+ REQ=/home/ampixa/ocr/ocr-tech/tools/deva_rec_torch/recipes/k2
+ cd /home/ampixa/ocr
+ '[' '!' -x /home/ampixa/ocr/bin/uv ']'
+ curl -LsSf https://astral.sh/uv/install.sh
+ sh
downloading uv 0.12.21 x86_64-unknown-linux-gnu
installing to /home/ampixa/ocr/bin
  uv
  uvx
everything's installed!
+ UV=/home/ampixa/ocr/bin/uv
+ /home/ampixa/ocr/bin/uv venv --allow-existing --python 3.11 .venv-torch
Downloading cpython-3.11.16-linux-x86_64-gnu (download) (29.4MiB)
 Downloaded cpython-3.11.16-linux-x86_64-gnu (download)
Using CPython 3.11.16
Creating virtual environment at: .venv-torch
Activate with: source .venv-torch/bin/activate
+ /home/ampixa/ocr/bin/uv pip install --python .venv-torch/bin/python --index-url https://download.pytorch.org/whl/cu126 torch==2.14.0
Using Python 3.11.16 environment at: .venv-torch
Resolved 29 packages in 3.85s
Downloading nvidia-nvshmem-cu12 (132.7MiB)
Downloading setuptools (1.2MiB)
Downloading sympy (6.0MiB)
Downloading networkx (2.0MiB)
Downloading cuda-bindings (7.3MiB)
Downloading nvidia-nvjitlink-cu12 (37.9MiB)
Downloading torch (828.9MiB)
Downloading triton (235.4MiB)
Downloading nvidia-cusparselt-cu12 (273.9MiB)
Downloading nvidia-curand-cu12 (53.7MiB)
Downloading nvidia-cuda-cupti-cu12 (8.5MiB)
Downloading nvidia-cusparse-cu12 (206.5MiB)
Downloading nvidia-nccl-cu12 (276.3MiB)
Downloading nvidia-cudnn-cu12 (674.0MiB)
Downloading nvidia-cusolver-cu12 (150.9MiB)
Downloading nvidia-cublas-cu12 (374.9MiB)
Downloading nvidia-cufile-cu12 (1.1MiB)
Downloading nvidia-cuda-nvrtc-cu12 (22.6MiB)
Downloading nvidia-cufft-cu12 (190.9MiB)
 Downloaded setuptools
 Downloaded triton
 Downloaded nvidia-cufile-cu12
 Downloaded torch
 Downloaded nvidia-nvjitlink-cu12
 Downloaded networkx
 Downloaded nvidia-cuda-cupti-cu12
 Downloaded nvidia-nvshmem-cu12
 Downloaded nvidia-curand-cu12
 Downloaded sympy
 Downloaded cuda-bindings
 Downloaded nvidia-cusparselt-cu12
 Downloaded nvidia-cusparse-cu12
 Downloaded nvidia-nccl-cu12
 Downloaded nvidia-cuda-nvrtc-cu12
 Downloaded nvidia-cusolver-cu12
 Downloaded nvidia-cudnn-cu12
 Downloaded nvidia-cublas-cu12
 Downloaded nvidia-cufft-cu12
Prepared 29 packages in 4m 17s
Installed 29 packages in 424ms
 + cuda-bindings==12.9.7
 + cuda-pathfinder==1.6.0
 + cuda-toolkit==12.6.3
 + filelock==3.32.3
 + fsspec==2026.7.0
 + jinja2==3.1.6
 + markupsafe==3.0.3
 + mpmath==1.3.0
 + networkx==3.6.1
 + nvidia-cublas-cu12==12.6.4.1
 + nvidia-cuda-cupti-cu12==12.6.80
 + nvidia-cuda-nvrtc-cu12==12.6.85
 + nvidia-cuda-runtime-cu12==12.6.77
 + nvidia-cudnn-cu12==9.10.2.21
 + nvidia-cufft-cu12==11.3.0.4
 + nvidia-cufile-cu12==1.11.1.6
 + nvidia-curand-cu12==10.3.7.77
 + nvidia-cusolver-cu12==11.7.1.2
 + nvidia-cusparse-cu12==12.5.4.2
 + nvidia-cusparselt-cu12==0.7.1
 + nvidia-nccl-cu12==2.29.3
 + nvidia-nvjitlink-cu12==12.9.86
 + nvidia-nvshmem-cu12==3.4.5
 + nvidia-nvtx-cu12==12.6.77
 + setuptools==78.1.0
 + sympy==1.14.0
 + torch==2.14.0+cu126
 + triton==3.8.0
 + typing-extensions==4.16.0
+ /home/ampixa/ocr/bin/uv pip install --python .venv-torch/bin/python transformers==5.17.0 safetensors==0.8.0 onnx==1.23.0 onnxruntime==1.30.0 numpy==2.4.6 pillow huggingface_hub rapidfuzz regex pyyaml opencv-python-headless
Using Python 3.11.16 environment at: .venv-torch
Resolved 35 packages in 784ms
Downloading tokenizers (3.2MiB)
Downloading pygments (1.2MiB)
Downloading pillow (6.6MiB)
Downloading opencv-python-headless (58.4MiB)
Downloading transformers (11.7MiB)
Downloading rapidfuzz (3.0MiB)
Downloading numpy (16.1MiB)
Downloading hf-xet (4.3MiB)
Downloading onnxruntime (22.5MiB)
Downloading onnx (8.5MiB)
 Downloaded pygments
 Downloaded rapidfuzz
 Downloaded tokenizers
 Downloaded hf-xet
 Downloaded pillow
 Downloaded onnx
 Downloaded transformers
 Downloaded numpy
 Downloaded onnxruntime
 Downloaded opencv-python-headless
Prepared 32 packages in 14.74s
Installed 32 packages in 1.14s
 + annotated-doc==0.0.5
 + anyio==4.15.1
 + certifi==2026.7.22
 + click==8.5.0
 + flatbuffers==25.12.19
 + h11==0.16.0
 + hf-xet==1.6.0
 + httpcore==1.0.9
 + httpx==0.28.1
 + huggingface-hub==1.33.0
 + idna==3.20
 + markdown-it-py==4.2.0
 + mdurl==0.1.2
 + ml-dtypes==0.6.0
 + numpy==2.4.6
 + onnx==1.23.0
 + onnxruntime==1.30.0
 + opencv-python-headless==5.0.0.93
 + packaging==26.3
 + pillow==12.3.0
 + protobuf==7.36.2
 + pygments==2.21.0
 + pyyaml==6.0.3
 + rapidfuzz==3.14.6
 + regex==2026.9.29
 + rich==15.0.0
 + safetensors==0.8.0
 + shellingham==1.5.4
 + tokenizers==0.23.2
 + tqdm==4.70.1
 + transformers==5.17.0
 + typer==0.27.2
+ .venv-torch/bin/python -c 'import torch, transformers; print(torch.__version__, transformers.__version__, torch.version.cuda, torch.cuda.is_available(), [torch.cuda.get_device_name(i) for i in range(torch.cuda.device_count())])'
2.14.0+cu126 5.17.0 12.6 True ['Tesla T4', 'Tesla T4']
+ /home/ampixa/ocr/bin/uv venv --allow-existing --python 3.11 .venv-serve
Using CPython 3.11.16
Creating virtual environment at: .venv-serve
Activate with: source .venv-serve/bin/activate
+ /home/ampixa/ocr/bin/uv pip install --python .venv-serve/bin/python -r /home/ampixa/ocr/ocr-tech/tools/deva_rec_torch/recipes/k2/serve-requirements.txt
Using Python 3.11.16 environment at: .venv-serve
Resolved 145 packages in 1.23s
Downloading pycryptodome (2.2MiB)
Downloading pygments (1.2MiB)
Downloading nvidia-cufile (1.2MiB)
Downloading networkx (2.0MiB)
Downloading tiktoken (1.1MiB)
Downloading nvidia-cusolver (191.6MiB)
Downloading nvidia-cusparse (139.2MiB)
Downloading nvidia-nvjitlink (38.8MiB)
Downloading sympy (6.0MiB)
Downloading nvidia-cuda-runtime (2.1MiB)
Downloading sentencepiece (1.3MiB)
Downloading setuptools (1.0MiB)
Downloading lxml (5.0MiB)
Downloading nvidia-cublas (403.5MiB)
Downloading opencv-python-headless (47.7MiB)
Downloading numpy (16.1MiB)
Downloading pydantic-core (2.0MiB)
Downloading tokenizers (3.1MiB)
Downloading pyarrow (46.6MiB)
Downloading pandas (10.8MiB)
Downloading scikit-learn (8.9MiB)
Downloading aiohttp (1.7MiB)
Downloading paddlepaddle (185.8MiB)
Downloading shapely (3.0MiB)
Downloading nvidia-cufft (204.2MiB)
Downloading cuda-bindings (6.8MiB)
Downloading transformers (11.4MiB)
Downloading nvidia-cuda-nvrtc (86.0MiB)
Downloading opencv-contrib-python (65.5MiB)
Downloading pillow (4.3MiB)
Downloading nvidia-nvshmem-cu13 (57.6MiB)
Downloading h5py (4.8MiB)
Downloading scipy (33.7MiB)
Downloading nvidia-curand (56.8MiB)
Downloading nvidia-cusparselt-cu13 (162.3MiB)
Downloading nvidia-cuda-cupti (10.2MiB)
Downloading pymupdf (23.8MiB)
Downloading hf-xet (4.3MiB)
Downloading nvidia-nccl-cu13 (196.4MiB)
Downloading triton (192.1MiB)
Downloading modelscope (5.8MiB)
Downloading pypdfium2 (2.7MiB)
Downloading nvidia-cudnn-cu13 (349.2MiB)
Downloading torch (507.5MiB)
Downloading paddlex (2.1MiB)
 Downloaded setuptools
 Downloaded tiktoken
 Downloaded nvidia-cufile
 Downloaded pygments
 Downloaded sentencepiece
 Downloaded aiohttp
 Downloaded networkx
 Downloaded pydantic-core
 Downloaded pycryptodome
 Downloaded paddlex
 Downloaded nvidia-cuda-runtime
 Downloaded pypdfium2
 Downloaded shapely
 Downloaded tokenizers
 Downloaded pillow
 Downloaded hf-xet
 Downloaded h5py
 Downloaded lxml
 Downloaded modelscope
 Downloaded sympy
 Downloaded cuda-bindings
 Downloaded scikit-learn
 Downloaded nvidia-cuda-cupti
 Downloaded pandas
 Downloaded transformers
 Downloaded numpy
 Downloaded pymupdf
 Downloaded scipy
 Downloaded nvidia-nvjitlink
 Downloaded pyarrow
 Downloaded opencv-python-headless
 Downloaded nvidia-curand
 Downloaded nvidia-nvshmem-cu13
 Downloaded opencv-contrib-python
 Downloaded nvidia-cuda-nvrtc
 Downloaded nvidia-cusparse
 Downloaded nvidia-cusparselt-cu13
 Downloaded paddlepaddle
 Downloaded triton
 Downloaded nvidia-cusolver
 Downloaded nvidia-nccl-cu13
 Downloaded nvidia-cufft
 Downloaded nvidia-cudnn-cu13
 Downloaded nvidia-cublas
 Downloaded torch
Prepared 136 packages in 5m 34s
Installed 145 packages in 998ms
 + accelerate==1.14.0
 + aiohappyeyeballs==2.6.2
 + aiohttp==3.14.1
 + aiosignal==1.4.0
 + aistudio-sdk==0.3.8
 + annotated-doc==0.0.4
 + annotated-types==0.7.0
 + anyio==4.13.0
 + attrs==26.1.0
 + bce-python-sdk==0.9.72
 + beautifulsoup4==4.15.0
 + cachetools==7.1.4
 + certifi==2026.5.20
 + chardet==7.4.3
 + charset-normalizer==3.4.7
 + click==8.4.1
 + colorlog==6.10.1
 + crc32c==2.8
 + cssselect==1.4.0
 + cssutils==2.15.0
 + cuda-bindings==13.4.3
 + cuda-pathfinder==1.8.2
 + cuda-toolkit==13.0.2
 + datasets==5.0.0
 + dill==0.4.1
 + distro==1.9.0
 + einops==0.8.2
 + encutils==1.0.0
 + et-xmlfile==2.0.0
 + fastapi==0.141.1
 + filelock==3.29.4
 + filetype==1.2.0
 + flatbuffers==25.12.19
 + frozenlist==1.8.0
 + fsspec==2026.4.0
 + ftfy==6.3.1
 + future==1.0.0
 + h11==0.16.0
 + h5py==3.16.0
 + hf-xet==1.5.1
 + httpcore==1.0.9
 + httpx==0.27.2
 + huggingface-hub==0.36.2
 + idna==3.18
 + imagesize==2.0.0
 + iniconfig==2.3.0
 + jinja2==3.1.6
 + jiter==0.15.0
 + joblib==1.5.3
 + latex2mathml==3.81.0
 + lxml==6.1.1
 + markdown-it-py==4.2.0
 + markupsafe==3.0.3
 + mdurl==0.1.2
 + modelscope==1.37.1
 + more-itertools==11.1.0
 + mpmath==1.3.0
 + multidict==6.7.1
 + multiprocess==0.70.19
 + narwhals==2.22.1
 + networkx==3.6.1
 + numpy==2.3.5
 + nvidia-cublas==13.1.1.3
 + nvidia-cuda-cupti==13.0.85
 + nvidia-cuda-nvrtc==13.0.88
 + nvidia-cuda-runtime==13.0.96
 + nvidia-cudnn-cu13==9.20.0.48
 + nvidia-cufft==12.0.0.61
 + nvidia-cufile==1.15.1.6
 + nvidia-curand==10.4.0.35
 + nvidia-cusolver==12.0.4.66
 + nvidia-cusparse==12.6.3.3
 + nvidia-cusparselt-cu13==0.8.1
 + nvidia-nccl-cu13==2.29.7
 + nvidia-nvjitlink==13.0.88
 + nvidia-nvshmem-cu13==3.4.5
 + nvidia-nvtx==13.0.85
 + onnxruntime==1.30.0
 + openai==1.109.1
 + opencv-contrib-python==4.10.0.84
 + opencv-python-headless==4.11.0.86
 + openpyxl==3.1.5
 + opt-einsum==3.3.0
 + packaging==26.2
 + paddleocr==3.7.0
 + paddlepaddle==3.3.1
 + paddlex==3.7.1
 + pandas==3.0.3
 + pillow==10.4.0
 + platformdirs==4.10.0
 + pluggy==1.6.0
 + premailer==3.10.0
 + prettytable==3.17.0
 + propcache==0.5.2
 + protobuf==7.35.1
 + psutil==7.2.2
 + py-cpuinfo==9.0.0
 + pyarrow==24.0.0
 + pyclipper==1.4.0
 + pycryptodome==3.23.0
 + pydantic==2.13.4
 + pydantic-core==2.46.4
 + pydantic-settings==2.14.1
 + pygments==2.20.0
 + pymupdf==1.27.2.3
 + pypdfium2==4.30.0
 + pytest==9.1.0
 + python-bidi==0.6.10
 + python-dateutil==2.9.0.post0
 + python-dotenv==1.2.2
 + python-multipart==0.0.32
 + pyyaml==6.0.2
 + regex==2026.5.9
 + requests==2.34.2
 + rich==15.0.0
 + ruamel-yaml==0.19.1
 + safetensors==0.8.0
 + scikit-learn==1.9.0
 + scipy==1.17.1
 + sentencepiece==0.2.1
 + setuptools==81.0.0
 + shapely==2.1.2
 + shellingham==1.5.4
 + six==1.17.0
 + sniffio==1.3.1
 + soupsieve==2.8.4
 + starlette==1.6.0
 + surya-ocr==0.20.0
 + sympy==1.14.0
 + threadpoolctl==3.6.0
 + tiktoken==0.13.0
 + tokenizers==0.22.2
 + torch==2.12.0
 + tqdm==4.68.2
 + transformers==4.57.6
 + triton==3.7.0
 + typer==0.25.1
 + typing-extensions==4.15.0
 + typing-inspection==0.4.2
 + ujson==5.12.1
 + urllib3==2.7.0
 + uvicorn==0.52.4
 + wcwidth==0.8.1
 + xxhash==3.7.0
 + yarl==1.24.2
+ .venv-serve/bin/python -c 'import paddle, paddlex, paddleocr, onnxruntime; print(paddle.__version__, paddlex.__version__, onnxruntime.__version__)'
/home/ampixa/ocr/.venv-serve/lib/python3.11/site-packages/paddle/utils/cpp_extension/extension_utils.py:712: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
  warnings.warn(warning_message)
3.3.1 3.7.1 1.30.0
+ echo T4_SETUP_DONE
T4_SETUP_DONE