Truss uses containerized environments to ensure consistent model execution across deployments. While the default Truss image works for most cases, you may need a custom base image to meet specific package or system requirements.Documentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
Setting a base image inconfig.yaml
Specify a custom base image in config.yaml:
config.yaml
image: The Docker image to use.python_executable_path: The path to the Python binary inside the container.
Example: NVIDIA NeMo model
Using a custom image to deploy NVIDIA NeMo TitaNet model:config.yaml
Using private base images
If your base image is private, ensure that you have configured your model to use a private registryCreating a custom base image
You can build a new base image using Truss’s base images as a foundation. Available images are listed on Docker Hub.Example: Customizing a Truss base image
Dockerfile