diff --git a/build.py b/build.py index b74d3bc96c..7de2d95449 100755 --- a/build.py +++ b/build.py @@ -26,6 +26,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import argparse +import importlib.util import multiprocessing import os import os.path @@ -36,6 +37,8 @@ import sys from inspect import getsourcefile +import requests + # # Build Triton Inference Server. # @@ -1274,10 +1277,6 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach if "fastertransformer" in backends: be = "fastertransformer" - import importlib.util - - import requests - url = "https://raw.githubusercontent.com/triton-inference-server/fastertransformer_backend/{}/docker/create_dockerfile_and_build.py".format( backends[be] ) @@ -1318,10 +1317,6 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach # Add dependencies needed for tensorrtllm backend if "tensorrtllm" in backends: be = "tensorrtllm" - import importlib.util - - import requests - # FIXME: Update the url url = "https://gitlab-master.nvidia.com/krish/tensorrtllm_backend/-/raw/{}/tools/gen_trtllm_dockerfile.py".format( backends[be]