-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream changes for 0.4.0 release (#53)
0.4.0 release
- Loading branch information
Showing
84 changed files
with
9,645 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
ARG BASE_IMAGE_URL=nvcr.io/nvidia/pytorch | ||
ARG BASE_IMAGE_TAG=23.08-py3 | ||
ARG BASE_IMAGE_TAG=23.12-py3 | ||
|
||
FROM ${BASE_IMAGE_URL}:${BASE_IMAGE_TAG} | ||
|
||
ARG EXAMPLE_NAME | ||
COPY RetrievalAugmentedGeneration/__init__.py /opt/RetrievalAugmentedGeneration/ | ||
COPY RetrievalAugmentedGeneration/common /opt/RetrievalAugmentedGeneration/common | ||
COPY RetrievalAugmentedGeneration/examples/${EXAMPLE_NAME} /opt/RetrievalAugmentedGeneration/example | ||
COPY integrations /opt/integrations | ||
COPY tools /opt/tools | ||
RUN apt-get update && apt-get install -y libpq-dev | ||
RUN --mount=type=bind,source=RetrievalAugmentedGeneration/requirements.txt,target=/opt/requirements.txt \ | ||
python3 -m pip install --no-cache-dir -r /opt/requirements.txt | ||
|
||
COPY RetrievalAugmentedGeneration/examples/${EXAMPLE_NAME} /opt/RetrievalAugmentedGeneration/example | ||
RUN if [ -f "/opt/RetrievalAugmentedGeneration/example/requirements.txt" ] ; then \ | ||
python3 -m pip install --no-cache-dir -r /opt/RetrievalAugmentedGeneration/example/requirements.txt ; else \ | ||
echo "Skipping example dependency installation, since requirements.txt was not found" ; \ | ||
fi | ||
|
||
RUN apt-get remove python3-pip | ||
|
||
WORKDIR /opt | ||
ENTRYPOINT ["uvicorn", "RetrievalAugmentedGeneration.common.server:app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.