Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TensorRT-docker-compose

docker-compose for TensorRT, support sticky-sessions using traefik to enable the prefix-caching feature of TensorRT

File Structure

host path

/host_path/models
                └── 1-gpu
                    ├── model_repository
                    │   ├── ensemble
                    │   │   └── 1
                    │   ├── postprocessing
                    │   │   └── 1
                    │   ├── preprocessing
                    │   │   └── 1
                    │   ├── tensorrt_llm
                    │   │   └── 1
                    │   └── tensorrt_llm_bls
                    │       └── 1
                    │           └── lib
                    └── weights
                        └── tokenizer

Usage

start services

docker-compose up -d

stop services

docker-compose down

test sticky-sessions

bash request.sh

You can observe that if you do not delete the cookie, your request will be load balanced to the same TensorRT instance every time. If you delete the cookies, or if you don't use cookies, then load balancing between different instances will work normally.

About

docker-compose for TensorRT, support sticky-sessions using traefik to enable the prefix-caching feature of TensorRT

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages