Skip to content

Commit be0cbc9

Browse files
committed
Update CPE and Fix torch issues that causes e2e tests failing
1 parent 9217b4c commit be0cbc9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

deploy/lightspeed-stack/Containerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,15 @@ WORKDIR /app-root
9292
# PYTHONDONTWRITEBYTECODE 1 : disable the generation of .pyc
9393
# PYTHONUNBUFFERED 1 : force the stdout and stderr streams to be unbuffered
9494
# PYTHONCOERCECLOCALE 0, PYTHONUTF8 1 : skip legacy locales and use UTF-8 mode
95+
# TORCH_COMPILE_DISABLE 1: bypass torch.compile() which causes issue to the RAG system
9596
ENV PYTHONDONTWRITEBYTECODE=1 \
9697
PYTHONUNBUFFERED=1 \
9798
PYTHONCOERCECLOCALE=0 \
9899
PYTHONUTF8=1 \
99100
PYTHONIOENCODING=UTF-8 \
100-
LANG=en_US.UTF-8
101+
LANG=en_US.UTF-8 \
102+
USER=default \
103+
TORCH_COMPILE_DISABLE=1
101104

102105
COPY --from=builder --chown=1001:1001 /app-root /app-root
103106

@@ -137,7 +140,7 @@ ENTRYPOINT ["python3.12", "src/lightspeed_stack.py"]
137140
LABEL vendor="Red Hat, Inc." \
138141
name="lightspeed-core/lightspeed-stack-rhel9" \
139142
com.redhat.component="lightspeed-core/lightspeed-stack" \
140-
cpe="cpe:/a:redhat:lightspeed_core:0.4::el9" \
143+
cpe="cpe:/a:redhat:lightspeed_core:0.7::el9" \
141144
io.k8s.display-name="Lightspeed Stack" \
142145
summary="A service that provides a REST API for the Lightspeed Core Stack." \
143146
description="Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to product questions using backend LLM services, agents, and RAG databases." \

0 commit comments

Comments
 (0)