Skip to content

Commit 5e43e36

Browse files
authored
recompile on arm64 to get minimum reqs (#4020)
new `torch==2.7.1` now comes with nvidia gpu support and triton as dependencies. Those are not supported by `arm64` or actually being used by `unstructured` in `adm64` either. This is a quick patch to remove those from .txt requirements files to unblock builds.
1 parent 55ad5fd commit 5e43e36

File tree

5 files changed

+21
-103
lines changed

5 files changed

+21
-103
lines changed

requirements/base.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ typing-inspect==0.9.0
141141
# unstructured-client
142142
unstructured-client==0.25.9
143143
# via
144-
# -c ./deps/constraints.txt
144+
# -c ././deps/constraints.txt
145145
# -r ./base.in
146146
urllib3==2.4.0
147147
# via
148-
# -c ./deps/constraints.txt
148+
# -c ././deps/constraints.txt
149149
# requests
150150
# unstructured-client
151151
webencodings==0.5.1

requirements/extra-paddleocr.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pillow==11.2.1
115115
# unstructured-paddleocr
116116
protobuf==6.31.1
117117
# via
118-
# -c ./deps/constraints.txt
118+
# -c ././deps/constraints.txt
119119
# paddlepaddle
120120
pyclipper==1.3.0.post6
121121
# via unstructured-paddleocr
@@ -182,6 +182,6 @@ unstructured-paddleocr==2.10.0
182182
# via -r ./extra-paddleocr.in
183183
urllib3==2.4.0
184184
# via
185+
# -c ././deps/constraints.txt
185186
# -c ./base.txt
186-
# -c ./deps/constraints.txt
187187
# requests

requirements/extra-pdf-image.txt

Lines changed: 7 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ google-auth==2.40.3
5656
# via
5757
# google-api-core
5858
# google-cloud-vision
59-
google-cloud-vision==3.10.1
59+
google-cloud-vision==3.10.2
6060
# via -r ./extra-pdf-image.in
6161
googleapis-common-protos==1.70.0
6262
# via
6363
# google-api-core
6464
# grpcio-status
6565
grpcio==1.73.0
6666
# via
67-
# -c ./deps/constraints.txt
67+
# -c ././deps/constraints.txt
6868
# google-api-core
6969
# grpcio-status
7070
grpcio-status==1.73.0
7171
# via google-api-core
7272
hf-xet==1.1.3
7373
# via huggingface-hub
74-
huggingface-hub==0.32.5
74+
huggingface-hub==0.33.0
7575
# via
7676
# accelerate
7777
# timm
@@ -115,43 +115,6 @@ numpy==2.2.6
115115
# torchvision
116116
# transformers
117117
# unstructured-inference
118-
nvidia-cublas-cu12==12.6.4.1
119-
# via
120-
# nvidia-cudnn-cu12
121-
# nvidia-cusolver-cu12
122-
# torch
123-
nvidia-cuda-cupti-cu12==12.6.80
124-
# via torch
125-
nvidia-cuda-nvrtc-cu12==12.6.77
126-
# via torch
127-
nvidia-cuda-runtime-cu12==12.6.77
128-
# via torch
129-
nvidia-cudnn-cu12==9.5.1.17
130-
# via torch
131-
nvidia-cufft-cu12==11.3.0.4
132-
# via torch
133-
nvidia-cufile-cu12==1.11.1.6
134-
# via torch
135-
nvidia-curand-cu12==10.3.7.77
136-
# via torch
137-
nvidia-cusolver-cu12==11.7.1.2
138-
# via torch
139-
nvidia-cusparse-cu12==12.5.4.2
140-
# via
141-
# nvidia-cusolver-cu12
142-
# torch
143-
nvidia-cusparselt-cu12==0.6.3
144-
# via torch
145-
nvidia-nccl-cu12==2.26.2
146-
# via torch
147-
nvidia-nvjitlink-cu12==12.6.85
148-
# via
149-
# nvidia-cufft-cu12
150-
# nvidia-cusolver-cu12
151-
# nvidia-cusparse-cu12
152-
# torch
153-
nvidia-nvtx-cu12==12.6.77
154-
# via torch
155118
omegaconf==2.3.0
156119
# via effdet
157120
onnx==1.18.0
@@ -180,7 +143,7 @@ pdf2image==1.17.0
180143
# via -r ./extra-pdf-image.in
181144
pdfminer-six==20250327
182145
# via
183-
# -c ./deps/constraints.txt
146+
# -c ././deps/constraints.txt
184147
# -r ./extra-pdf-image.in
185148
# unstructured-inference
186149
pi-heif==0.22.0
@@ -201,7 +164,7 @@ proto-plus==1.26.1
201164
# google-cloud-vision
202165
protobuf==6.31.1
203166
# via
204-
# -c ./deps/constraints.txt
167+
# -c ././deps/constraints.txt
205168
# google-api-core
206169
# google-cloud-vision
207170
# googleapis-common-protos
@@ -286,7 +249,7 @@ timm==1.0.15
286249
# unstructured-inference
287250
tokenizers==0.21.1
288251
# via
289-
# -c ./deps/constraints.txt
252+
# -c ././deps/constraints.txt
290253
# transformers
291254
torch==2.7.1
292255
# via
@@ -306,8 +269,6 @@ tqdm==4.67.1
306269
# transformers
307270
transformers==4.52.4
308271
# via unstructured-inference
309-
triton==3.3.1
310-
# via torch
311272
typing-extensions==4.14.0
312273
# via
313274
# -c ./base.txt
@@ -323,13 +284,10 @@ unstructured-pytesseract==0.3.15
323284
# via -r ./extra-pdf-image.in
324285
urllib3==2.4.0
325286
# via
287+
# -c ././deps/constraints.txt
326288
# -c ./base.txt
327-
# -c ./deps/constraints.txt
328289
# requests
329290
wrapt==1.17.2
330291
# via
331292
# -c ./base.txt
332293
# deprecated
333-
334-
# The following packages are considered to be unsafe in a requirements file:
335-
# setuptools

requirements/huggingface.txt

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fsspec==2025.5.1
2727
# torch
2828
hf-xet==1.1.3
2929
# via huggingface-hub
30-
huggingface-hub==0.32.5
30+
huggingface-hub==0.33.0
3131
# via
3232
# tokenizers
3333
# transformers
@@ -55,43 +55,6 @@ numpy==2.2.6
5555
# via
5656
# -c ./base.txt
5757
# transformers
58-
nvidia-cublas-cu12==12.6.4.1
59-
# via
60-
# nvidia-cudnn-cu12
61-
# nvidia-cusolver-cu12
62-
# torch
63-
nvidia-cuda-cupti-cu12==12.6.80
64-
# via torch
65-
nvidia-cuda-nvrtc-cu12==12.6.77
66-
# via torch
67-
nvidia-cuda-runtime-cu12==12.6.77
68-
# via torch
69-
nvidia-cudnn-cu12==9.5.1.17
70-
# via torch
71-
nvidia-cufft-cu12==11.3.0.4
72-
# via torch
73-
nvidia-cufile-cu12==1.11.1.6
74-
# via torch
75-
nvidia-curand-cu12==10.3.7.77
76-
# via torch
77-
nvidia-cusolver-cu12==11.7.1.2
78-
# via torch
79-
nvidia-cusparse-cu12==12.5.4.2
80-
# via
81-
# nvidia-cusolver-cu12
82-
# torch
83-
nvidia-cusparselt-cu12==0.6.3
84-
# via torch
85-
nvidia-nccl-cu12==2.26.2
86-
# via torch
87-
nvidia-nvjitlink-cu12==12.6.85
88-
# via
89-
# nvidia-cufft-cu12
90-
# nvidia-cusolver-cu12
91-
# nvidia-cusparse-cu12
92-
# torch
93-
nvidia-nvtx-cu12==12.6.77
94-
# via torch
9558
packaging==25.0
9659
# via
9760
# -c ./base.txt
@@ -125,7 +88,7 @@ sympy==1.14.0
12588
# via torch
12689
tokenizers==0.21.1
12790
# via
128-
# -c ./deps/constraints.txt
91+
# -c ././deps/constraints.txt
12992
# transformers
13093
torch==2.7.1
13194
# via -r ./huggingface.in
@@ -137,18 +100,13 @@ tqdm==4.67.1
137100
# transformers
138101
transformers==4.52.4
139102
# via -r ./huggingface.in
140-
triton==3.3.1
141-
# via torch
142103
typing-extensions==4.14.0
143104
# via
144105
# -c ./base.txt
145106
# huggingface-hub
146107
# torch
147108
urllib3==2.4.0
148109
# via
110+
# -c ././deps/constraints.txt
149111
# -c ./base.txt
150-
# -c ./deps/constraints.txt
151112
# requests
152-
153-
# The following packages are considered to be unsafe in a requirements file:
154-
# setuptools

requirements/test.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ click==8.2.1
1414
# via
1515
# -c ./base.txt
1616
# black
17-
coverage[toml]==7.8.2
17+
coverage[toml]==7.9.0
1818
# via
1919
# -r ./test.in
2020
# pytest-cov
@@ -32,7 +32,7 @@ freezegun==1.5.2
3232
# via -r ./test.in
3333
grpcio==1.73.0
3434
# via
35-
# -c ./deps/constraints.txt
35+
# -c ././deps/constraints.txt
3636
# -r ./test.in
3737
iniconfig==2.1.0
3838
# via pytest
@@ -59,7 +59,9 @@ pathspec==0.12.1
5959
platformdirs==4.3.8
6060
# via black
6161
pluggy==1.6.0
62-
# via pytest
62+
# via
63+
# pytest
64+
# pytest-cov
6365
pycodestyle==2.13.0
6466
# via
6567
# flake8
@@ -78,7 +80,7 @@ pytest==8.4.0
7880
# via
7981
# pytest-cov
8082
# pytest-mock
81-
pytest-cov==6.1.1
83+
pytest-cov==6.2.1
8284
# via -r ./test.in
8385
pytest-mock==3.14.1
8486
# via -r ./test.in
@@ -124,6 +126,6 @@ typing-inspection==0.4.1
124126
# via pydantic
125127
urllib3==2.4.0
126128
# via
129+
# -c ././deps/constraints.txt
127130
# -c ./base.txt
128-
# -c ./deps/constraints.txt
129131
# types-requests

0 commit comments

Comments
 (0)