View on Github
system_packages
key to your config.yaml file,
for instance:
To add system packages to your model serving environment, open config.yaml and
update the system_packages key with a list of apt-installable Debian packages:
config.yaml
Setting up the model.py
For this model, we use the HuggingFace transformers library, and the document-question-answering task.model/model.py
Setting up the config.yaml file
The main items that need to be configured in the config.yaml file are requirements andsystem_packages
sections.
config.yaml
Always pin exact versions for your Python dependencies. The ML/AI space moves fast, so you want to have an up-to-date version of each package while also being protected from breaking changes.
config.yaml
apt
on Debian.
config.yaml