Supported Models and Hardware
Last updated
Last updated
Text Generation Inference enables serving optimized models on specific hardware for the highest performance. The following sections list which models are hardware are supported.
The following models are optimized and can be served with TGI, which uses custom CUDA kernels for better inference. You can add the flag --disable-custom-kernels
at the end of the docker run
command if you wish to disable them.
If the above list lacks the model you would like to serve, depending on the model’s pipeline type, you can try to initialize and serve the model anyways to see how well it performs, but performance isn’t guaranteed for non-optimized models:
Copied
If you wish to serve a supported model that already exists on a local folder, just point to the local folder.
Copied
TGI is also supported on the following AI hardware accelerators:
TGI optimized models are supported on NVIDIA , and GPUs with CUDA 11.8+. Note that you have to install to use it. For other hardware, continuous batching will still apply, but some operations like flash attention and paged attention will not be executed.
Habana first-gen Gaudi and Gaudi2: check out this how to serve models with TGI on Gaudi and Gaudi2 with