config.yaml file defines your model’s configuration. Common options include:
Environment variables
To set environment variables in the model serving environment, use theenvironment_variables key:
config.yaml
Python packages
Python packages can be specified in two ways in theconfig.yaml file:
requirements: A list of Python packages to install.requirements_file: A requirements.txt file to install pip packages from.
config.yaml
== operator:
config.yaml
requirements_file
instead.
config.yaml
System packages
Truss also has support for installing apt-installable Debian packages. To add system packages to your model serving environment, add the following to yourconfig.yaml file:
config.yaml
config.yaml
Resources
Specify hardware resources in theresources section.
Option 1: Specify individual resource fields
For a CPU model:
config.yaml
config.yaml
config.yaml
instance_type lets you select an exact SKU. When specified, other resource fields are ignored.
See the Resources page for more information on
options available.