- Newest
- Most votes
- Most comments
The issue you're encountering is due to a mismatch between the NVIDIA driver version required by your container and the one available on your instance. The Triton container version 25.04 was built for NVIDIA Driver Release 575.51 or later, but your ml.g4dn.4xlarge instance has driver version 470.256.02.
This is not an issue with the container itself, but rather a compatibility problem between the container's requirements and the driver available on your instance type. The driver is part of the instance's AMI, not the container.
You have several options to resolve this:
-
Use a newer instance type like the ml.g6.xlarge you mentioned, which likely has more recent drivers.
-
Specify a compatible inference AMI version when deploying your endpoint. SageMaker offers different AMI versions with different NVIDIA driver versions:
- al2-ami-sagemaker-inference-gpu-2 or al2-ami-sagemaker-inference-gpu-2-1: NVIDIA driver version 535, CUDA 12.2
- al2-ami-sagemaker-inference-gpu-3-1: NVIDIA driver version 550, CUDA 12.4
-
Use an older version of the Triton container that's compatible with the driver version on your instance.
-
Install the CUDA Compatibility Package in your container, which can help bridge compatibility between different driver versions.
If you continue to use the ml.g4dn.4xlarge instance, you'll need to either downgrade your container version or implement the CUDA Compatibility Package solution. For newer instances like g6, you'll likely have access to more recent drivers that are compatible with your container.
When you encounter errors like "CannotStartContainerError" or NVIDIA initialization errors, it's typically due to this kind of driver/CUDA version mismatch.
Sources
Best practices to minimize interruptions during GPU driver upgrades - Amazon SageMaker AI
Updating inference containers to comply with the NVIDIA Container Toolkit - Amazon SageMaker AI
ProductionVariant - Amazon SageMaker
answered a year ago
Relevant content
asked 3 years ago
