Build the model with GPU requires nvidia base image. Follow the instructions before in order to login into nvcr.io
- Be sure you have Docker installed and buildkit available
- Connect to [NVIDIA NGC](https://org.ngc.nvidia.com/setup/personal-keys)
- Create a personal key
- Login into nvcr.io
export version=x.y.z
bash install.sh sam-2 gpu registry
docker run --gpus all -p 8080:8080 -e PORT=8080 -v ./huggingface:/root/.cache/huggingface/ sam-2-gpu:${version}
bash install.sh sam-2 cpu registry
docker run -p 8080:8080 -e PORT=8080 -v ./huggingface:/root/.cache/huggingface/ sam-2-cpu:${version}