basetenlabs / truss-examples

Examples of models deployable with Truss
https://trussml.com
MIT License
130 stars 37 forks source link

generic vllm example #335

Closed tianshuc0731 closed 1 month ago

tianshuc0731 commented 1 month ago

Motivation Create this generic vllm example to enable a more codeless customer experience to use truss with vllm. The goal is to let customers create any customized vllm deployment by only modifying the config file, no need to touch model.py.

Changes In config.yaml

In model.py Combine two modes of using vllm in one file

Testing Successfully used this example to deploy the following models:

To follow up