Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inferentia test build #168

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions inferentia/qa/setup_test_enviroment_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ if [ "${UPSTREAM_CONTAINER_VERSION}" = "" ]; then
echo "found upstream container version: ${UPSTREAM_CONTAINER_VERSION} from build.py"
fi

set -e
# Build container with only python backend
cd ${TRITON_PATH}/server
pip3 install docker
./build.py --build-dir=/tmp/tritonbuild \
--cmake-dir=${TRITON_PATH}/server/build \
./build.py --verbose \
--no-container-interactive \
--container-version=${CONTAINER_VERSION} \
--upstream-container-version=${UPSTREAM_CONTAINER_VERSION} \
--enable-logging --enable-stats --enable-tracing \
Expand All @@ -149,7 +150,7 @@ pip3 install docker
--backend=identity:${IDENTITY_BACKEND_REPO_TAG} \
--backend=python:${PYTHON_BACKEND_REPO_TAG} \
--repoagent=checksum:${CHECKSUM_REPOAGENT_REPO_TAG}
docker tag tritonserver_build "${BUILD_IMAGE}"
docker tag tritonserver_cibase "${BUILD_IMAGE}"
docker tag tritonserver "${BASE_IMAGE}"

# Build docker container for SDK
Expand All @@ -170,6 +171,7 @@ docker build -t ${QA_IMAGE} \
--build-arg "BASE_IMAGE=${BASE_IMAGE}" \
--build-arg "BUILD_IMAGE=${BUILD_IMAGE}" \
--build-arg "SDK_IMAGE=${SDK_IMAGE}" .
set +e

# Run pytorch instance test
docker stop ${CONTAINER_NAME} && docker rm ${CONTAINER_NAME}
Expand Down