-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wenxin Zhang <[email protected]>
- Loading branch information
1 parent
89084f5
commit 8fcd338
Showing
5 changed files
with
53 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM vault.habana.ai/gaudi-docker/1.13.0/ubuntu22.04/habanalabs/pytorch-installer-2.1.0:latest as hpu | ||
|
||
ENV LANG=en_US.UTF-8 | ||
ENV PYTHONPATH=/root:/usr/lib/habanalabs/ | ||
ARG REPO=https://github.com/intel/genaieval.git | ||
ARG REPO_PATH="" | ||
ARG BRANCH=main | ||
|
||
RUN apt-get update && \ | ||
apt-get install git-lfs && \ | ||
git-lfs install | ||
|
||
# Download code | ||
SHELL ["/bin/bash", "--login", "-c"] | ||
RUN mkdir -p /genaieval | ||
COPY ${REPO_PATH} /genaieval | ||
RUN if [ "$REPO_PATH" == "" ]; then rm -rf /genaieval/* && rm -rf /genaieval/.* ; git clone --single-branch --branch=${BRANCH} ${REPO} /genaieval ; fi | ||
|
||
# Build From Source | ||
RUN cd /genaieval && \ | ||
python setup.py install && \ | ||
pip install --upgrade-strategy eager optimum[habana] && \ | ||
pip list | ||
|
||
WORKDIR /genaieval/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM vault.habana.ai/gaudi-docker/1.13.0/ubuntu22.04/habanalabs/pytorch-installer-2.1.0:latest as hpu | ||
|
||
ENV LANG=en_US.UTF-8 | ||
ENV PYTHONPATH=/root:/usr/lib/habanalabs/ | ||
ARG REPO=https://github.com/opea-project/GenAIEval.git | ||
ARG REPO_PATH="" | ||
ARG BRANCH=main | ||
|
||
RUN apt-get update && \ | ||
apt-get install git-lfs && \ | ||
git-lfs install | ||
|
||
# Download code | ||
SHELL ["/bin/bash", "--login", "-c"] | ||
RUN mkdir -p /GenAIEval | ||
COPY ${REPO_PATH} /GenAIEval | ||
RUN if [ "$REPO_PATH" == "" ]; then rm -rf /GenAIEval/* && rm -rf /GenAIEval/.* ; git clone --single-branch --branch=${BRANCH} ${REPO} /GenAIEval ; fi | ||
|
||
# Build From Source | ||
RUN cd /GenAIEval && \ | ||
python setup.py install && \ | ||
pip install --upgrade-strategy eager optimum[habana] && \ | ||
pip list | ||
|
||
WORKDIR /GenAIEval/ |