config.yaml
file. Here are some
of the common configuration options:
Environment variables
You can specify environment variables to be set in the model serving environment using 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
Another key part of configuring your model is specifying hardware resources needed. You can use theresources
key to specify these. For a CPU model, your resources
configuration might look something like:
config.yaml
config.yaml