Model Signature Verification
NVIDIA signs all models it publishes to the NGC Catalog using the OpenSSF Model Signing (OMS) standard. You can verify independently that NVIDIA published a model artifact and that its contents have stayed intact. Organizations that follow a “trust, but verify” security model require this verification.
NIM automatically verifies the checksums of downloaded files. The external cryptographic signature verification in this guide complements NIM’s built-in checksum validation.
Prerequisites
Before you start, complete the following prerequisites:
-
Install and configure the NGC CLI with a valid API key.
-
Install the
model-signingPython package:
Identify the Model Profile
Each NIM container uses a model profile with a 64-character ID. To list the available profiles, run list-model-profiles.
Example output:
This example uses a vLLM image. In SGLang images, profile descriptions start with sglang-, as in sglang-bf16-tp1-pp1. Both backends use 64-character profile IDs and follow the same verification steps.
Record the 64-character ID of the profile you want to verify. To identify the active profile in a running container, inspect the startup logs.
For more details on profile selection, refer to Model Profiles and Selection.
Find the NGC Version Tag
Each NIM profile downloads its model files from a specific version in the NGC model registry. The container’s model manifest at /opt/nim/etc/default/model_manifest.yaml maps profiles to NGC versions. Use the corresponding NGC version tag to download the model and its signature.
Set PROFILE_ID to the ID you recorded.
For example:
Locate the profile’s download URI in the manifest. The URI contains the NGC version tag.
Example output:
The URI follows the format ngc://{ORG}/{TEAM}/{MODEL_NAME}:{NGC_TAG}?file=.... The example contains these values.
- ORG/TEAM:
nim/meta - MODEL_NAME:
llama-3.1-70b-instruct - NGC_TAG:
bf16-tool-calling-fix
Capture the full model URI and extract the model path, NGC version tag, and model name into variables.
Example output:
Download the Model
Download the model files from NGC using the NGC_MODEL_PATH and NGC_TAG variables you set earlier.
The command downloads the model to ./model/${MODEL_NAME}_v${NGC_TAG}/. The example produces the following path.
Download the Signature File
Create a directory for the signature. Use the same NGC_MODEL_PATH and NGC_TAG values to download the detached signature.
The command downloads the signature to ./signatures/${MODEL_NAME}_v${NGC_TAG}/result.sigstore. The example produces the following path.
Download the NVIDIA Public Certificate
Download the NVIDIA public certificate to validate the model’s signature.
Verify the Signature
Run model_signing verify certificate with the model directory, the signature file, and the NVIDIA public certificate.
For example:
The command prints a confirmation if verification succeeds. If it detects a mismatch or tampering, it prints an error and exits with a nonzero status.
Next Steps
For more information about model signing and the tools used in this workflow, refer to the following resources: