Model Database's logo
Join the Model Database community

and get access to the augmented documentation experience

to get started

Using TGI CLI

You can use TGI command-line interface (CLI) to download weights, serve and quantize models, or get information on serving parameters. To install the CLI, please refer to the installation section.

text-generation-server lets you download the model with download-weights command like below ๐Ÿ‘‡

text-generation-server download-weights MODEL_HUB_ID

You can also use it to quantize models like below ๐Ÿ‘‡

text-generation-server quantize MODEL_HUB_ID OUTPUT_DIR 

You can use text-generation-launcher to serve models.

text-generation-launcher --model-id MODEL_HUB_ID --port 8080

There are many options and parameters you can pass to text-generation-launcher. The documentation for CLI is kept minimal and intended to rely on self-generating documentation, which can be found by running

text-generation-launcher --help

You can also find it hosted in this Swagger UI.

Same documentation can be found for text-generation-server.

text-generation-server --help