tensorrtllm_backend icon indicating copy to clipboard operation
tensorrtllm_backend copied to clipboard

2x docker image size increase for trtllm: from 8.38 GB (24.03) to 18.46 GB (24.04)

Open lopuhin opened this issue 1 year ago • 3 comments

System Info

https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tritonserver/tags

Who can help?

No response

Information

  • [x] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

Observe docker images sizes on https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tritonserver/tags for trtllm:

  • nvcr.io/nvidia/tritonserver:24.04-trtllm-python-py3 is 18.46 GB image

  • nvcr.io/nvidia/tritonserver:24.03-trtllm-python-py3 is 8.38 GB image

  • the issue still persists in nvcr.io/nvidia/tritonserver:24.05-trtllm-python-py3 which is 18.48 GB

Expected behavior

Docker image size remains around 8 GB as in previous releases

actual behavior

Docker image size increased to more than 18 GB in 24.04 and is still high

additional notes

docker image size is important when autoscaling is used, as pulling larger docker images takes more time

lopuhin avatar Jun 03 '24 12:06 lopuhin

Here is the discussion.

byshiue avatar Jun 04 '24 00:06 byshiue

Hi, everyone. As a user of trtllm backend.

I notice that a model.py added in the main branch. Are you going to replace this c++ backend with python backend? move scheduling logic into trtllm runtime lib. That's why you put python sdk and into the image beforehand.

I can understand that, it is more flexible and extensible (e.g. to support serving enc-dec model or other model arch, to add/adjust some wrapper/IO feature). But this c++ backend will continue to be maintained, right? python backend is not that robust, I used to serve llm with vllm backend, but always encountered this problem. And there also might be a performance drop using python.

Releasing a smaller image for c++ backend, and a full-packaged image for python, can be a goods choice.

regards.

WingEdge777 avatar Jun 07 '24 08:06 WingEdge777

It is not determined yet. If we plan to deprecate c++ backend, we will make sure the python backend has same performance as c++ backend.

byshiue avatar Jun 24 '24 00:06 byshiue