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

TensorRT LLM Docker Issues #499

Closed
ashish007git opened this issue Nov 29, 2023 · 1 comment
Closed

TensorRT LLM Docker Issues #499

ashish007git opened this issue Nov 29, 2023 · 1 comment
Assignees
Labels

Comments

@ashish007git
Copy link

I am facing multiple issues while trying to build the docker container by following the steps in here

No internet in the docker container.

Running the following commands

make -C docker build

or

make -C docker run

gave errors relating to internet connection failures. The docker container did not have an active internet connection. I was able to fix them using the following fix below:

@@ -22,7 +23,7 @@ STAGE              ?=
 # Set this to define a custom image name and tag
 IMAGE_WITH_TAG     ?= $(IMAGE_NAME)$(if $(STAGE),/$(STAGE)):$(IMAGE_TAG)
 DOCKER_BUILD_OPTS  ?= --pull
-DOCKER_BUILD_ARGS  ?=
+DOCKER_BUILD_ARGS  ?= --network host
 DOCKER_PROGRESS    ?= auto
 CUDA_ARCHS         ?=
 BUILD_WHEEL_ARGS   ?= $(shell grep 'ARG BUILD_WHEEL_ARGS=' Dockerfile.multi | grep -o '=.*' | tr -d '="')$(if $(CUDA_ARCHS), --cuda_architectures $(CUDA_ARCHS))
@@ -63,7 +64,7 @@ endef
        docker push $(IMAGE_WITH_TAG)$(IMAGE_TAG_SUFFIX)
 
 DOCKER_RUN_OPTS   ?= --rm -it --ipc=host --ulimit memlock=-1 --ulimit stack=67108864
-DOCKER_RUN_ARGS   ?=
+DOCKER_RUN_ARGS   ?= --net host
 GPU_OPTS          ?= --gpus=all
 SOURCE_DIR        ?= $(shell readlink -f ..)
 CODE_DIR          ?= /code/tensorrt_llm

I suspected that this could be an error pertaining to my VM instance, or issue with docker installation. However, I was able to install and build other docker images without any problems.

Building docker image fails

Creating the docker image with the previous internet fix gave me the error shown in the image below:

image

The build command fails to build mpi4py.

Any leads on how to resolve these issues are appreciated!

@robosina
Copy link

robosina commented Nov 29, 2023

@ashish007git I believe your problem has been fixed in #447

you just need to use

pip install git+https://github.com/Shixiaowei02/mpi4py.git@fix-setuptools-version

instead of pip install mpi4py in docker/common/install_base.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants