Skip to content

Commit fcbfbee

Browse files
requ
Signed-off-by: Varad <varad.ahirwadkar1@ibm.com>
1 parent ae48652 commit fcbfbee

13 files changed

Lines changed: 369 additions & 139 deletions

.tekton/odh-trustyai-nemo-guardrails-server-pull-request.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ spec:
5050
"type": "pip",
5151
"path": ".",
5252
"requirements_files": [
53-
"ppc64le-requirements/requirements.txt"
53+
"ppc64le-requirements/2/2.txt",
54+
"ppc64le-requirements/2/requirements-devpi-index-2.txt"
5455
],
5556
"requirements_build_files": [
56-
"ppc64le-requirements/requirements-sdist-build.txt",
57-
"ppc64le-requirements/requirements-rhoai-3.4-index.txt"
57+
"ppc64le-requirements/1/1-requirements.txt",
58+
"ppc64le-requirements/1/2-rh.txt",
59+
"ppc64le-requirements/1/3.txt"
5860
],
5961
"allow_binary": "true"
6062
},

Dockerfile.konflux

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ WORKDIR /app
1010
ARG TARGETARCH
1111
ARG GUARDRAILS_PROFILE=opensource
1212

13-
COPY requirements.txt requirements-torch.txt pyproject.toml README.md ./
13+
COPY requirements.txt requirements-ppc.txt requirements-torch.txt pyproject.toml README.md ./
1414
COPY nemoguardrails/ ./nemoguardrails/
1515
COPY scripts/ ./scripts/
1616
COPY examples/bots/ ./examples/bots/
1717

1818
RUN chmod +x ./scripts/entrypoint.sh
1919

20+
RUN python3 -m pip install --no-cache-dir pyyaml
21+
2022
RUN python3 ./scripts/filter_guardrails.py ./scripts/provider-list.yaml $GUARDRAILS_PROFILE
2123

2224
ENV HF_HOME=/app/.cache/huggingface \
@@ -27,7 +29,7 @@ ENV HF_HOME=/app/.cache/huggingface \
2729

2830
RUN python3 -m venv /app/.venv
2931

30-
RUN /app/.venv/bin/pip install --no-cache-dir -r requirements.txt && \
32+
RUN /app/.venv/bin/pip install --no-cache-dir -r requirements-ppc.txt && \
3133
/app/.venv/bin/pip install --no-cache-dir --no-deps . && \
3234
rm -rf /root/.cache/pip /tmp/* /var/tmp/*
3335

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
aiofiles==25.1.0
2+
aiohappyeyeballs==2.6.1
3+
aiohttp==3.12.15
4+
aiohttp-retry==2.9.1
5+
aiosignal==1.4.0
6+
annotated-doc==0.0.4
7+
annotated-types==0.7.0
8+
anyio==4.11.0
9+
asgiref==3.11.1
10+
attrs==25.3.0
11+
catalogue==2.0.10
12+
certifi==2025.8.3
13+
cffi==1.17.1
14+
charset-normalizer==3.4.3
15+
click==8.1.8
16+
cloudpathlib==0.22.0
17+
coloredlogs==15.0.1
18+
colorlog==6.10.1
19+
Cython==3.2.4
20+
dataclasses-json==0.6.7
21+
distro==1.9.0
22+
einops==0.8.1
23+
fastapi==0.122.0
24+
filelock==3.19.1
25+
filetype==1.2.0
26+
flatbuffers==25.2.10
27+
frozenlist==1.7.0
28+
fsspec==2025.9.0
29+
googleapis-common-protos==1.74.0
30+
greenlet==3.4.0
31+
h11==0.16.0
32+
httpcore==1.0.9
33+
httpx==0.28.1
34+
httpx-sse==0.4.1
35+
humanfriendly==10.0
36+
idna==3.10
37+
importlib_metadata==8.7.0
38+
jiter==0.14.0
39+
joblib==1.5.2
40+
jsonpatch==1.33
41+
jsonpointer==3.0.0
42+
langsmith==0.4.30
43+
lark==1.3.0
44+
loguru==0.7.3
45+
markdown-it-py==3.0.0
46+
marshmallow==3.26.1
47+
mdurl==0.1.2
48+
meson==1.9.2
49+
meson-python==0.19.0
50+
mmh3==5.2.0
51+
mpmath==1.3.0
52+
multidict==6.6.4
53+
mypy_extensions==1.1.0
54+
nest-asyncio==1.6.0
55+
networkx==3.5
56+
ninja==1.13.0
57+
nltk==3.9.2
58+
openai==2.21.0
59+
opentelemetry-api==1.38.0
60+
opentelemetry-distro==0.59b0
61+
opentelemetry-exporter-otlp-proto-common==1.38.0
62+
opentelemetry-exporter-otlp-proto-http==1.38.0
63+
opentelemetry-instrumentation==0.59b0
64+
opentelemetry-instrumentation-asgi==0.59b0
65+
opentelemetry-instrumentation-fastapi==0.59b0
66+
opentelemetry-instrumentation-httpx==0.59b0
67+
opentelemetry-proto==1.38.0
68+
opentelemetry-sdk==1.38.0
69+
opentelemetry-semantic-conventions==0.59b0
70+
opentelemetry-util-http==0.59b0
71+
orjson==3.11.3
72+
packaging==25.0
73+
phonenumbers==9.0.10
74+
prompt_toolkit==3.0.52
75+
propcache==0.3.2
76+
protobuf==6.32.1
77+
pycparser==2.22
78+
pydantic==2.11.9
79+
pydantic-settings==2.10.1
80+
pydantic_core==2.33.2
81+
Pygments==2.19.2
82+
pyproject-metadata==0.11.0
83+
python-dateutil==2.9.0.post0
84+
python-dotenv==1.1.1
85+
pytz==2025.2
86+
regex==2025.9.18
87+
requests==2.32.5
88+
requests-file==2.1.0
89+
requests-toolbelt==1.0.0
90+
rich==14.1.0
91+
robust-downloader==0.0.2
92+
safetensors==0.6.2
93+
setuptools==80.9.0
94+
shellingham==1.5.4
95+
simpleeval==1.0.3
96+
six==1.17.0
97+
smart_open==7.3.1
98+
sniffio==1.3.1
99+
spacy-legacy==3.0.12
100+
spacy-loggers==1.0.5
101+
SQLAlchemy==2.0.43
102+
starlette==0.50.0
103+
sympy==1.14.0
104+
tenacity==9.1.2
105+
threadpoolctl==3.6.0
106+
tldextract==5.3.0
107+
tqdm==4.67.1
108+
typer==0.19.2
109+
typing-inspect==0.9.0
110+
typing-inspection==0.4.1
111+
typing_extensions==4.15.0
112+
tzdata==2025.2
113+
urllib3==2.5.0
114+
uuid_utils==0.14.0
115+
uvicorn==0.37.0
116+
versioneer==0.29
117+
wasabi==1.1.3
118+
watchdog==6.0.0
119+
wcwidth==0.2.14
120+
wrapt==1.17.3
121+
yarl==1.20.1
122+
zipp==3.23.0
123+
zstandard==0.25.0
124+
cryptography==44.0.3
125+
cymem==2.0.11
126+
huggingface-hub==0.35.1
127+
langchain-community==0.3.29
128+
langcodes==3.5.0
129+
language_data==1.3.0
130+
marisa-trie==1.3.1
131+
MarkupSafe==3.0.2
132+
murmurhash==1.0.13
133+
numpy==2.3.3
134+
pandas==2.3.1
135+
preshed==3.0.10
136+
presidio_anonymizer==2.2.359
137+
PyYAML==6.0.2
138+
srsly==2.5.1
139+
tokenizers==0.22.1
140+
transformers==4.57.1
141+
weasel==0.4.1
142+
cryptography==44.0.3
143+
cymem==2.0.11
144+
huggingface-hub==0.35.1
145+
langchain-community==0.3.29
146+
langcodes==3.5.0
147+
language_data==1.3.0
148+
marisa-trie==1.3.1
149+
MarkupSafe==3.0.2
150+
murmurhash==1.0.13
151+
numpy==2.3.3
152+
pandas==2.3.1
153+
preshed==3.0.10
154+
presidio_anonymizer==2.2.359
155+
PyYAML==6.0.2
156+
srsly==2.5.1
157+
tokenizers==0.22.1
158+
transformers==4.57.1
159+
weasel==0.4.1

ppc64le-requirements/1/2-rh.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--index-url https://console.redhat.com/api/pypi/public-rhai/rhoai/3.4/cpu-ubi9/simple
2+
3+
annoy==1.17.3
4+
fastembed==0.6.0
5+
grpcio==1.80.0
6+
langchain-openai==0.3.35
7+
scikit-learn==1.7.2
8+
scipy==1.16.3
9+
tiktoken==0.12.0
10+
confection==0.1.5
11+
fasttext-predict==0.9.2.4
12+
Jinja2==3.1.6
13+
langchain==0.3.27
14+
langchain-core==0.3.83
15+
langchain-nvidia-ai-endpoints==0.3.19
16+
langchain-text-splitters==0.3.11
17+
pillow==11.3.0
18+
py_rust_stemmers==0.1.5
19+
yara-python==4.5.4

ppc64le-requirements/1/3.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--index-url https://wheels-staging.developerfirst.ibm.com/ppc64le/linux/ --trusted-host wheels-staging.developerfirst.ibm.com
2+
3+
torch==2.9.0

ppc64le-requirements/1/4.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--index-url https://wheels.developerfirst.ibm.com/ppc64le/linux
2+
hf-xet==1.2.0
3+
onnxruntime==1.22.0 #updated

ppc64le-requirements/2/2.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
opentelemetry-exporter-otlp==1.38.0 # requires grpcio==1.80.0
2+
opentelemetry-exporter-otlp-proto-grpc==1.38.0 # requires grpcio==1.80.0
3+
sentence-transformers==5.1.2
4+
presidio_analyzer==2.2.359
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--index-url https://wheels-staging.developerfirst.ibm.com/ppc64le/linux/ --trusted-host wheels-staging.developerfirst.ibm.com
2+
3+
blis==1.3.0
4+
spacy==3.8.7
5+
thinc==8.3.6
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--index-url https://wheels-staging.developerfirst.ibm.com/ppc64le/linux/ --trusted-host wheels-staging.developerfirst.ibm.com
2+
blis==1.3.0
3+
spacy==3.8.7
4+
thinc==8.3.6
5+
hf-xet==1.2.0
6+
onnxruntime==1.22.1
7+
torch==2.9.0
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
# blis==1.3.0
2-
# presidio_analyzer==2.2.359
3-
# spacy==3.8.7
4-
# thinc==8.3.6
5-
# hf-xet==1.1.10
6-
# onnxruntime==1.22.1
7-
# torch==2.9.0
1+
--index-url https://wheels-staging.developerfirst.ibm.com/ppc64le/linux/ --trusted-host wheels-staging.developerfirst.ibm.com
2+
3+
blis==1.3.0
4+
spacy==3.8.7
5+
thinc==8.3.6
6+
hf-xet==1.4.2 # updated
7+
onnxruntime==1.22.1
8+
torch==2.9.0
9+
grpcio==1.80.0
10+
scikit-learn==1.7.2
11+
scipy==1.16.3
12+
tiktoken==0.12.0
13+
langchain==0.3.27
14+
pillow==11.3.0
15+
16+
#cryptography==44.0.3

0 commit comments

Comments
 (0)