---
title: "Verifiable NIM Builder"
description: "Convert any NVidia Nim to a Verifiable vNIM with EQTY Middleware."
source: "Verifiable Compute"
---
<token-field name="NGC_API_KEY"
  pattern='nvapi-.+'
  pattern-message="NGC API keys start with nvapi-"
  label="NGC API key"
  placeholder="nvapi-..."></token-field>
<token-field name="NIM_IMAGE"
  pattern="^(?:LLM-NIM|VLLM|nvcr\.io/[^/\s:]+/[^/\s:]+/[^/\s:]+:[^/\s]+)$"
  pattern-message="LLM-NIM VLLM or nvcr.io image only"
  label="NIM to patch"
  placeholder="nvcr.io/nim/meta/llama-3.2-3b-instruct:latest" optional="true"
  help="Enter LLM-NIM to build a generic vNIM that can be used with any model. VLLM for a simple basic vLLM container (optional CPU support)"></token-field>


## Build a NIM

Make sure you get a NGCC_API key form https://build.nvidia.com/ and 
update the field above and select the model you wish to build. If you want to build a generic Nim and use a custom model
you can specify MULTI as the model.


1. Prepare

Clone the `https://github.com/eqtylab-RND/vNIM-builder` repo. 

```bash
git clone https://github.com/eqtylab-RND/vNIM-builder
cd vNIM-builder
```

2. Build the NIM of your choice

<details>
<summary>Advanced options</summary>
- `IMAGE_REF=`  
Specified a new name for the iamge. The default copies the input image as `<name>-eqty:<tag>`  


- `IMAGE_REGISTRY=`  
Specified a registry to prepend the iamge. The defaults to `ghcr.io/eqtylab`  

- `VNIM_CPU=1`  
**vLLM ONLY**: Build vLLM for CPU target  

</details>

From the git direcetory you checked out start the builder  

```bash
NGC_API_KEY={{NGC_API_KEY}} ./vnim-build.sh {{NIM_IMAGE}}
```

3. Push to a registry

Push to a container registry

```bash
docker push ghcr.io/eqtylab/vnim/llm-nim-eqty:latest
```

## Deploy the NIM

Follow instructions in  [vNIM deployment](/verifiable-confidential-containers/tutorials/vnim/).